Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/lobby/lobby.xml
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | <object name="leftPanel" size="20 30 20% 100%-310"> | ||||
</column> | </column> | ||||
<column id="name" width="45%-12"> | <column id="name" width="45%-12"> | ||||
<translatableAttribute id="heading">Name</translatableAttribute> | <translatableAttribute id="heading">Name</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="rating" width="26%"> | <column id="rating" width="26%"> | ||||
<translatableAttribute id="heading">Rating</translatableAttribute> | <translatableAttribute id="heading">Rating</translatableAttribute> | ||||
</column> | </column> | ||||
<action on="SelectionChange"> | <action on="SelectionChange"> | ||||
displayProfile("lobbylist"); | onPlayerListSelection(); | ||||
</action> | </action> | ||||
<action on="SelectionColumnChange"> | <action on="SelectionColumnChange"> | ||||
updatePlayerList(); | updatePlayerList(); | ||||
</action> | </action> | ||||
<action on="mouseleftdoubleclickitem">toggleBuddy();</action> | <action on="mouseleftdoubleclickitem">toggleBuddy();</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
Show All 26 Lines | <object name="profilePanel" size="20 100%-305 20% 100%-110"> | ||||
<translatableAttribute id="caption">Win Rate:</translatableAttribute> | <translatableAttribute id="caption">Win Rate:</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="ratioText" size="40%+45 170 100% 190" type="text" style="ModernLabelText" text_align="left" font="sans-bold-stroke-12" /> | <object name="ratioText" size="40%+45 170 100% 190" type="text" style="ModernLabelText" text_align="left" font="sans-bold-stroke-12" /> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="leftButtonPanel" size="20 100%-105 20% 100%-20"> | <object name="leftButtonPanel" size="20 100%-105 20% 100%-20"> | ||||
<object name="toggleBuddy" type="button" style="ModernButtonRed" size="0 100%-85 100% 100%-60"> | <object name="toggleBuddyButton" type="button" style="ModernButtonRed" size="0 100%-85 100% 100%-60"> | ||||
<translatableAttribute id="caption" comment="Toggle Buddy">Toggle Buddy</translatableAttribute> | <translatableAttribute id="caption" comment="Toggle Buddy">Toggle Buddy</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
toggleBuddy(); | toggleBuddy(); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="leaderboardButton" type="button" style="ModernButtonRed" size="0 100%-55 100% 100%-30"> | <object name="leaderboardButton" type="button" style="ModernButtonRed" size="0 100%-55 100% 100%-30"> | ||||
<translatableAttribute id="caption">Leaderboard</translatableAttribute> | <translatableAttribute id="caption">Leaderboard</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
Engine.SendGetBoardList(); | setLeaderboardVisibility(true); | ||||
Engine.GetGUIObjectByName("leaderboard").hidden = false; | |||||
Engine.GetGUIObjectByName("fade").hidden = false; | |||||
displayProfile("leaderboard"); | |||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="userprofileButton" type="button" style="ModernButtonRed" size="0 100%-25 100% 100%"> | <object name="userprofileButton" type="button" style="ModernButtonRed" size="0 100%-25 100% 100%"> | ||||
<translatableAttribute id="caption">User Profile Lookup</translatableAttribute> | <translatableAttribute id="caption">User Profile Lookup</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
Engine.GetGUIObjectByName("profileFetch").hidden = false; | setUserProfileVisibility(true); | ||||
Engine.GetGUIObjectByName("fade").hidden = false; | |||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- Right panel: Game details. --> | <!-- Right panel: Game details. --> | ||||
<object name="rightPanel" size="100%-250 30 100%-20 100%-20" > | <object name="rightPanel" size="100%-250 30 100%-20 100%-20" > | ||||
<object name="gameInfoEmpty" size="0 0 100% 100%-60" type="image" sprite="ModernDarkBoxGold" hidden="false"> | <object name="gameInfoEmpty" size="0 0 100% 100%-60" type="image" sprite="ModernDarkBoxGold" hidden="false"> | ||||
<object name="logo" size="50%-110 40 50%+110 140" type="image" sprite="logo"/> | <object name="logo" size="50%-110 40 50%+110 140" type="image" sprite="logo"/> | ||||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | <object name="middlePanel" size="20%+5 5% 100%-255 97.2%"> | ||||
<action on="Press">submitChatInput();</action> | <action on="Press">submitChatInput();</action> | ||||
<action on="Tab"> | <action on="Tab"> | ||||
autoCompleteNick(this, Engine.GetPlayerList().map(player => player.name)); | autoCompleteNick(this, Engine.GetPlayerList().map(player => player.name)); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- START Window for leaderboard stats --> | <!-- Translucent black background --> | ||||
<!-- Add a translucent black background to fade out the menu page --> | |||||
<object hidden="true" name="fade" type="image" z="100" sprite="ModernFade"/> | <object hidden="true" name="fade" type="image" z="100" sprite="ModernFade"/> | ||||
<!-- Leaderboard --> | |||||
<object hidden="true" name="leaderboard" type="image" style="ModernDialog" size="50%-224 50%-160 50%+224 50%+160" z="101"> | <object hidden="true" name="leaderboard" type="image" style="ModernDialog" size="50%-224 50%-160 50%+224 50%+160" z="101"> | ||||
<object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14"> | <object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14"> | ||||
<translatableAttribute id="caption">Leaderboard</translatableAttribute> | <translatableAttribute id="caption">Leaderboard</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="leaderboardBox" | <object name="leaderboardBox" | ||||
style="ModernList" | style="ModernList" | ||||
type="olist" | type="olist" | ||||
size="19 19 100%-19 100%-62"> | size="19 19 100%-19 100%-62"> | ||||
<column id="rank" color="255 255 255" width="15%"> | <column id="rank" color="255 255 255" width="15%"> | ||||
<translatableAttribute id="heading">Rank</translatableAttribute> | <translatableAttribute id="heading">Rank</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="name" color="255 255 255" width="55%"> | <column id="name" color="255 255 255" width="55%"> | ||||
<translatableAttribute id="heading">Name</translatableAttribute> | <translatableAttribute id="heading">Name</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="rating" color="255 255 255" width="30%"> | <column id="rating" color="255 255 255" width="30%"> | ||||
<translatableAttribute id="heading">Rating</translatableAttribute> | <translatableAttribute id="heading">Rating</translatableAttribute> | ||||
</column> | </column> | ||||
<action on="SelectionChange"> | <action on="SelectionChange"> | ||||
displayProfile("leaderboard"); | lookupSelectedUserProfile(this.name); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="50%-133 100%-45 50%-5 100%-17" hotkey="cancel"> | <object type="button" style="ModernButtonRed" size="50%-133 100%-45 50%-5 100%-17" hotkey="cancel"> | ||||
<translatableAttribute id="caption">Back</translatableAttribute> | <translatableAttribute id="caption">Back</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
Engine.GetGUIObjectByName("leaderboard").hidden = true; | setLeaderboardVisibility(false); | ||||
Engine.GetGUIObjectByName("fade").hidden = true; | |||||
displayProfile("lobbylist"); | |||||
</action> | </action> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="50%+5 100%-45 50%+133 100%-17"> | <object type="button" style="ModernButtonRed" size="50%+5 100%-45 50%+133 100%-17"> | ||||
<translatableAttribute id="caption">Update</translatableAttribute> | <translatableAttribute id="caption">Update</translatableAttribute> | ||||
<action on="Press">Engine.SendGetBoardList();</action> | <action on="Press">Engine.SendGetBoardList();</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- END Window for leaderboard stats --> | <!-- End of leaderboard --> | ||||
<!-- User profile lookup --> | |||||
<object hidden="true" name="profileFetch" type="image" style="ModernDialog" size="50%-224 50%-160 50%+224 50%+160" z="102"> | <object hidden="true" name="profileFetch" type="image" style="ModernDialog" size="50%-224 50%-160 50%+224 50%+160" z="102"> | ||||
<object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14"> | <object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14"> | ||||
<translatableAttribute id="caption">User Profile Lookup</translatableAttribute> | <translatableAttribute id="caption">User Profile Lookup</translatableAttribute> | ||||
</object> | </object> | ||||
<object type="text" size="15 25 40% 50" text_align="right" textcolor="white"> | <object type="text" size="15 25 40% 50" text_align="right" textcolor="white"> | ||||
<translatableAttribute id="caption">Enter username:</translatableAttribute> | <translatableAttribute id="caption">Enter username:</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="fetchInput" size="40%+10 25 100%-25 50" type="input" style="ModernInput" font="sans-13"> | <object name="fetchInput" size="40%+10 25 100%-25 50" type="input" style="ModernInput" font="sans-13"> | ||||
<action on="Press">displayProfile("fetch");</action> | <action on="Press">lookupUserProfile();</action> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="50%-64 60 50%+64 85"> | <object type="button" style="ModernButtonRed" size="50%-64 60 50%+64 85"> | ||||
<translatableAttribute id="caption">View Profile</translatableAttribute> | <translatableAttribute id="caption">View Profile</translatableAttribute> | ||||
<action on="Press">displayProfile("fetch");</action> | <action on="Press">lookupUserProfile();</action> | ||||
</object> | </object> | ||||
<object name="profileWindowPanel" size="25 95 100%-25 100%-60"> | <object name="profileWindowPanel" size="25 95 100%-25 100%-60"> | ||||
<object name="profileWindowBox" type="image" sprite="ModernDarkBoxGold" size="0 0 100% 100%"> | <object name="profileWindowBox" type="image" sprite="ModernDarkBoxGold" size="0 0 100% 100%"> | ||||
<object name="profileWindowArea" size="0 0 100% 100%" hidden="true"> | <object name="profileWindowArea" size="0 0 100% 100%" hidden="true"> | ||||
<object name="profileUsernameText" size="0 0 100% 25" type="text" style="ModernLabelText" text_align="center" font="sans-bold-16" /> | <object name="profileUsernameText" size="0 0 100% 25" type="text" style="ModernLabelText" text_align="center" font="sans-bold-16" /> | ||||
<object size="0 30 40%+40 50" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13"> | <object size="0 30 40%+40 50" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13"> | ||||
<translatableAttribute id="caption">Current Rank:</translatableAttribute> | <translatableAttribute id="caption">Current Rank:</translatableAttribute> | ||||
</object> | </object> | ||||
Show All 22 Lines | <object hidden="true" name="profileFetch" type="image" style="ModernDialog" size="50%-224 50%-160 50%+224 50%+160" z="102"> | ||||
<object name="profileErrorText" size="25% 25% 75% 75%" type="text" style="ModernLabelText" text_align="center" font="sans-bold-stroke-13" hidden="false"> | <object name="profileErrorText" size="25% 25% 75% 75%" type="text" style="ModernLabelText" text_align="center" font="sans-bold-stroke-13" hidden="false"> | ||||
<translatableAttribute id="caption">Please enter a player name.</translatableAttribute> | <translatableAttribute id="caption">Please enter a player name.</translatableAttribute> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="50%-64 100%-50 50%+64 100%-25" hotkey="cancel"> | <object type="button" style="ModernButtonRed" size="50%-64 100%-50 50%+64 100%-25" hotkey="cancel"> | ||||
<translatableAttribute id="caption">Back</translatableAttribute> | <translatableAttribute id="caption">Back</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
Engine.GetGUIObjectByName("profileFetch").hidden = true; | setUserProfileVisibility(false); | ||||
Engine.GetGUIObjectByName("fade").hidden = true; | |||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- End of user profile lookup --> | |||||
</object> | </object> | ||||
</objects> | </objects> |
Wildfire Games · Phabricator