Skip to content

[DO NOT MERGE! Work is parked currently] [MTT-8685] Feat: UIToolkit for BossRoom: PostGame UI #900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
42baf89
add SettingsPanelCanvas uxml and uss and relevant folders
Elfi0Kuhndorf Feb 5, 2025
5ae1ba8
WIP adding old functionality in extra script and adjusting old script…
Elfi0Kuhndorf Feb 5, 2025
90d7176
WIP fixing volume distortion issue and trying to debug failing of UIQ…
Elfi0Kuhndorf Feb 10, 2025
282324f
fix: cleaning up UI USS, creating general USS for reusability and add…
Elfi0Kuhndorf Feb 12, 2025
39a5e85
feat: add PostGameUICanvas UI toolkit prefab plus its related uxml an…
Elfi0Kuhndorf Feb 13, 2025
47d5840
fix: remove auto in MessageFeed USS and change panelSettings to scale…
Elfi0Kuhndorf Feb 13, 2025
f6db0cc
fix: add messageFeed UI, cleanup scripts, rename Prefabs
Elfi0Kuhndorf Feb 14, 2025
5cd1a22
Fix: add SettingsPanelCanvasUITK to PostGameState prefab and fix comp…
Elfi0Kuhndorf Feb 17, 2025
a51b164
WIP adding message feed functionality
Elfi0Kuhndorf Feb 19, 2025
d75a01f
WIP: adjustments for MessageFeed (functionality within one new script…
Elfi0Kuhndorf Feb 20, 2025
815effe
registration of components to the scene state context builder
fernando-cortez Feb 21, 2025
1e01173
fix: changing styling, layering and size of settingPanelCanvasUITK U…
Elfi0Kuhndorf Feb 21, 2025
ba5336d
fix: fixing new MessageFeed so it displays messages dynamically
Elfi0Kuhndorf Feb 21, 2025
224e28c
feat: add fly in animation to message feed messaged
Elfi0Kuhndorf Feb 24, 2025
5fbb0f9
fix: remove unneeded message feed scripts
Elfi0Kuhndorf Feb 24, 2025
2f565c9
cleanup
kalmanbalint Feb 25, 2025
65ed04f
deleting some code
kalmanbalint Feb 25, 2025
ca29629
update
kalmanbalint Feb 25, 2025
969aa22
cleanup
kalmanbalint Feb 25, 2025
bc22328
Debugging and adjusting fade-in animation as well as moving message f…
Elfi0Kuhndorf Feb 27, 2025
0fdffa8
Fix: adding SettingPanelCanvasUITK to all relevant scene states and s…
Elfi0Kuhndorf Feb 28, 2025
46076cc
Merge branch 'UTIK_suggestions' into feat_boss_room_PostGameUI_settin…
Elfi0Kuhndorf Feb 28, 2025
26cf57c
fix: remove old UIMessageFeed
Elfi0Kuhndorf Feb 28, 2025
9a6f801
removal of old post game scripts
Elfi0Kuhndorf Feb 28, 2025
faa6677
fix: removal old SettingsPanelCanvas prefab
Elfi0Kuhndorf Feb 28, 2025
0e2f3e8
removal of old PostGameUI prefab
Elfi0Kuhndorf Feb 28, 2025
cd0780c
fix: remove whitespace issues
Elfi0Kuhndorf Feb 28, 2025
79e8592
Update CHANGELOG.md
Elfi0Kuhndorf Feb 28, 2025
009d1fb
fix: adding suggestions from PR, turning ListView into VisualElement …
Elfi0Kuhndorf Mar 3, 2025
9725f38
fix: remove context menu before release
Elfi0Kuhndorf Mar 3, 2025
755a9bd
fix: extracting boss room title to uss class
Elfi0Kuhndorf Mar 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 4 additions & 43 deletions Assets/Prefabs/UI/UIToolkit/USS/MessageFeed.uss
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
.message-feed {
width: 480%;
height: 250px;
border-radius: 5px;
border: solid 1px rgb(204, 204, 204);
padding: 10px;
position: absolute;
left: 64px;
top: 500px;
}

.message-item {
font-size: 14px;
color: rgb(51, 51, 51);
padding: 8px;
margin-bottom: 8px;
border-radius: 4px;
word-wrap: break-word;
width: 480px;
height: 50px;
position: absolute;
top: 500px;
left: 64px;
}

.message {
color: rgb(255, 193, 21);
font-size: 14px;
Expand All @@ -48,35 +23,21 @@
transition-timing-function: ease-in-out-back, ease-in;
transition-duration: 0.5s, 1s;
position: relative;
overflow: scroll;
overflow: hidden;
flex-direction: column;
}

.messageBoxMove {
translate: 0 0 0;
}

.message:hover {
left: 10px;
}

.messageBoxFadeOut {
opacity: 0;
}

#messageList {
#messageFeed {
flex-direction: column;
position: absolute;
top: -537px;
}

/* since we are using absolute position with a list view in this case
we need to make sure to override the default scroll view behaviors */
#messageList .unity-scroll-view__content-viewport {
overflow: hidden;
}

#messageList .unity-scroll-view__content-container {
overflow: hidden;
}

left: 30px;
}
4 changes: 1 addition & 3 deletions Assets/Prefabs/UI/UIToolkit/UXML/MessageFeed.uxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<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">
<Style src="project://database/Assets/Prefabs/UI/UIToolkit/USS/MessageFeed.uss?fileID=7433441132597879392&amp;guid=daa8504d262853748b8d7c2a377261a3&amp;type=3#MessageFeed" />
<engine:VisualElement name="messageFeed" style="flex-grow: 1;">
<engine:ListView item-template="project://database/Assets/Prefabs/UI/UIToolkit/UXML/MessageItem.uxml?fileID=9197481963319205126&amp;guid=67ec44aea0b0f484c86c6489932cfcad&amp;type=3#MessageItem" name="messageList" virtualization-method="DynamicHeight" binding-source-selection-mode="AutoAssign" class="messageList" />
</engine:VisualElement>
<engine:VisualElement name="messageFeed" picking-mode="Ignore" />
</engine:UXML>
2 changes: 1 addition & 1 deletion Assets/Prefabs/UI/UIToolkit/UXML/PostGameUICanvas.uxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<engine:Button text="return to menu" name="menuBtn" class="menuButton" style="left: 32%; top: 75%; position: absolute;" />
<engine:Button text="Waiting on host &#10;to play again" name="waitOnHostBtn" class="menuButton" style="position: absolute; top: 60%; left: 32%;" />
</engine:VisualElement>
<engine:Instance template="MessageFeed" />
<engine:Instance template="MessageFeed" name="messageList" />
</engine:UXML>
Loading