diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-05-04 01:18:52 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-05-04 01:18:52 +0300 |
commit | 01beb9919b95479d8be040bec74abc5cc67a5e43 (patch) | |
tree | 65f0b79e793848491832756a4c3a32b23668fab3 /assets/ui/download.menu | |
parent | 191d731da136b7ee959a17e63111c9146219a768 (diff) |
Initial import.
Diffstat (limited to 'assets/ui/download.menu')
-rw-r--r-- | assets/ui/download.menu | 192 |
1 files changed, 192 insertions, 0 deletions
diff --git a/assets/ui/download.menu b/assets/ui/download.menu new file mode 100644 index 0000000..d323f47 --- /dev/null +++ b/assets/ui/download.menu @@ -0,0 +1,192 @@ +#include "ui/menudef.h" + +{ + \\ DOWNLOAD \\ + + menuDef + { + name "download_popmenu" + visible MENU_FALSE + fullscreen MENU_FALSE + rect 158 80 320 320 + focusColor 1 1 1 1 + style WINDOW_STYLE_FILLED + border WINDOW_BORDER_FULL + popup + onClose { } + onOpen + { + uiScript loadServerInfo; + } + onESC + { + play "sound/misc/menu1.wav"; + close download_popmenu; + uiScript downloadIgnore; + } + + itemDef + { + name window + rect 10 15 300 320 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 1 + visible MENU_TRUE + decoration + + border WINDOW_BORDER_FULL + borderSize 1.0 + borderColor 0.5 0.5 0.5 1 + } + + itemDef + { + name downloadinfo + rect 0 50 320 20 + type ITEM_TYPE_TEXT + text "Download" + textalign ALIGN_CENTER + textstyle ITEM_TEXTSTYLE_SHADOWEDMORE + textscale .333 + forecolor 1 1 1 1 + visible MENU_TRUE + decoration + } + + itemDef + { + name downloadinfo + rect 60 80 200 270 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_FILLED + textstyle ITEM_TEXTSTYLE_SHADOWED + wrapped + cvar "com_downloadPromptText" + textalign ALIGN_CENTER + textvalign VALIGN_TOP + textscale .25 + forecolor 1 1 1 1 + visible MENU_TRUE + decoration + } + + + // BUTTON // + + + itemDef + { + name curl + text "Download from web-server" + textscale .4 + forecolor 0 0.8 1 1 + group grpControlbutton + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 60 250 200 15 + textalign ALIGN_CENTER + backcolor .37 .1 .1 1 + visible MENU_TRUE + cvarTest "ui_serverinfo_allowdl" + showCvar { 1 5 9 13 } + action + { + play "sound/misc/menu1.wav"; + close download_popmenu; + uiScript downloadCURL; + } + } + + itemDef + { + name curl + type ITEM_TYPE_YESNO + text "Allow Auto Download:" + cvar "cl_allowDownload" + textscale .3 + forecolor 0 0.8 1 1 + group grpControlbutton + style WINDOW_STYLE_EMPTY + rect 25 220 200 15 + textalign ALIGN_CENTER + backcolor .37 .1 .1 1 + visible MENU_TRUE + cvarTest "ui_serverinfo_allowdl" + showCvar { 1 5 9 13 } + action + { + play "sound/misc/menu1.wav"; + } + } + + itemDef + { + name udp + text "Download from server" + type ITEM_TYPE_BUTTON + textscale .25 + group grpControlbutton + style WINDOW_STYLE_EMPTY + rect 60 265 200 15 + textalign ALIGN_CENTER + forecolor 1 1 1 1 + backcolor .37 .1 .1 1 + visible 0 + cvarTest "ui_serverinfo_allowdl" + showCvar { 1 3 9 11 } + action + { + play "sound/misc/menu1.wav"; + close download_popmenu; + uiScript downloadUDP; + } + } + + + itemDef + { + name ignore + text "Ignore" + type ITEM_TYPE_BUTTON + textscale .25 + group grpControlbutton + style WINDOW_STYLE_EMPTY + rect 60 280 200 15 + textalign ALIGN_CENTER + forecolor 1 1 1 1 + backcolor .37 .1 .1 1 + visible MENU_TRUE + cvarTest "sv_pure" + hideCvar { 1 } + action + { + play "sound/misc/menu1.wav"; + close download_popmenu; + uiScript downloadIgnore; + } + } + + + + itemDef + { + name disconnect + text "Disconnect" + type ITEM_TYPE_BUTTON + textscale .25 + group grpControlbutton + style WINDOW_STYLE_EMPTY + rect 60 295 200 15 + textalign ALIGN_CENTER + forecolor 1 1 1 1 + backcolor .37 .1 .1 1 + visible 1 + action + { + play "sound/misc/menu1.wav"; + close download_popmenu; + exec "disconnect"; + } + } + } +} |