Skip to content

Commit 7a6eeb9

Browse files
committed
feat: start adding UITK main menu Elements (WIP)
1 parent 79e8592 commit 7a6eeb9

File tree

4 files changed

+87
-1
lines changed

4 files changed

+87
-1
lines changed

Assets/Prefabs/UI/UIToolkit/USS/GeneralUI.uss

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,59 @@
7171
height: 90px;
7272
-unity-background-image-tint-color: rgb(164, 164, 164);
7373
}
74+
75+
.title {
76+
background-image: url("project://database/Assets/Textures/UI/ui_title_logo.png?fileID=2800000&guid=240734f1e1c8daa4b9bd0593e767fb3f&type=3#ui_title_logo");
77+
width: 50%;
78+
height: 50%;
79+
-unity-text-align: upper-center;
80+
justify-content: center;
81+
align-items: center;
82+
top: -2%;
83+
left: 25%;
84+
}
85+
86+
.JHLogo {
87+
flex-grow: 1;
88+
background-image: url("project://database/Assets/Textures/UI/JHayesMnS_logo.png?fileID=2800000&guid=9212dfff105ad2c4b95ace52ae931384&type=3#JHayesMnS_logo");
89+
width: 25%;
90+
height: 34px;
91+
top: 343px;
92+
left: 229px;
93+
}
94+
95+
.SFLogo {
96+
flex-grow: 1;
97+
background-image: url("project://database/Assets/Textures/UI/StormFlag_logo.png?fileID=2800000&guid=8b704eb1afcdb4b469679f41a7f6e07e&type=3#StormFlag_logo");
98+
width: 25%;
99+
height: 34px;
100+
top: 356px;
101+
left: 366px;
102+
}
103+
104+
.room8Logo {
105+
flex-grow: 1;
106+
background-image: url("project://database/Assets/Textures/UI/Room8_logo.png?fileID=2800000&guid=db4fcca0a37980a43a5f38ff7323ae9f&type=3#Room8_logo");
107+
top: 327px;
108+
left: 82px;
109+
width: 25%;
110+
height: 34px;
111+
}
112+
113+
.unityLogo {
114+
flex-grow: 1;
115+
background-image: url("project://database/Assets/Textures/UI/Unity/U_Logo_T1_LearnWith_White_RGB_resized.png?fileID=2800000&guid=5ce11ff850f11b84bad8017ff4ce5aaa&type=3#U_Logo_T1_LearnWith_White_RGB_resized");
116+
width: 30%;
117+
height: 48px;
118+
top: 307px;
119+
left: -63px;
120+
}
121+
122+
.signInSpinner {
123+
flex-grow: 1;
124+
background-image: url("project://database/Assets/Textures/UI/ui_connecting.png?fileID=2800000&guid=d881ecf63d92e9947a1dc2849e3dc2de&type=3#ui_connecting");
125+
width: 10%;
126+
height: 15%;
127+
top: -6px;
128+
left: 156px;
129+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
2+
<Style src="project://database/Assets/Prefabs/UI/UIToolkit/USS/GeneralUI.uss?fileID=7433441132597879392&amp;guid=36bef7d47f6ca284f8a33439946d6dfe&amp;type=3#GeneralUI" />
3+
<engine:VisualElement name="root" style="flex-grow: 1;">
4+
<engine:VisualElement name="title" class="title" style="flex-grow: 1;" />
5+
<engine:VisualElement name="logos" style="flex-grow: 1;">
6+
<engine:VisualElement name="SFLogo" class="SFLogo" />
7+
<engine:VisualElement name="JHLogo" class="JHLogo" />
8+
<engine:VisualElement name="room8Logo" class="room8Logo" />
9+
<engine:VisualElement name="unityLogo" class="unityLogo" />
10+
</engine:VisualElement>
11+
<engine:VisualElement name="signInSpinner" class="signInSpinner" />
12+
<engine:Button text="Start Session" name="sessionStartButton" class="menuButton" />
13+
<engine:Button text="Start with direct ip" name="IPStartButton" class="menuButton" />
14+
<engine:Button text="change profile" name="profileButton" class="menuButton" />
15+
<engine:VisualElement name="sessionPopup" style="flex-grow: 1;" />
16+
<engine:VisualElement name="IPPopup" style="flex-grow: 1;" />
17+
<engine:VisualElement name="profilePopup" style="flex-grow: 1;" />
18+
<engine:VisualElement name="tooltip" style="flex-grow: 1;" />
19+
</engine:VisualElement>
20+
</engine:UXML>

Assets/Prefabs/UI/UIToolkit/UXML/MainMenuUI.uxml.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Prefabs/UI/UIToolkit/UXML/PostGameUICanvas.uxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Style src="project://database/Assets/Prefabs/UI/UIToolkit/USS/GeneralUI.uss?fileID=7433441132597879392&amp;guid=36bef7d47f6ca284f8a33439946d6dfe&amp;type=3#GeneralUI" />
44
<Style src="project://database/Assets/Prefabs/UI/UIToolkit/USS/MessageFeed.uss?fileID=7433441132597879392&amp;guid=daa8504d262853748b8d7c2a377261a3&amp;type=3#MessageFeed" />
55
<engine:VisualElement name="postRoot" style="flex-grow: 1; flex-shrink: 5;">
6-
<engine:Label name="title" style="background-image: url(&quot;project://database/Assets/Textures/UI/ui_title_logo.png?fileID=2800000&amp;guid=240734f1e1c8daa4b9bd0593e767fb3f&amp;type=3#ui_title_logo&quot;); width: 50%; height: 50%; -unity-text-align: upper-center; justify-content: center; align-items: center; top: -2%; left: 25%;" />
6+
<engine:Label name="title" class="title" />
77
<engine:Label text="YOU WON!" name="gameWinText" class="gameText" />
88
<engine:Label text="Try Again" name="gameLostText" class="gameText" style="color: rgb(245, 90, 22);" />
99
<engine:Button text="Play Again" name="playAgainBtn" class="menuButton" style="position: absolute; top: 60%; left: 32%;" />

0 commit comments

Comments
 (0)