Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/lobby/lobby.xml
Show All 17 Lines | <object style="ModernLabelText" type="text" size="50%-128 0%+4 50%+128 36"> | ||||
<translatableAttribute id="caption">Multiplayer Lobby</translatableAttribute> | <translatableAttribute id="caption">Multiplayer Lobby</translatableAttribute> | ||||
</object> | </object> | ||||
<action on="Tick"> | <action on="Tick"> | ||||
onTick(); | onTick(); | ||||
</action> | </action> | ||||
<!-- Left panel: Player list. --> | <!-- Left panel: Player list. --> | ||||
<object name="leftPanel" size="20 30 20% 100%-280"> | <object name="leftPanel" size="20 30 20% 100%-310"> | ||||
<object name="playersBox" | <object name="playersBox" | ||||
style="ModernList" | style="ModernList" | ||||
sprite_asc="ModernArrowDown" | sprite_asc="ModernArrowDown" | ||||
selected_column="name" | selected_column="name" | ||||
selected_column_order="1" | selected_column_order="1" | ||||
sprite_desc="ModernArrowUp" | sprite_desc="ModernArrowUp" | ||||
sprite_not_sorted="ModernNotSorted" | sprite_not_sorted="ModernNotSorted" | ||||
type="olist" | type="olist" | ||||
sortable="true" | sortable="true" | ||||
size="0 0 100% 100%" | size="0 0 100% 100%" | ||||
font="sans-bold-stroke-13" | font="sans-bold-stroke-13" | ||||
> | > | ||||
<column id="buddy" width="12"/> | |||||
<column id="status" width="26%"> | <column id="status" width="26%"> | ||||
<translatableAttribute id="heading">Status</translatableAttribute> | <translatableAttribute id="heading">Status</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="name" width="48%"> | <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"); | displayProfile("lobbylist"); | ||||
</action> | </action> | ||||
<action on="SelectionColumnChange"> | <action on="SelectionColumnChange"> | ||||
updatePlayerList(); | updatePlayerList(); | ||||
</action> | </action> | ||||
<action on="mouseleftdoubleclickitem">toggleBuddy();</action> | |||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="profilePanel" size="20 100%-275 20% 100%-80"> | <object name="profilePanel" size="20 100%-305 20% 100%-110"> | ||||
<object name="profileBox" type="image" sprite="ModernDarkBoxGold" size="0 0 100% 100%"> | <object name="profileBox" type="image" sprite="ModernDarkBoxGold" size="0 0 100% 100%"> | ||||
<object name="profileArea" size="0 0 100% 100%" hidden="true"> | <object name="profileArea" size="0 0 100% 100%" hidden="true"> | ||||
<object name="usernameText" size="0 0 100% 45" type="text" style="ModernLabelText" text_align="center" font="sans-bold-16" /> | <object name="usernameText" size="0 0 100% 45" type="text" style="ModernLabelText" text_align="center" font="sans-bold-16" /> | ||||
<object name="roleText" size="0 45 100% 70" type="text" style="ModernLabelText" text_align="center" font="sans-bold-stroke-12" /> | <object name="roleText" size="0 45 100% 70" type="text" style="ModernLabelText" text_align="center" font="sans-bold-stroke-12" /> | ||||
<object size="0 70 40%+40 90" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13"> | <object size="0 70 40%+40 90" 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> | ||||
<object name="rankText" size="40%+45 70 100% 90" type="text" style="ModernLabelText" text_align="left" font="sans-bold-stroke-12" /> | <object name="rankText" size="40%+45 70 100% 90" type="text" style="ModernLabelText" text_align="left" font="sans-bold-stroke-12" /> | ||||
Show All 16 Lines | <object name="profilePanel" size="20 100%-305 20% 100%-110"> | ||||
<object size="0 170 40%+40 190" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13"> | <object size="0 170 40%+40 190" type="text" style="ModernLabelText" text_align="right" font="sans-bold-stroke-13"> | ||||
<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%-75 20% 100%-20"> | <object name="leftButtonPanel" size="20 100%-105 20% 100%-20"> | ||||
<object name="leaderboardButton" type="button" style="ModernButtonRed" size="0 0 100% 25"> | <object name="toggleBuddy" type="button" style="ModernButtonRed" size="0 100%-85 100% 100%-60"> | ||||
<translatableAttribute id="caption" comment="Toggle Buddy">Toggle Buddy</translatableAttribute> | |||||
<action on="Press"> | |||||
toggleBuddy(); | |||||
</action> | |||||
</object> | |||||
<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(); | Engine.SendGetBoardList(); | ||||
Engine.GetGUIObjectByName("leaderboard").hidden = false; | Engine.GetGUIObjectByName("leaderboard").hidden = false; | ||||
Engine.GetGUIObjectByName("fade").hidden = false; | Engine.GetGUIObjectByName("fade").hidden = false; | ||||
displayProfile("leaderboard"); | displayProfile("leaderboard"); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="userprofileButton" type="button" style="ModernButtonRed" size="0 30 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; | Engine.GetGUIObjectByName("profileFetch").hidden = false; | ||||
Engine.GetGUIObjectByName("fade").hidden = false; | Engine.GetGUIObjectByName("fade").hidden = false; | ||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | <object name="middlePanel" size="20%+5 5% 100%-255 97.2%"> | ||||
type="olist" | type="olist" | ||||
sortable="true" | sortable="true" | ||||
size="0 25 100% 48%" | size="0 25 100% 48%" | ||||
font="sans-stroke-13" | font="sans-stroke-13" | ||||
> | > | ||||
<action on="SelectionChange">updateGameSelection();</action> | <action on="SelectionChange">updateGameSelection();</action> | ||||
<action on="SelectionColumnChange">applyFilters();</action> | <action on="SelectionColumnChange">applyFilters();</action> | ||||
<action on="mouseleftdoubleclickitem">joinButton();</action> | <action on="mouseleftdoubleclickitem">joinButton();</action> | ||||
<column id="name" color="0 60 0" width="27%"> | <column id="buddy" width="12"/> | ||||
<column id="name" color="0 60 0" width="27%-12"> | |||||
<translatableAttribute id="heading">Name</translatableAttribute> | <translatableAttribute id="heading">Name</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="mapName" color="128 128 128" width="25%"> | <column id="mapName" color="128 128 128" width="25%"> | ||||
<translatableAttribute id="heading">Map Name</translatableAttribute> | <translatableAttribute id="heading">Map Name</translatableAttribute> | ||||
</column> | </column> | ||||
<column id="mapSize" color="128 128 128" width="16%"> | <column id="mapSize" color="128 128 128" width="16%"> | ||||
<translatableAttribute id="heading" context="map">Size</translatableAttribute> | <translatableAttribute id="heading" context="map">Size</translatableAttribute> | ||||
</column> | </column> | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator