File tree 4 files changed +201
-214
lines changed
4 files changed +201
-214
lines changed Original file line number Diff line number Diff line change 1
- .message-feed {
2
- width: 480%;
3
- height: 250px;
4
- border-radius: 5px;
5
- border: solid 1px rgb(204, 204, 204);
6
- padding: 10px;
7
- position: absolute;
8
- left: 64px;
9
- top: 500px;
10
- }
11
-
12
- .message-item {
13
- font-size: 14px;
14
- color: rgb(51, 51, 51);
15
- padding: 8px;
16
- margin-bottom: 8px;
17
- border-radius: 4px;
18
- word-wrap: break-word;
19
- width: 480px;
20
- height: 50px;
21
- position: absolute;
22
- top: 500px;
23
- left: 64px;
24
- }
25
-
26
1
.message {
27
2
color: rgb(255, 193, 21);
28
3
font-size: 14px;
48
23
transition-timing-function: ease-in-out-back, ease-in;
49
24
transition-duration: 0.5s, 1s;
50
25
position: relative;
51
- overflow: scroll ;
26
+ overflow: hidden ;
52
27
flex-direction: column;
53
28
}
54
29
55
30
.messageBoxMove {
56
31
translate: 0 0 0;
57
32
}
58
33
59
- .message:hover {
60
- left: 10px;
61
- }
62
-
63
34
.messageBoxFadeOut {
64
35
opacity: 0;
65
36
}
66
37
67
- #messageList {
38
+ #messageFeed {
68
39
flex-direction: column;
69
40
position: absolute;
70
41
top: -537px;
71
- }
72
-
73
- /* since we are using absolute position with a list view in this case
74
- we need to make sure to override the default scroll view behaviors */
75
- #messageList .unity-scroll-view__content-viewport {
76
- overflow: hidden;
77
- }
78
-
79
- #messageList .unity-scroll-view__content-container {
80
- overflow: hidden;
81
- }
82
-
42
+ left: 30px;
43
+ }
Original file line number Diff line number Diff line change 1
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
2
<Style src="project://database/Assets/Prefabs/UI/UIToolkit/USS/MessageFeed.uss?fileID=7433441132597879392&guid=daa8504d262853748b8d7c2a377261a3&type=3#MessageFeed" />
3
- <engine:VisualElement name="messageFeed" style="flex-grow: 1;">
4
- <engine:ListView item-template="project://database/Assets/Prefabs/UI/UIToolkit/UXML/MessageItem.uxml?fileID=9197481963319205126&guid=67ec44aea0b0f484c86c6489932cfcad&type=3#MessageItem" name="messageList" virtualization-method="DynamicHeight" binding-source-selection-mode="AutoAssign" class="messageList" />
5
- </engine:VisualElement>
3
+ <engine:VisualElement name="messageFeed" picking-mode="Ignore" />
6
4
</engine:UXML>
Original file line number Diff line number Diff line change 10
10
<engine:Button text="return to menu" name="menuBtn" class="menuButton" style="left: 32%; top: 75%; position: absolute;" />
11
11
<engine:Button text="Waiting on host to play again" name="waitOnHostBtn" class="menuButton" style="position: absolute; top: 60%; left: 32%;" />
12
12
</engine:VisualElement>
13
- <engine:Instance template="MessageFeed" />
13
+ <engine:Instance template="MessageFeed" name="messageList" />
14
14
</engine:UXML>
You can’t perform that action at this time.
0 commit comments