Guest User

Untitled

a guest
Oct 29th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface name="main" onshow="Exec('/ui/scripts/Smileys.cfg'); If(auto_login and !IsLoggedIn(), Split(Call('login_username_box', 'SetInputLine(login_username);'), SetPassword(login_password), Login()));" onload="CreateString('login_password', login_password); CreateBool('auto_login', false); CreateBool('auto_login_error', false);">
  3.  
  4. <!-- Includes -->
  5. <include file="/ui/fonts.xml"/>
  6. <include file="/ui/inc_button.xml"/>
  7. <include file="common.xml"/>
  8.  
  9. <!-- Styles -->
  10. <style name="lobby_window_header_bg" texture="/ui/frames/rounded_header_bg_white.tga" height="26" color="#0d1018" borderthickness="12"/>
  11. <style name="lobby_window_header" texture="/ui/frames/roundframe_header.tga" height="26" color="#304348" borderthickness="12"/>
  12. <style name="lobby_window_header_label" width="-20" align="center" textvalign="center" font="chat_14" color="white" shadow="true"/>
  13. <style name="lobby_window_bg" texture="/ui/frames/rounded_bg_white.tga" borderthickness="12" color="#12191bAA"/>
  14. <style name="lobby_window" texture="/ui/frames/roundframe.tga" color="#304348" borderthickness="12"/>
  15. <style name="lobby_window_footer_bg" valign="bottom" texture="/ui/frames/rounded_footer_bg_white.tga" height="35" color="#0d1018" borderthickness="12"/>
  16. <style name="lobby_window_footer" valign="bottom" texture="/ui/frames/roundframe_footer.tga" height="35" color="#304348" borderthickness="12"/>
  17.  
  18. <!-- CC: Background-Music --> <!-- All hail Pidgeoni for this workaround! -->
  19. <panel
  20. comment="Loops music manually"
  21. x="0"
  22. y="0"
  23. width="0"
  24. height="0"
  25. color="invisible"
  26. onshow="PlayMusic('/music/hellshrine_under_construction.ogg'); SleepWidget(67168);"
  27. onwake="PlayMusic('/music/hellshrine_under_construction.ogg'); SleepWidget(67168);"
  28. />
  29. <!-- CC: Background-Sound: Fire --> <!-- All hail Pidgeoni for this workaround! -->
  30. <panel
  31. comment="Loops a sound effect manually"
  32. x="0"
  33. y="0"
  34. width="0"
  35. height="0"
  36. color="invisible"
  37. onshow="PlaySound('/shared/sounds/effects/torch.mp3'); SleepWidget(2643);"
  38. onwake="PlaySound('/shared/sounds/effects/torch.mp3'); SleepWidget(2643);"
  39. />
  40.  
  41. <!-- Background -->
  42. <panel name="main_menu_backer" width="100%" height="100%" color="#000000FF" visible="true"/>
  43. <panel texture="/ui/elements/background_image.dds" color="1 1 1 .6"/>
  44.  
  45. <panel>
  46. <modelpanel
  47. noclick="true"
  48. model="/ui/elements/models/hellbourne_flame_emitter.mdf"
  49. anim="idle"
  50. effect="/ui/elements/effects/mainmenu_screen.effect"
  51. camerapos="0 100 50"
  52. cameraangles="0 0 180"
  53. camerafov="90"
  54. />
  55. </panel>
  56.  
  57. <!-- Menubox -->
  58. <panel align="center" width="133@" height="100%" onload="CreateInt('_menu_is_in', 1);" onshow="exec('/scripts/menu_fog.cfg'); exec('/scripts/menu_login_back.cfg');">
  59.  
  60. <!--<panel x="25%" y="49%" width="11%" height="33%" float="bottom" padding="0.25%" color="invisible">
  61. <button name="login_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(1, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(1, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); exec('/scripts/menu_login.cfg'); hidewidget('mott');"/>
  62. <button name="local_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(2, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(2, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); ShowWidget('local_browser_panel'); hidewidget('mott');"/>
  63. <button name="tutorial_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(3, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(3, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); StartLocalGame('tutorial'); hidewidget('mott');"/>
  64. <button name="practice_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(4, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(4, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); if(svr_minClients == 0, Set(svr_minClients, 1)); StartLocalGame('practice'); hidewidget('mott');"/>
  65. <button name="replays_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(5, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(5, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); ShowWidget('replay_browser'); hidewidget('mott');"/>
  66. <button name="options_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(6, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(6, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); Exec('/scripts/slide.cfg'); hidewidget('mott');"/>
  67. <button name="quit_button" width="100%" height="13%" valign="top" color="invisible" onmouseout="Call('skull', 'SetAnim(7, \'mouseout\');');" onmouseover="PlaySound('/shared/sounds/ui/main_menu/stone_slide.mp3'); Call('skull', 'SetAnim(7, \'hover\');');" onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); exec('/scripts/menu_quit.cfg'); hidewidget('mott');"/>
  68. </panel>-->
  69.  
  70. <!-- Menu_CC -->
  71. <panel width="80%" height="80%" align="center" valign="bottom">
  72. <image x="-3%" y="-12%" name="maliken" align="center" valign="bottom" width="63%" height="100%" sticky="true" color="#80808099" texture="/ui/elements/maliken.dds"/> <!-- color="#909090AA" -->
  73. <image y="9%" name="blackspot" align="center" width="30%" height="30%" sticky="true" texture="/ui/elements/blackspot.dds"/>
  74. <image x="23%" y="-28%" name="ophelia" align="center" valign="bottom" width="50%" height="75%" sticky="true" texture="/ui/elements/ophelia.dds"/>
  75. <image x="-32%" y="-33%" name="jereziah" align="center" valign="bottom" width="50%" height="60%" sticky="true" texture="/ui/elements/jereziah.dds"/>
  76. <image y="9%" name="blackspot" align="center" width="30%" height="30%" sticky="true" texture="/ui/elements/blackspot.dds"/>
  77.  
  78. </panel>
  79. <panel name="menu_CC" width="65%" height="50%" align="center" valign="bottom">
  80. <panel y="0" valign="center" height="100%" color="#ffff0000"/>
  81. <panel valign="center" align="bottom" width="100%" height="113%" border="invisible" texture="/ui/elements/bottom_mainbg.dds"/>
  82. <panel width="100%" height="40" align="center" textalign="center" textvalign="center">
  83. </panel>
  84.  
  85. <image y="-45%" name="logo" align="center" width="55%" height="45%" sticky="true" texture="/ui/elements/logo.tga"/>
  86.  
  87. <panel y="18%" width="50%" align="center" height="239" padding="10" float="bottom">
  88.  
  89. <panel y="5" height="27" width="130" align="center" color="invisible">
  90. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Login" onclick="exec('/scripts/menu_login.cfg'); hidewidget('mott');"/>
  91. </panel>
  92.  
  93. <panel height="27" width="130" align="center" color="invisible">
  94. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Local" onclick="ShowWidget('local_browser_panel'); hidewidget('mott');"/>
  95. </panel>
  96.  
  97. <panel height="27" width="130" align="center" color="invisible">
  98. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Tutorial" onclick="StartLocalGame('tutorial'); hidewidget('mott');"/>
  99. </panel>
  100.  
  101. <panel height="27" width="130" align="center" color="invisible">
  102. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Practice" onclick="if(svr_minClients == 0, Set(svr_minClients, 1)); StartLocalGame('practice'); hidewidget('mott');"/>
  103. </panel>
  104.  
  105. <panel height="27" width="130" align="center" color="invisible">
  106. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Replays" onclick="ShowWidget('replay_browser'); hidewidget('mott');"/>
  107. </panel>
  108.  
  109. <panel height="27" width="130" align="center" color="invisible">
  110. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Options" onclick="Exec('/scripts/slide.cfg'); hidewidget('mott');"/>
  111. </panel>
  112.  
  113. <panel height="27" width="130" align="center" color="invisible">
  114. <instance name="round_button_CCmain" width="130" height="27" valign="center" align="center" font="gametweener" label="Quit" onclick="ShowWidget('quit_panel');"/>
  115. </panel>
  116. </panel>
  117. </panel>
  118.  
  119. <!-- Boxes -->
  120.  
  121. <!-- Tutorial Box -->
  122. <panel name="tut_played" onload="createInt('_completedtutorial', 0);" align="center" valign="center" width="25%" height="14.5%" color="invisible" visible="0">
  123. <!-- CC FRAME -->
  124. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  125. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  126. <!-- CC FRAME END -->
  127. <panel width="75%" height="85%" x="-5%" y="10%" color="invisible" align="center" float="bottom" padding="5%">
  128. <panel y="17%" width="95%" height="60%" align="center" color="invisible">
  129. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  130. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  131. <label y="-35%" width="95%" height="100%" textalign="center" textvalign="center" align="center" font="dyn_10" wrap="true" color="#dae0e3CC" shadow="true"> It is highly recommended you play the tutorial before playing online. Would you like to play the tutorial now?</label>
  132. </panel>
  133. </panel>
  134.  
  135. <instance name="round_button_CC1" x="22%" y="-10%" width="20%" height="10%" valign="bottom"
  136. font="dyn_10" label="Yes"
  137. onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); StartLocalGame('tutorial'); hidewidget('mott');"
  138. />
  139. <instance name="round_button_CC1" x="-27%" y="-10%" width="20%" height="10%" align="right" valign="bottom"
  140. font="dyn_10" label="No"
  141. onclick="PlaySound('/shared/sounds/ui/main_menu/button_click.mp3'); SetSave('_completedtutorial', 1); showwidget('first_play'); hidewidget('tut_played');"
  142. />
  143. </panel>
  144.  
  145. <!-- Firstplay Box -->
  146. <panel name="first_play" onload="createInt('_accountCreated', 0);" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0">
  147. <!-- CC FRAME -->
  148. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  149. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  150. <!-- CC FRAME END -->
  151. <panel width="75%" height="60%" y="10%" color="invisible" align="center" float="bottom" padding="5%">
  152. <panel y="17%" width="95%" height="60%" align="center" color="invisible">
  153. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  154. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  155. <label y="-26%" width="95%" height="100%" textalign="center" textvalign="center" align="center" font="dyn_10" wrap="true" color="#dae0e3CC" shadow="true">Do you already have a Savage 2 Account?</label>
  156. </panel>
  157. </panel>
  158.  
  159. <instance name="round_button_CC1" x="12%" y="-20%" width="35%" height="15%" valign="bottom"
  160. font="dyn_10" label="No"
  161. onclick="showwidget('create_account');"
  162. />
  163. <instance name="round_button_CC1" x="-12%" y="-20%" width="35%" height="15%" align="right" valign="bottom"
  164. font="dyn_10" label="Yes"
  165. onclick="SetSave('_accountCreated', 1); showwidget('checking_updates'); hidewidget('first_play');"
  166. />
  167. </panel>
  168.  
  169. <!-- Quit Confirm Box -->
  170. <panel name="quit_panel" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0">
  171. <!-- CC FRAME -->
  172. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  173. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  174. <!-- CC FRAME END -->
  175. <panel width="75%" height="60%" y="10%" color="invisible" align="center" float="bottom" padding="5%">
  176. <panel y="17%" width="95%" height="30%" align="center" color="invisible">
  177. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  178. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  179. <label width="95%" height="100%" textalign="center" textvalign="center" align="center" font="dyn_10" wrap="true" color="#dae0e3CC" shadow="true">Quitting already, pansy?</label>
  180. </panel>
  181. </panel>
  182.  
  183. <instance name="round_button_CC1" x="12%" y="-20%" width="35%" height="15%" valign="bottom"
  184. font="dyn_10" label="Cancel"
  185. onclick="exec('/scripts/menu_login_back.cfg');"
  186. />
  187. <instance name="round_button_CC1" x="-12%" y="-20%" width="35%" height="15%" align="right" valign="bottom"
  188. font="dyn_10" label="Quit"
  189. onclick="Cmd('quit');"
  190. />
  191. </panel>
  192.  
  193. <!-- Login-Info Box -->
  194. <panel name="loging_in" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0">
  195. <!-- CC FRAME -->
  196. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  197. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  198. <!-- CC FRAME END -->
  199. <panel width="75%" height="60%" y="10%" color="invisible" align="center" float="bottom" padding="5%">
  200. <panel y="17%" width="95%" height="30%" align="center" color="invisible">
  201. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  202. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  203. <label width="90%" height="100%" textalign="center" textvalign="center" align="center" font="chat_12" wrap="true" color="#dae0e3CC" shadow="true">Logging in...</label>
  204. </panel>
  205. </panel>
  206.  
  207. <panel width="75%" height="60%" y="32%" color="invisible" align="center" float="bottom" padding="5%">
  208. <panel y="17%" width="95%" height="30%" align="center" color="invisible">
  209. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  210. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  211. <label width="90%" height="100%" textalign="center" textvalign="center" align="center" font="chat_12" wrap="true" color="#dae0e3CC" shadow="true">No New Updates...</label>
  212. </panel>
  213. </panel>
  214. </panel>
  215.  
  216. <!-- UpdateCheck Box -->
  217. <panel name="checking_updates" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0" watch="UpdateNeeded UpdateError" ontrigger="SetVisible(false); If(!UpdateNeeded and !UpdateError, ShowWidget('login_panel'))); If(UpdateError, Split(HideWidget('login_panel'), ShowWidget('update_failed')));" onshow="CheckForUpdates(); HideWidget('update_failed');">
  218. <!-- CC FRAME -->
  219. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  220. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  221. <!-- CC FRAME END -->
  222. <panel width="75%" height="60%" y="27%" color="invisible" align="center" float="bottom" padding="5%">
  223. <panel y="17%" width="95%" height="30%" align="center" color="invisible">
  224. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  225. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  226. <label width="90%" height="100%" textalign="center" textvalign="center" align="center" font="dyn_10" wrap="true" color="#dae0e3CC" shadow="true">Checking For Updates...</label>
  227. </panel>
  228. </panel>
  229. </panel>
  230.  
  231. <!-- UpdateFail Box -->
  232. <panel name="update_failed" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0" watch="" ontrigger="SetVisible(param); If(!param, ShowWidget('login_panel'));">
  233. <!-- CC FRAME -->
  234. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  235. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  236. <!-- CC FRAME END -->
  237. <panel width="75%" height="60%" y="22%" color="invisible" align="center" float="bottom" padding="5%">
  238. <panel y="17%" width="95%" height="30%" align="center" color="invisible">
  239. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  240. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  241. <label width="90%" height="100%" textalign="center" textvalign="center" align="center" font="dyn_10" wrap="true" color="#dae0e3CC" shadow="true">Error checking for updates.</label>
  242. </panel>
  243. </panel>
  244.  
  245. <instance name="round_button_CC1" y="-23%" width="45%" height="18" align="center" valign="bottom"
  246. font="chat_13" label="Continue"
  247. onclick="HideWidget('update_failed'); ShowWidget('login_panel');"
  248. />
  249. </panel>
  250.  
  251. <!-- UpdateDownload Box -->
  252. <panel name="downloading" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0" watch0="UpdateNeeded" ontrigger0="SetVisible(param);" watch1="UpdateRestartNeeded" ontrigger1="If(param, Restart());" onload="CreateString('_update_curver', '0.0.0'); CreateString('_update_newver', '0.0.0');">
  253. <!-- CC FRAME -->
  254. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  255. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  256. <!-- CC FRAME END -->
  257. <panel width="90%" height="63%" y="10%" color="invisible" align="center" float="bottom" padding="1%">
  258. <panel y="2" width="100%" height="14%" color="invisible">
  259. <label width="100%" height="100%" textalign="center" textvalign="center" align="center" font="chat_12" wrap="true" color="0 1 0 1" shadow="true" watch="UpdateDetail" ontrigger="SetText('^w' # param);">^wChecking for updates...</label>
  260. </panel>
  261.  
  262. <panel height="4%"/>
  263.  
  264. <panel width="100%" height="14%" color="invisible">
  265. <label width="100%" height="100%" textalign="center" textvalign="center" align="center" font="chat_10" wrap="true" color="#dae0e3CC" shadow="true" watch1="UpdateLocalVersion" ontrigger1="Set('_update_curver', param); SetText('Your Ver: ^w' # _update_curver # '^*, New Ver: ^w' # _update_newver # '^*');" watch2="UpdateCurVersion" ontrigger2="Set('_update_newver', param); SetText('Your Ver: ^w' # _update_curver # '^*, New Ver: ^w' # _update_newver # '^*');">Your Ver: ^w2.00^*, New Ver: ^w2.00^*</label>
  266. </panel>
  267.  
  268. <panel width="100%" height="14%" color="invisible">
  269. <label width="100%" height="100%" textalign="center" textvalign="center" align="center" font="chat_10" wrap="true" color="#dae0e3CC" shadow="true" watch="UpdateTime" ontrigger="SetText('Time Left: ^w' # param);">Time Left: ^w??:??:?? </label>
  270. </panel>
  271.  
  272. <panel width="100%" height="14%" color="invisible">
  273. <label width="100%" height="100%" textalign="center" textvalign="center" align="center" font="chat_10" wrap="true" color="#dae0e3CC" shadow="true" watch="UpdateFilesLeft" ontrigger="SetText('Files Remaining: ^w' # param0 # '^*/^w' # param1);">Files Remaining: ^w???^*/^w???</label>
  274. </panel>
  275.  
  276. <panel width="100%" height="14%" color="invisible">
  277. <label width="100%" height="100%" textalign="center" textvalign="center" align="center" font="chat_10" wrap="true" color="#dae0e3CC" shadow="true" watch="UpdateSpeed" ontrigger="SetText('Download Speed: ^w' # param # '^*KB/sec');">Download Speed: ^w???^*KB/sec</label>
  278. </panel>
  279.  
  280. <panel width="100%" height="14%" color="invisible">
  281. <label width="100%" height="100%" textalign="center" textvalign="center" align="center" font="chat_10" wrap="true" color="#dae0e3CC" shadow="true" watch="UpdateProgress" ontrigger="SetText('Progress: ^w' # param0 # '^*MB/^w' # param1 # '^*MB');">Progress: ^w???^*MB/^w???^*MB</label>
  282. </panel>
  283. </panel>
  284.  
  285. <panel valign="bottom" y="-12%" width="70%" height="10%" align="center" color="invisible">
  286. <frame texture="/ui/frames/inset.tga" align="center" valign="bottom" borderthickness="2">
  287. <panel width="98%" height="70%" align="center" valign="center" watch="UpdateSizePercent" ontrigger="SetVisible(param != 2);">
  288. <panel align="center" valign="center" texture="/ui/elements/mana_neg.tga"/>
  289. <panel align="left" valign="center" texture="/ui/elements/mana_pos.tga" color="blue" watch="UpdateSizePercent" ontrigger="SetWidth((param * 100) # '%');"/>
  290. <label textalign="center" textvalign="center" color="white" font="chat_10" shadow="1" content="79%% / 24ksec" watch="UpdateSizePercent" ontrigger="SetText(FtoP(param, 0) # '%');"/>
  291. </panel>
  292.  
  293. <panel width="98%" height="70%" align="center" valign="center" watch="UpdatePercent" ontrigger="SetVisible(param != 2);">
  294. <panel align="center" valign="center" texture="/ui/elements/mana_neg.tga"/>
  295. <panel align="left" valign="center" texture="/ui/elements/mana_pos.tga" color="green" watch="UpdatePercent" ontrigger="SetWidth((param * 100) # '%');"/>
  296. <label textalign="center" textvalign="center" color="white" font="chat_10" shadow="1" content="79%% / 24ksec" watch="UpdatePercent" ontrigger="SetText(FtoP(param, 0) # '%');"/>
  297. </panel>
  298.  
  299. <panel width="98%" height="70%" align="center" valign="center" watch="UpdateExtraction" ontrigger="SetVisible(param != 2);">
  300. <panel align="center" valign="center" texture="/ui/elements/mana_neg.tga"/>
  301. <panel align="left" valign="center" texture="/ui/elements/mana_pos.tga" color="red" watch="UpdateExtraction" ontrigger="SetWidth((param * 100) # '%');"/>
  302. <label textalign="center" textvalign="center" color="white" font="chat_10" shadow="1" content="79%% / 24ksec" watch="UpdateExtraction" ontrigger="SetText(FtoP(param, 0) # '%');"/>
  303. </panel>
  304. </frame>
  305. </panel>
  306. <panel x="110%" y="-280%" height="400%" width="140%" color="invisible">
  307. <image y="5.8%" height="86%" width="99%" align="center" texture="/ui/elements/background_bluestone.tga" color="#AAAA99FF"/>
  308. <frame height="100%" texture="/ui/frames/rounded_bg_white.tga" borderthickness="12" color=".2 .1 0 .3" style="lobby_window_header_bg"/>
  309. <frame height="100%" texture="/ui/frames/roundframe.tga" style="lobby_window_header" borderthickness="12"/>
  310. <frame style="lobby_window_bg" texture="/ui/frames/rounded_header_bg_white.tga" color=".3 .2 0 .3" height="5.8%" borderthickness="12"/>
  311. <frame texture="/ui/frames/roundframe_header.tga" height="5.8%" style="lobby_window" borderthickness="12">
  312. <label x="3%" height="100%" width="100%" font="dyn_10" textalign="left" textvalign="center" color="#dae0e3CC" shadow="true" >Change Log</label>
  313. </frame>
  314. <frame valign="bottom" texture="/ui/frames/rounded_footer_bg_white.tga" height="8%" color=".2 .1 0 1" style="lobby_window_bg" borderthickness="12"/>
  315. <frame valign="bottom" texture="/ui/frames/roundframe_footer.tga" height="8%" style="lobby_window" borderthickness="12">
  316. <instance name="round_button_CC1" y="-23%" width="45%" height="60%" align="center" valign="bottom"
  317. font="chat_13" label="Cancel Update"
  318. onclick="Exec('/scripts/menu_login_back.cfg'); HideWidget('downloading'); CancelUpdate();"
  319. />
  320. </frame>
  321.  
  322. <textbuffer y="5.8%" height="84%" x="-17" align="right" width="-30" handleheight="48" scrolltexture="/ui/elements/vist_scroll.tga" exteriorscrollbars="true" textalign="left" font="dyn_10" textcolor="white" color="invisible" shadow="1" wrap="true" noclick="0" watch="UpdateChangelog" ontrigger="ReloadFile();" file=":/change_log.txt"/>
  323. </panel>
  324. </panel>
  325.  
  326. <!-- Login-Panel Box -->
  327. <panel name="login_panel" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0" onshow="If(auto_login and IsLoggedIn(), SetHostInterface('browser'), Set('auto_login_error', true));">
  328. <!-- CC FRAME -->
  329. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  330. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  331. <!-- CC FRAME END -->
  332. <panel width="75%" height="60%" y="10%" color="invisible" align="center" float="bottom" padding="5%">
  333. <panel y="6%" height="25%" color="invisible" float="right" padding="5%">
  334. <label height="100%" width="33%" font="dyn_10" textalign="left" textvalign="center" color="#dae0e3CC" shadow="true" >Username:</label>
  335. <panel align="center" valign="center" height="90%" color="invisible" width="66%">
  336. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  337. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  338. <textbox
  339. x="5%"
  340. y="1%"
  341. name="login_username_box"
  342. valign="center"
  343. taborder="1"
  344. font="dyn_10"
  345. color="invisible"
  346. shadow="false"
  347. textcolor="white"
  348. maxlength="34"
  349. onchange="SetUsername(this);"
  350. onshow="If(login_rememberMe or auto_login, Split(SetFocusName('passbox'), SetInputLine(login_username)), SetFocus('true'));"
  351. onenter="SetFocusName('passbox');"
  352. />
  353. </panel>
  354. </panel>
  355. <panel height="25%" color="invisible" float="right" padding="5%">
  356. <label height="100%" width="33%" font="dyn_10" textalign="left" textvalign="center" color="#dae0e3CC" shadow="true" >Password:</label>
  357. <panel valign="center" height="90%" color="invisible" width="66%">
  358. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  359. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  360. <textbox
  361. height="100%"
  362. x="5%"
  363. name="passbox"
  364. textvalign="center"
  365. valign="center"
  366. taborder="2"
  367. font="dyn_10"
  368. color="invisible"
  369. textcolor="white"
  370. shadow="true"
  371. maxlength="34"
  372. passwordchar="*"
  373. onchange="SetPassword(this);"
  374. onenter="PlaySound('/shared/sounds/ui/button_click.mp3'); ShowWidget('login_status'); Login(); Hidewidget('login_panel'); Call('login_username_box', 'Set(\'login_username\',this);'); If(auto_login, SetSave('login_password',this), SetSave('login_password',''));"
  375. />
  376.  
  377. </panel>
  378. </panel>
  379. <panel height="25%" color="invisible" float="right" padding="5%">
  380. <label height="100%" width="60%" font="dyn_9" textalign="right" textvalign="center" color="#dae0e3CC" shadow="true">Remember Me:</label>
  381. <panel color="black" height="80%" width="8%">
  382. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  383. <frame color="#304348" texture="/ui/frames/roundframe.tga" borderthickness="6"/>
  384.  
  385. <panel name="login_remember_nocheck" visible="true" onshow="SetVisible(!login_rememberMe);">
  386. <button onclick="PlaySound('/shared/sounds/ui/button_click.mp3'); Set('login_rememberme', 1); HideWidget('login_remember_nocheck'); ShowWidget('login_remember_check'); Call('login_username_box', 'Set(\'login_username\',this);'); Call('passbox','If(auto_login, SetSave(\'login_password\',this), SetSave(\'login_password\',\'\'));'); SetFocusName('passbox');" color="invisible"/>
  387. </panel>
  388.  
  389. <panel name="login_remember_check" visible="true" onshow="SetVisible(login_rememberMe);">
  390. <image x="-1%" y="-1%" width="80%" height="80%" align="center" valign="center" color="black" texture="/ui/elements/check.tga"/>
  391. <image width="80%" height="80%" align="center" valign="center" color="#11cd33" texture="/ui/elements/check.tga"/>
  392. <button onclick="PlaySound('/shared/sounds/ui/button_click.mp3'); Set('login_rememberme', 0); ShowWidget('login_remember_nocheck'); HideWidget('login_remember_check'); SetFocusName('passbox');" color="invisible" />
  393. </panel>
  394. </panel>
  395. </panel>
  396. </panel>
  397. <instance name="round_button_CC1" x="12%" y="-13%" width="35%" height="15%" valign="bottom"
  398. font="dyn_10" label="Cancel"
  399. onclick="exec('/scripts/menu_login_back.cfg');"
  400. />
  401. <instance name="round_button_CC1" x="-12%" y="-13%" width="35%" height="15%" align="right" valign="bottom"
  402. font="dyn_10" label="Login"
  403. onclick="ShowWidget('login_status'); Login(); Hidewidget('login_panel'); Call('login_username_box', 'Set(\'login_username\',this);'); Call('passbox','If(auto_login, SetSave(\'login_password\',this), SetSave(\'login_password\',\'\'));');"
  404. />
  405. </panel>
  406.  
  407. <!-- Login-Status Box -->
  408. <panel name="login_status" align="center" valign="center" width="22%" height="14.5%" color="invisible" visible="0">
  409. <!-- CC FRAME -->
  410. <frame color="#0d1018" texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="6"/>
  411. <frame valign="center" align="center" name="frame" borderthickness="32" texture="/ui/frames/border2.tga" float="bottom" />
  412. <!-- CC FRAME END -->
  413. <label height="10%" y="22%" font="dyn_12" align="center" valign="top" textalign="center" color="#dae0e3CC" shadow="true" onshow="SetText('Logging in...'); HideWidget('login_okay');" watch="LoginStatus" ontrigger="Echo(IsLoggedIn()); If((param and !auto_login) or (param and auto_login and auto_login_error), Split(HideWidget('login_status'), HideWidget('login_panel'), Exec('/scripts/menu_login_back.cfg'), SetHostInterface('browser'), Set('auto_login_error', false)), SetText('Login failure!'));">Logging in...</label>
  414. <label x="1%" width="87%" height="20%" y="39%" font="dyn_10" align="center" valign="top" textalign="center" color="#dae0e3CC" shadow="true" wrap="true" onshow="SetText('Please wait');" watch="LoginStatus" ontrigger="SetText(param1);">Please wait...</label>
  415.  
  416. <panel name="login_okay" visible="false" watch="LoginStatus" ontrigger="SetVisible(!param);">
  417. <instance name="round_button_CC1" x="12%" y="-13%" width="35%" height="15%" valign="bottom"
  418. font="dyn_10" label="Cancel"
  419. onclick="exec('/scripts/menu_login_back.cfg'); HideWidget('login_status'); HideWidget('update_failed');"
  420. />
  421. <instance name="round_button_CC1" x="-12%" y="-13%" width="35%" height="15%" align="right" valign="bottom"
  422. font="dyn_10" label="Okay"
  423. onclick="HideWidget('login_status'); Showwidget('login_panel');"
  424. onshow="SetFocus(true);"
  425. onenter="HideWidget('login_status'); Showwidget('login_panel');"
  426. />
  427. </panel>
  428. </panel>
  429.  
  430. <!-- CreateAcc Box -->
  431. <panel valign="bottom" align="center" height="4%" width="17%" color="invisible" onload="if(StringLength(CheckForPromoCode()) gt 0 and !(*('Acct_Promo_' # StripChar('-',CheckForPromoCode()))), Split(Exec('/scripts/menu_login_back.cfg'), AcctSetPromo(CheckForPromoCode()), CreateInt('Acct_Promo_' # StripChar('-',CheckForPromoCode()), 0), SetSave('Acct_Promo_' # StripChar('-',CheckForPromoCode()), 1), showwidget('create_account')));">
  432. <instance name="round_button_CCmain" align="center" width="150" height="27" valign="center" font="gametweener" label="Create Account" onclick="Exec('/scripts/menu_login_back.cfg'); AcctSetPromo(CheckForPromoCode()); showwidget('create_account');"/>
  433. <!-- <image x="-1%" align="right" valign="center" width="10%" height="50%" color="black" texture="/ui/elements/sort_up.tga" noclick="true"/> -->
  434. </panel>
  435.  
  436. </panel> <!-- End Menubox -->
  437.  
  438. <!-- Block mouse input before the interface gets shown -->
  439. <panel onmouseover="HideWidget();"/>
  440.  
  441. <!-- Developer Menu -->
  442.  
  443. <panel x="748" y="168" width="200" height="16" color="navy" cangrab="true" onload="SetVisible(host_developerMenu);">
  444. <label height="20" textalign="center" color="white" shadow="true" noclick="true">Developer Menu</label>
  445. <button name="hide_button" x="-2" y="2" width="12" height="12" align="right" texture="/ui/elements/minus.tga" onclick="HideWidget('dev_panel'); ShowWidget('show_button'); SetVisible(false);"/>
  446. <button name="show_button" x="-2" y="2" width="12" height="12" align="right" texture="/ui/elements/minus.tga" visible="false" onclick="ShowWidget('dev_panel'); ShowWidget('hide_button'); SetVisible(false);"/>
  447. <panel name="dev_panel" y="16" height="186" color="silver" float="bottom" padding="4">
  448. <instance name="round_button_CC1" y="8" width="80%" height="24" align="center" font="gamesmall" label="Deadlock" onclick="StartLocalGame('deadlock');"/>
  449. <instance name="round_button_CC1" width="80%" height="24" align="center" font="gamesmall" label="Hellpeak" onclick="StartLocalGame('hellpeak');"/>
  450. <instance name="round_button_CC1" width="80%" height="24" align="center" font="gamesmall" label="Crossroads" onclick="StartLocalGame('crossroads');"/>
  451. <instance name="round_button_CC1" width="80%" height="24" align="center" font="gamesmall" label="Duel Arena" onclick="StartLocalGame('duel_arena');"/>
  452. <panel width="90%" height="1" align="center" color="#666666"/>
  453. <instance name="round_button_CC1" width="80%" height="24" align="center" font="gamesmall" label="Editor" onclick="StartClient('editor');"/>
  454. <instance name="round_button_CC1" width="80%" height="24" align="center" font="gamesmall" label="Viewer" onclick="StartClient('modelviewer');"/>
  455. </panel>
  456. </panel>
  457.  
  458. <!-- <image y="-3%" x="3%" width="128" height="128" valign="bottom" texture="/ui/elements/esrb.tga"/> -->
  459.  
  460. <image y="-2.5%" x="-3%" width="128" height="128" align="right" valign="bottom" texture="/ui/elements/s2logo.tga"/>
  461.  
  462. <panel valign="top" align="center" height="20" color="invisible" noclick="true">
  463. <instance name="round_button_CC1" font="dyn_10" label="Return to Browser" align="right" x="-8" y="5" width="150" visible="0" onframe="SetVisible(IsLoggedIn());" onclick="SetHostInterface('browser');"/>
  464. </panel>
  465.  
  466. <!-- Options panel -->
  467. <include file="/ui/game_options.xml"/>
  468.  
  469. <include file="/ui/mott.xml"/>
  470. <include file="/ui/create_account.xml"/>
  471.  
  472. <!-- Local browser -->
  473. <include file="/ui/main_local_browser.xml"/>
  474.  
  475. <!-- Replay browser -->
  476. <include file="/ui/main_replay_browser.xml"/>
  477.  
  478.  
  479. <!-- Custom Client -->
  480. <include file="/ui/customclient.xml"/>
  481. <instance name="customclient" interface="main"/>
  482.  
  483. </interface>
Add Comment
Please, Sign In to add comment