Skip to content
Snippets Groups Projects
Commit 56221231 authored by Samuel Truman's avatar Samuel Truman
Browse files

Cleanup

parents ff71f55d 5d97e0d6
No related branches found
No related tags found
No related merge requests found
Showing
with 582 additions and 2083 deletions
fileFormatVersion: 2
guid: 8b807d7d5fc9da54b8cb51124fcbe3c3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b00ff137478be9a4a94ed9d1d59f03da
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7b34eeab43c3870408af98a44814d854
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: f91483c35d0d45d4c85eca582bead8f4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System.Linq;
using UnityEngine;
using UnityEngine.Assertions;
public class VisibilityTesting : MonoBehaviour {
private DialogID[] dialogIds;
private void Start() {
dialogIds = FindObjectsOfType<DialogID>();
Assert.AreEqual(dialogIds.Length, 3, "There should be exactly 3 dialogs in the test scene.");
}
private void Update() {
if(Input.GetKeyDown("1")) {
FindDialogById(dialogIds[0].Id).Dialog.ToggleVisibility();
}
if(Input.GetKeyDown("2")) {
FindDialogById(dialogIds[1].Id).Dialog.ToggleVisibility();
}
if(Input.GetKeyDown("3")) {
FindDialogById(dialogIds[2].Id).Dialog.ToggleVisibility();
}
}
public DialogID FindDialogById(ulong id) {
return dialogIds.FirstOrDefault(dialogID => dialogID.GetComponent<DialogID>().Id == id);
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 94b1865b0659d584eb1b6cc7b7c2bf02
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1f165b730d996c543a0f49e2681c755a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
.outerShell {
background-image: url("./outer.png");
width: auto;
height: auto;
}
.innerShell {
background-image: url("./inner.png");
width: auto;
height: auto;
margin: 20px;
align-self: center;
}
Label {
-unity-font-definition: url("./Fonts/DMSans-Bold.ttf");
font-size: 90px;
color: rgb(255, 255, 255);
background-color: rgba(0,0,0,0.075);
width: 1550px;
margin-top: 70px;
margin-left: 90px;
margin-right: 90px;
margin-bottom: 20px;
}
TextElement {
-unity-font-definition: url("./Fonts/DMSans-Medium.ttf");
font-size: 70px;
color: rgb(255,255,255);
background-color: rgba(0,0,0,0.075);
width: 1550px;
height: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
flex-direction: column;
margin-left: 90px;
margin-right: 90px;
}
Button {
font-size: 55px;
-unity-font-definition: url("./Fonts/DMSans-Bold.ttf");
-unity-text-align: middle-center;
color: rgb(255,255,255);
overflow: hidden;
text-overflow: ellipsis;
background-color: rgba(100,100,100,0.8);
flex-direction: column;
width: 1550px;
height: 125px;
min-height: 125px;
margin-bottom: 15px;
margin-left: 15px;
margin-right: 15px;
padding-top: 15px;
align-self: center;
}
Button:hover {
background-color: grey;
}
.container {
min-height: 125px;
height: auto;
margin-top: 25px;
margin-bottom: 75px;
}
\ No newline at end of file
fileFormatVersion: 2
guid: 0ab45125a77d8854da2d9183e0c91ff7
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0
<UXML xmlns="UnityEngine.UIElements">
<VisualElement class="outerShell">
<VisualElement class="innerShell">
<Label name="Actor"/>
<TextElement name="Dialogue"/>
<VisualElement class="container" name="buttonContainer">
<Button name="Button1"/>
<Button name="Button2"/>
<Button name="Button3"/>
<Button name="Button4"/>
<Button name="Button5"/>
</VisualElement>
</VisualElement>
</VisualElement>
</UXML>
\ No newline at end of file
fileFormatVersion: 2
guid: b5ed13131e411a447bb6cdd7ce7ecc93
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
fileFormatVersion: 2
guid: ca4cf2544e371a84abb66552f393f04a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com). Copyright 2019 Google LLC.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
fileFormatVersion: 2
guid: 13b32044cde2fca40befbb3832fb1437
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File deleted
fileFormatVersion: 2
guid: b1213ef2efa187f428995600fbed1fc3
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontNames:
- DM Sans
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:
File deleted
fileFormatVersion: 2
guid: d294891860712a147b35984e0b102498
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontNames:
- DM Sans Medium
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment