mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-23 12:11:27 +00:00
In-game UI for Makro
This commit is contained in:
parent
808452afe3
commit
24348c140c
1 changed files with 430 additions and 420 deletions
|
@ -2,448 +2,458 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
assetGlobalDef {
|
menuDef {
|
||||||
font "fonts/font" 16 // font
|
name "ingame"
|
||||||
smallFont "fonts/smallfont" 12 // font
|
visible 0
|
||||||
bigFont "fonts/bigfont" 20 // font
|
fullScreen 0
|
||||||
//cursor "gfx/rq3_ta_hud/3_cursor2.tga" // cursor
|
//onOOBClick { close _self } // this closes the window if it gets a click out of the rectangle
|
||||||
cursor UI_ASSETS"/cursor.tga"
|
rect 0 0 640 480
|
||||||
cursorSize 64
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
||||||
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
|
disableColor .5 .5 .5 1
|
||||||
itemFocusSound "sound/ui/whoosh2.wav" // sound for item getting focus (via keyboard or mouse )
|
//onOpen { hide confirm ; play "sound/ui/whoosh3.wav" ; setfocus "btn-about" ; }
|
||||||
|
onOpen { play "sound/ui/whoosh3.wav" ; setfocus "btn-about" ; }
|
||||||
|
|
||||||
fadeClamp 1.0 // sets the fadeup alpha
|
itemdef {
|
||||||
fadeCycle 1 // how often fade happens in milliseconds
|
name "ig-overlay"
|
||||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
group background
|
||||||
|
//rect 0 0 640 480
|
||||||
|
rect UI_MINX UI_MINY UI_WIDTH UI_HEIGHT
|
||||||
|
style WINDOW_STYLE_FILLED
|
||||||
|
backcolor 0 0 0 0.5
|
||||||
|
visible 1
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
itemDef {
|
||||||
}
|
name "ig-logo"
|
||||||
|
group background
|
||||||
|
rect 88 16 256 128
|
||||||
|
style WINDOW_STYLE_SHADER
|
||||||
|
background UI_ASSETS"/ingame-logo"
|
||||||
|
forecolor 1 1 1 1
|
||||||
|
visible 0
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
menuDef {
|
itemDef {
|
||||||
name "ingame"
|
renderpoint
|
||||||
visible 0
|
name "postit2"
|
||||||
fullScreen 0
|
group ingameMain
|
||||||
//outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
style WINDOW_STYLE_SHADER
|
||||||
onOOBClick { close _self }
|
background UI_ASSETS"/post_it"
|
||||||
rect 0 0 640 36
|
//forecolor .8 .85 .9 1
|
||||||
focusColor 1 .75 0 1
|
forecolor 0.85 0.75 0.5 1
|
||||||
disableColor .5 .5 .5 1
|
//rect -20 136 180 152
|
||||||
onOpen { play "sound/misc/menu2.wav" ; setfocus "ig-player" ; }
|
rect $evalfloat(UI_MINX - 20) 136 180 152
|
||||||
|
anglevectors -6 -96
|
||||||
|
visible 1
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
itemdef {
|
//Restart
|
||||||
name "ig-bground"
|
|
||||||
rect 0 0 640 36
|
|
||||||
style WINDOW_STYLE_SHADER
|
|
||||||
background "ui/assets/rq3-ingame-background"
|
|
||||||
//backcolor 0 0 0 .5
|
|
||||||
visible 1
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
itemdef {
|
||||||
name "ig-bground-bar"
|
renderpoint
|
||||||
rect 0 36 640 2
|
name "btn_restart"
|
||||||
style WINDOW_STYLE_FILLED
|
group ingameMain
|
||||||
//backcolor 1 0 0 1
|
text "> ^_R^_estart map"
|
||||||
backcolor .5 .5 .5 1
|
shortcutKey "R"
|
||||||
visible 1
|
forecolor 0 0 0 1
|
||||||
decoration
|
textaligny 20
|
||||||
}
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "postit2" ITEM_ALIGN_LEFT 32 8 120 24
|
||||||
|
//alignrect "postit2" ITEM_ALIGN_LEFT $evalfloat(UI_MINX + 32) 8 120 24
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
visible 1
|
||||||
|
//action { show confirm }
|
||||||
|
action { open confirmRestart }
|
||||||
|
}
|
||||||
|
|
||||||
itemdef {
|
//Exit to main menu
|
||||||
name "ig-logo"
|
|
||||||
rect 4 0 96 32
|
|
||||||
style WINDOW_STYLE_SHADER
|
|
||||||
background UI_ASSETS"/icons/rq3-title-logo"
|
|
||||||
visible 1
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
//Box for hints
|
itemdef {
|
||||||
|
name "btn_mainmenu"
|
||||||
|
group ingameMain
|
||||||
|
text "> ^_M^_ain menu"
|
||||||
|
shortcutKey "M"
|
||||||
|
forecolor 0 0 0 1
|
||||||
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "btn_restart" ITEM_ALIGN_LEFT 0 20 120 24
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
visible 1
|
||||||
|
action { open confirmMain }
|
||||||
|
}
|
||||||
|
|
||||||
itemDef {
|
//Quit game
|
||||||
style WINDOW_STYLE_SHADER
|
|
||||||
rect 384 26 40 20
|
|
||||||
background "ui/assets/rq3-main-box-3.tga"
|
|
||||||
visible 1
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemDef {
|
itemdef {
|
||||||
style WINDOW_STYLE_SHADER
|
name "btn_quit"
|
||||||
rect 424 26 216 20
|
group ingameMain
|
||||||
background "ui/assets/rq3-main-box-1.tga"
|
text "> ^_E^_xit Reaction"
|
||||||
visible 1
|
shortcutKey "E"
|
||||||
decoration
|
forecolor 0 0 0 1
|
||||||
}
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "btn_mainmenu" ITEM_ALIGN_LEFT 0 20 120 24
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
visible 1
|
||||||
|
action { open confirmQuit }
|
||||||
|
}
|
||||||
|
|
||||||
//Buttons
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-player"
|
|
||||||
rect 116 8 52 16
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_CENTER
|
|
||||||
textalignx 26
|
|
||||||
textaligny 12
|
|
||||||
text "^_P^_layer"
|
|
||||||
shortcutKey "P"
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
action { open ingame_player }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-player-hint" ; timeFade "ig-player-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-player-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-options"
|
|
||||||
rect 180 8 52 16
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_CENTER
|
|
||||||
textalignx 26
|
|
||||||
textaligny 12
|
|
||||||
text "^_O^_ptions"
|
|
||||||
shortcutKey "O"
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
action { open ingame_system }
|
|
||||||
//action { exec "screenshotJPEG" ; }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-options-hint" ; timeFade "ig-options-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-options-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-about"
|
|
||||||
rect 244 8 52 16
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_CENTER
|
|
||||||
textalignx 26
|
|
||||||
textaligny 12
|
|
||||||
text "^_A^_bout"
|
|
||||||
shortcutKey "A"
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
action { open ingame_about }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-about-hint" ; timeFade "ig-about-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-about-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
itemDef {
|
||||||
name "ig-matchmode"
|
renderpoint
|
||||||
rect 308 8 68 16
|
name "postit"
|
||||||
style WINDOW_STYLE_FILLED
|
group ingameMain
|
||||||
type ITEM_TYPE_BUTTON
|
style WINDOW_STYLE_SHADER
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
background UI_ASSETS"/post_it"
|
||||||
textscale .225
|
//forecolor .8 .85 .9 1
|
||||||
textalign ITEM_ALIGN_CENTER
|
forecolor 0.85 0.75 0.45 1
|
||||||
textalignx 34
|
//rect -16 32 180 152
|
||||||
textaligny 12
|
rect $evalfloat(UI_MINX - 16) 32 180 152
|
||||||
text "^_M^_atchmode"
|
anglevectors 10 -80
|
||||||
shortcutKey "M"
|
visible 1
|
||||||
border 1
|
decoration
|
||||||
bordersize 1
|
}
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
cvarTest "g_RQ3_matchMode"
|
|
||||||
enableCvar { "1" }
|
|
||||||
action { open ingame_matchmode }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-matchmode-hint" ; timeFade "ig-matchmode-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-matchmode-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
//About
|
||||||
name "ig-vote"
|
|
||||||
rect 400 4 52 16
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_CENTER
|
|
||||||
textalignx 26
|
|
||||||
textaligny 12
|
|
||||||
text "^_V^_ote"
|
|
||||||
shortcutKey "V"
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
cvartest "g_allowVote"
|
|
||||||
disableCvar { "0" }
|
|
||||||
action { open ingame_vote }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-vote-hint" ; timeFade "ig-vote-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-vote-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
itemdef {
|
||||||
name "ig-addbot"
|
renderpoint
|
||||||
rect 460 4 52 16
|
name "btn_about"
|
||||||
style WINDOW_STYLE_FILLED
|
group ingameMain
|
||||||
type ITEM_TYPE_BUTTON
|
text "> ^_S^_erver info"
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
shortcutKey "S"
|
||||||
textscale .225
|
forecolor 0 0 0 1
|
||||||
textalign ITEM_ALIGN_CENTER
|
textaligny 20
|
||||||
textalignx 26
|
textscale UI_MAIN_TEXTSIZE
|
||||||
textaligny 12
|
alignrect "postit" ITEM_ALIGN_LEFT 32 8 120 24
|
||||||
text "Add ^_b^_ot"
|
type ITEM_TYPE_BUTTON
|
||||||
shortcutKey "B"
|
style WINDOW_STYLE_EMPTY
|
||||||
border 1
|
visible 1
|
||||||
bordersize 1
|
action { open ingame_about }
|
||||||
backcolor Ingame_Color1
|
}
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
cvartest "ui_singlePlayerActive"
|
|
||||||
disableCvar { "1" }
|
|
||||||
action { open ingame_addbot }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-addbot-hint" ; timeFade "ig-addbot-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-addbot-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
//Options
|
||||||
name "ig-devmode"
|
|
||||||
rect 520 4 52 16
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_CENTER
|
|
||||||
textalignx 26
|
|
||||||
textaligny 12
|
|
||||||
text "^_D^_evmode"
|
|
||||||
shortcutKey "D"
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
cvartest "sv_cheats"
|
|
||||||
enableCvar { "1" }
|
|
||||||
disableCvar { "0" }
|
|
||||||
action { open ingame_devmode }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-devmode-hint" ; timeFade "ig-devmode-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-devmode-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
itemdef {
|
||||||
name "ig-quit"
|
name "btn_options"
|
||||||
rect 580 4 52 16
|
group ingameMain
|
||||||
style WINDOW_STYLE_FILLED
|
text "> ^_O^_ptions"
|
||||||
type ITEM_TYPE_BUTTON
|
shortcutKey "O"
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
forecolor 0 0 0 1
|
||||||
textscale .225
|
textaligny 20
|
||||||
textalign ITEM_ALIGN_CENTER
|
textscale UI_MAIN_TEXTSIZE
|
||||||
textalignx 26
|
alignrect "btn_about" ITEM_ALIGN_LEFT 0 20 120 24
|
||||||
textaligny 12
|
type ITEM_TYPE_BUTTON
|
||||||
text "^_Q^_uit"
|
style WINDOW_STYLE_EMPTY
|
||||||
shortcutKey "Q"
|
visible 1
|
||||||
border 1
|
action { open ingame_setup }
|
||||||
bordersize 1
|
}
|
||||||
backcolor Ingame_Color1
|
|
||||||
forecolor Ingame_TextColor
|
|
||||||
bordercolor Ingame_BorderColor1
|
|
||||||
visible 1
|
|
||||||
action { open ingame_leave }
|
|
||||||
onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ;
|
|
||||||
show "ig-quit-hint" ; timeFade "ig-quit-hint" forecolor .9 .9 .9 1 0 250 }
|
|
||||||
leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ;
|
|
||||||
timeFade "ig-quit-hint" forecolor .9 .9 .9 0 0 250 }
|
|
||||||
}
|
|
||||||
|
|
||||||
//Hints
|
//Ignore
|
||||||
|
|
||||||
//Hint for player in teamplay mode
|
itemdef {
|
||||||
|
name "btn_ignore"
|
||||||
|
group ingameMain
|
||||||
|
text "> ^_I^_gnore"
|
||||||
|
shortcutKey "I"
|
||||||
|
forecolor 0 0 0 1
|
||||||
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "btn_options" ITEM_ALIGN_LEFT 0 20 120 24
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
visible 1
|
||||||
|
action { open ingame_ignore }
|
||||||
|
}
|
||||||
|
|
||||||
itemdef {
|
//Vote
|
||||||
name "ig-player-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Player options, team, weapon & item"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
cvarTest "g_gameType"
|
|
||||||
showCvar { "4" }
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
//Hint for player in a non-teamplay mode
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-player-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Change player options"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
cvarTest "g_gameType"
|
|
||||||
hideCvar { "4" }
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-options-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Controls, game & system options"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-about-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "View server info"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-devmode-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Developer mode commands"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-addbot-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Play against computer-controlled opponents"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-vote-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Vote yes/no or call a vote"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-matchmode-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "View/change match mode settings"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name "ig-quit-hint"
|
|
||||||
group "hints"
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
rect 400 28 240 16
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .2
|
|
||||||
textalign ITEM_ALIGN_RIGHT
|
|
||||||
textalignx 236
|
|
||||||
textaligny 12
|
|
||||||
text "Exit Reaction Quake 3"
|
|
||||||
forecolor Ingame_HintColor
|
|
||||||
visible 0
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
|
itemdef {
|
||||||
|
name "btn_vote"
|
||||||
|
group ingameMain
|
||||||
|
text "> ^_V^_ote"
|
||||||
|
shortcutKey "V"
|
||||||
|
forecolor 0 0 0 1
|
||||||
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "btn_ignore" ITEM_ALIGN_LEFT 0 20 120 24
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
visible 1
|
||||||
|
cvartest "g_allowVote"
|
||||||
|
showCvar { "1" }
|
||||||
|
action { open ingame_vote }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Restart map
|
||||||
|
|
||||||
|
menuDef {
|
||||||
|
name "confirmRestart"
|
||||||
|
rect 108 152 152 144
|
||||||
|
onOpen { play "sound/ui/whoosh3.wav" }
|
||||||
|
onOOBClick { close _self ; open _prev }
|
||||||
|
onEsc { close _self ; open _prev }
|
||||||
|
disableColor .5 .5 .5 1
|
||||||
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
//style WINDOW_STYLE_FILLED
|
||||||
|
//backcolor 0 0 0 1
|
||||||
|
fullscreen 0
|
||||||
|
popup
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
renderpoint
|
||||||
|
name "postit"
|
||||||
|
group confirm
|
||||||
|
style WINDOW_STYLE_SHADER
|
||||||
|
background UI_ASSETS"/post_it"
|
||||||
|
forecolor .94 .94 .82 1
|
||||||
|
rect -16 16 180 152
|
||||||
|
anglevectors 6 -84
|
||||||
|
visible 1
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
|
itemdef {
|
||||||
|
renderpoint
|
||||||
|
name restartConfirm
|
||||||
|
group confirm
|
||||||
|
autowrapped
|
||||||
|
text "Restart map?"
|
||||||
|
forecolor 0 0 0 1
|
||||||
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "postit" ITEM_ALIGN_LEFT 44 8 120 24
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
decoration
|
||||||
|
visible 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// YES //
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name yes
|
||||||
|
group confirm
|
||||||
|
text "^_Y^_ES"
|
||||||
|
shortcutKey "Y"
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
backcolor 0 0 0 .1
|
||||||
|
textscale .25
|
||||||
|
alignrect restartConfirm ITEM_ALIGN_LEFT 4 56 32 16
|
||||||
|
textalign ITEM_ALIGN_CENTER
|
||||||
|
textalignx 16
|
||||||
|
textaligny 12
|
||||||
|
forecolor 0 0 .15 1
|
||||||
|
visible 1
|
||||||
|
action { play "sound/ui/whoosh3.wav" ; exec "map_restart" ; close _self }
|
||||||
|
}
|
||||||
|
|
||||||
|
// NO //
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name no
|
||||||
|
group confirm
|
||||||
|
text "^_N^_O"
|
||||||
|
shortcutKey "N"
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
backcolor 0 0 0 .1
|
||||||
|
textscale .25
|
||||||
|
alignrect restartConfirm ITEM_ALIGN_LEFT 56 56 32 16
|
||||||
|
textalign ITEM_ALIGN_CENTER
|
||||||
|
textalignx 16
|
||||||
|
textaligny 12
|
||||||
|
forecolor 0 0 .15 1
|
||||||
|
visible 1
|
||||||
|
action { close _self ; open _prev }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Exit to main menu
|
||||||
|
|
||||||
|
menuDef {
|
||||||
|
name "confirmMain"
|
||||||
|
rect 88 176 160 144
|
||||||
|
onOpen { play "sound/ui/whoosh3.wav" }
|
||||||
|
onOOBClick { close _self ; open _prev }
|
||||||
|
onEsc { close _self ; open _prev }
|
||||||
|
disableColor .5 .5 .5 1
|
||||||
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
//style WINDOW_STYLE_FILLED
|
||||||
|
//backcolor 0 0 0 1
|
||||||
|
fullscreen 0
|
||||||
|
popup
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
renderpoint
|
||||||
|
name "postit"
|
||||||
|
group confirm
|
||||||
|
style WINDOW_STYLE_SHADER
|
||||||
|
background UI_ASSETS"/post_it"
|
||||||
|
forecolor .94 .94 .82 1
|
||||||
|
rect -4 4 180 152
|
||||||
|
anglevectors -2 -92
|
||||||
|
visible 1
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
|
itemdef {
|
||||||
|
renderpoint
|
||||||
|
name restartConfirm
|
||||||
|
group confirm
|
||||||
|
autowrapped
|
||||||
|
text "Main menu?"
|
||||||
|
forecolor 0 0 0 1
|
||||||
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "postit" ITEM_ALIGN_LEFT 52 8 120 24
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
decoration
|
||||||
|
visible 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// YES //
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name yes
|
||||||
|
group confirm
|
||||||
|
text "^_Y^_ES"
|
||||||
|
shortcutKey "Y"
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
backcolor 0 0 0 .1
|
||||||
|
textscale .25
|
||||||
|
alignrect restartConfirm ITEM_ALIGN_LEFT -4 56 32 16
|
||||||
|
textalign ITEM_ALIGN_CENTER
|
||||||
|
textalignx 16
|
||||||
|
textaligny 12
|
||||||
|
forecolor 0 0 .15 1
|
||||||
|
visible 1
|
||||||
|
action { play "sound/ui/whoosh3.wav" ; close _self ; uiScript leave }
|
||||||
|
}
|
||||||
|
|
||||||
|
// NO //
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name no
|
||||||
|
group confirm
|
||||||
|
text "^_N^_O"
|
||||||
|
shortcutKey "N"
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
backcolor 0 0 0 .1
|
||||||
|
textscale .25
|
||||||
|
alignrect restartConfirm ITEM_ALIGN_LEFT 48 56 32 16
|
||||||
|
textalign ITEM_ALIGN_CENTER
|
||||||
|
textalignx 16
|
||||||
|
textaligny 12
|
||||||
|
forecolor 0 0 .15 1
|
||||||
|
visible 1
|
||||||
|
action { close _self ; open _prev }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Quit game
|
||||||
|
|
||||||
|
menuDef {
|
||||||
|
name "confirmQuit"
|
||||||
|
rect 84 192 160 144
|
||||||
|
onOpen { play "sound/ui/whoosh3.wav" }
|
||||||
|
onOOBClick { close _self ; open _prev }
|
||||||
|
onEsc { close _self ; open _prev }
|
||||||
|
disableColor .5 .5 .5 1
|
||||||
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
//style WINDOW_STYLE_FILLED
|
||||||
|
//backcolor 0 0 0 1
|
||||||
|
fullscreen 0
|
||||||
|
popup
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
renderpoint
|
||||||
|
name "postit"
|
||||||
|
group confirm
|
||||||
|
style WINDOW_STYLE_SHADER
|
||||||
|
background UI_ASSETS"/post_it"
|
||||||
|
forecolor .94 .94 .82 1
|
||||||
|
rect 0 0 180 152
|
||||||
|
anglevectors -9 -99
|
||||||
|
visible 1
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
|
itemdef {
|
||||||
|
renderpoint
|
||||||
|
name restartConfirm
|
||||||
|
group confirm
|
||||||
|
autowrapped
|
||||||
|
text "Exit Reaction?"
|
||||||
|
forecolor 0 0 0 1
|
||||||
|
textaligny 20
|
||||||
|
textscale UI_MAIN_TEXTSIZE
|
||||||
|
alignrect "postit" ITEM_ALIGN_LEFT 44 8 120 24
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
decoration
|
||||||
|
visible 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// YES //
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name yes
|
||||||
|
group confirm
|
||||||
|
text "^_Y^_ES"
|
||||||
|
shortcutKey "Y"
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
backcolor 0 0 0 .1
|
||||||
|
textscale .25
|
||||||
|
alignrect restartConfirm ITEM_ALIGN_LEFT 4 56 32 16
|
||||||
|
textalign ITEM_ALIGN_CENTER
|
||||||
|
textalignx 16
|
||||||
|
textaligny 12
|
||||||
|
forecolor 0 0 .15 1
|
||||||
|
visible 1
|
||||||
|
action { play "sound/ui/whoosh3.wav" ; close _self ; uiScript quit }
|
||||||
|
}
|
||||||
|
|
||||||
|
// NO //
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name no
|
||||||
|
group confirm
|
||||||
|
text "^_N^_O"
|
||||||
|
shortcutKey "N"
|
||||||
|
type ITEM_TYPE_BUTTON
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
backcolor 0 0 0 .1
|
||||||
|
textscale .25
|
||||||
|
alignrect restartConfirm ITEM_ALIGN_LEFT 56 56 32 16
|
||||||
|
textalign ITEM_ALIGN_CENTER
|
||||||
|
textalignx 16
|
||||||
|
textaligny 12
|
||||||
|
forecolor 0 0 .15 1
|
||||||
|
visible 1
|
||||||
|
action { close _self ; open _prev }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue