-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathGlobal.-1.xml
229 lines (215 loc) · 9.42 KB
/
Global.-1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!-- Xml UI. See documentation: https://api.tabletopsimulator.com/ui/introUI/ -->
<Defaults>
<text color="white" />
<Toggle Color='white' />
</Defaults>
<!--Wild Card Panel-->
<TableLayout id="WildCardPanel" active="false" allowDragging="true" width="20%" height="20%" showAnimation="FadeIn"
animationDuration="0.5" rectAlignment="LowerCenter" offsetXY="-0 220" rowBackgroundColor="black" visibility="">
<row>
<cell columnSpan="2">
<text color="white" fontStyle="BoldItalic" fontSize="24">
Pick A Color For You Wild Card
</text>
</cell>
</row>
<row>
<cell>
<button onClick="Global/WildPanelButtons" id="WildButtonRed" color="red" fontStyle="Bold" fontSize="22">
Red
</button>
</cell>
<cell>
<button onClick="Global/WildPanelButtons" id="WildButtonBlue" color="blue" fontStyle="Bold" fontSize="22">
Blue
</button>
</cell>
</row>
<row>
<cell>
<button onClick="Global/WildPanelButtons" id="WildButtonYellow" color="yellow" fontStyle="Bold"
fontSize="22">
Yellow
</button>
</cell>
<cell>
<button onClick="Global/WildPanelButtons" id="WildButtonGreen" color="green" fontStyle="Bold" fontSize="22">
Green
</button>
</cell>
</row>
</TableLayout>
<!--END Wild Card Panel-->
<!--Switch Panel-->
<TableLayout id="SwitchPanel" active="false" allowDragging="true" width="60%" height="20%" showAnimation="FadeIn"
animationDuration="0.5" rectAlignment="LowerCenter" rowBackgroundColor="black" visibility="">
<row>
<cell visibility="false" id="GreenSwitchCell">
<button color="green" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="GreenSwitch">
[Player Name Green]
</button>
</cell>
<cell visibility="false" id="BlueSwitchCell">
<button color="blue" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="BlueSwitch">
[Player Name White]
</button>
</cell>
<cell visibility="false" id="PurpleSwitchCell">
<button color="purple" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="PurpleSwitch">
[Player Name Purple]
</button>
</cell>
<cell visibility="false" id="PinkSwitchCell">
<button color="pink" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="PinkSwitch">
[Player Name Pink]
</button>
</cell>
<cell visibility="false" id="WhiteSwitchCell">
<button color="white" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="WhiteSwitch">
[Player Name White]
</button>
</cell>
<cell visibility="false" id="RedSwitchCell">
<button color="red" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="RedSwitch">
[Player Name Red]
</button>
</cell>
<cell visibility="false" id="OrangeSwitchCell">
<button color="orange" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="OrangeSwitch">
[Player Name Orange]
</button>
</cell>
<cell visibility="false" id="YellowSwitchCell">
<button color="white" fontStyle="Bold" fontSize="24" onClick="Global/SwitchPanel" id="YellowSwitch">
[Player Name Yellow]
</button>
</cell>
</row>
<row>
<button onClick="Global/SwitchPanel" id="AbortSwitch" color="red" fontStyle="Bold"
fontSize="24">
Don't exchange cards
</button>
</row>
</TableLayout>
<!--END 7 Switch Panel-->
<!--Stacking Card Panel-->
<TableLayout id="StackingCardPanel" active="false" allowDragging="true" showAnimation="FadeIn" animationDuration="0.5"
width="20%" height="20%" rectAlignment="LowerCenter" offsetXY="0 220" rowBackgroundColor="black"
cellBackgroundColor="red">
<row>
<cell columnSpan="2">
<VerticalLayout>
<text id="StackingCardPanelText01" color="white" fontStyle="BoldItalic" fontSize="24">
[Card Stacking Message]
</text>
<text color="white" fontStyle="BoldItalic" fontSize="24">
Or Click "Don't Stack a Card"
</text>
</VerticalLayout>
</cell>
</row>
<row>
<cell>
<button onClick="Global/StackingPanelButtons" fontStyle="Bold" fontSize="22">
Don't Stack a Card
</button>
</cell>
<cell>
<VerticalLayout>
<text fontStyle="Bold" fontSize="22" color="white">
Current Stack:
</text>
<text id="StackingCardPanelText02" fontStyle="Bold" fontSize="22" color="white">
[Current Stack Count]
</text>
</VerticalLayout>
</cell>
</row>
</TableLayout>
<!--END Stacking Card Panel-->
<!--Main Menu Panel-->
<Panel id="MainMenuContainer" color="RGBA(0.105,0.157,0.22,0.5)" width="30%" height="75%" rectAlignment="LowerRight" visibility="Host" hideAnimation="Shrink">
<button id="HideMenuButton" onClick="Global/ToggleMenu" width="100%" height="5%" fontSize="30"
rectAlignment="UpperCenter">
Hide Main Menu</button>
<!--Disabling CPU players for the public release. The CPU players are 'functional' in their current state, but I don't think they meet the standards of the rest of the systems in play
<TableLayout active = 'false' id ='FakePlayerPanel' height='95%' width='15%' rectAlignment='lowerLeft'>
<VerticalLayout>
<text fontSize='25'>CPU Players</text>
<button id='CPUButtonWhite' color='white' onClick='Global/CPUPlayerButton'>White</button>
<button id='CPUButtonRed' color='red' onClick='Global/CPUPlayerButton'>Red</button>
<button id='CPUButtonOrange' color='orange' onClick='Global/CPUPlayerButton'>Orange</button>
<button id='CPUButtonYellow' color='yellow' onClick='Global/CPUPlayerButton'>Yellow</button>
<button id='CPUButtonGreen' color='green' onClick='Global/CPUPlayerButton'>Green</button>
<button id='CPUButtonBlue' color='blue' onClick='Global/CPUPlayerButton'>Blue</button>
<button id='CPUButtonPurple' color='purple' onClick='Global/CPUPlayerButton'>Purple</button>
<button id='CPUButtonPink' color='pink' onClick='Global/CPUPlayerButton'>Pink</button>
</VerticalLayout>
</TableLayout>
-->
<TableLayout active='true' id="MainMenuPanel" height='95%' width='100%' rectAlignment='lowerRight'>
<row><!--Menu Title-->
<image image="UnoTitle" />
</row>
<row preferredHeight='40'>
<button width="70%" rectAlignment="UpperLeft" onClick="Global/GameStart">Start Round</button>
<button id="PlayerOneButton" onClick="Global/UpdatePlayerOne" width="30%" rectAlignment="UpperRight">Player One</button>
</row>
<row preferredHeight='80'><!--Card Drawing Rule-->
<cell>
<text fontSize='30' tooltipfontSize='25' tooltipBackgroundColor='rgba(0,0,0,1)' tooltipPosition='Left' toolTip='1. Only allow players to draw a single card per turn 2. Allow players to keep drawing as many cards as they want per turn'>
Drawing Cards: </text>
</cell>
<cell>
<Dropdown fontSize='20' itemHeight='30' onValueChanged="Global/UpdateDrawingRules">
<Option>Only draw one card per turn</Option>
<Option>Draw many cards per turn</Option>
</Dropdown>
</cell>
</row>
<row id="TurnPassingRow" preferredHeight='80' active='false'><!--Turn Passing-->
<cell>
<text fontSize='30' tooltipfontSize='25' tooltipBackgroundColor='rgba(0,0,0,1)' tooltipPosition='Left' toolTip='Allow players to pass their turn after drawing a card, without playing anything'>Turn Passing:</text>
</cell>
<cell>
<toggle onValueChanged="Global/UpdateTurnpassingRules" scale='2 2 1' />
</cell>
</row>
<row preferredHeight='80'><!--Stacking Rule-->
<cell>
<text fontSize='30' tooltipfontSize='25' tooltipBackgroundColor='rgba(0,0,0,1)' tooltipPosition='Left' toolTip='1. The next player must draw cards when a +2 or +4 card is played 2. The next player can add a +2 card onto a +2 card, and increase the number of cards the next player must draw 3. The next player can add a +4 card onto a +4 card, and increase the number of cards the next player must draw 4. Both rule #2 and rule #3 can apply 5. The next player can add a +2 OR a +4 card onto a +2 OR +4 card, and increase the number of cards the next player must draw'>Card Stacking: </text>
</cell>
<cell>
<Dropdown fontSize='20' itemHeight='30' onValueChanged="Global/UpdateStackingRules">
<Option>Don't Allow Card Stacking</Option>
<Option>Only Allow Stacking +2 Cards</Option>
<Option>Only Allow Stacking +4 Cards</Option>
<Option>Allow Both Stacking Options</Option>
<option>Allow ALL Stacking</option>
</Dropdown>
</cell>
</row>
<row preferredHeight='80'><!--Scripted Uno-->
<cell>
<text fontSize='30' tooltipfontSize='25' tooltipBackgroundColor='rgba(0,0,0,1)' tooltipPosition='Left' toolTip='Allow the script to manage calling UNO! on players that have 1 card left in their hand'>Scripted Uno Calling:</text>
</cell>
<cell>
<toggle isOn="true" onValueChanged="Global/UpdateScriptedUnoRules" scale='2 2 1' />
</cell>
</row>
<row preferredHeight='80'>
<cell>
<text fontSize='30' tooltipfontSize='25' tooltipBackgroundColor='rgba(0,0,0,1)' tooltipPosition='Left' toolTip='When a 7 card is palyed, that player must switch hands with another player When a 0 card is played, all player hands are rotated to next player'>7-0 Rules:</text>
</cell>
<cell>
<toggle onValueChanged="Global/UpdateSevenZeroRules" scale='2 2 1' />
</cell>
</row>
</TableLayout>
</Panel>
<!--END Main Menu Panel-->
<!--UNO Button-->
<button id='UNOButton' onClick='Global/CallUnoButton' width='100' height='50' rectAlignment='lowerCenter' offsetXY='-500 250' fontSize='20' showAnimation='Grow'>Call Uno!</button>
<!--Turn Passing Button-->
<button id='PassTurnButton' onClick='Global/PassTurnButton' width='100' height='50' rectAlignment='lowerCenter' offsetXY= '500 200' fontSize='20' visibility='' showAnimation='Grow'>Pass Turn</button>