mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-09 01:41:12 +00:00
UI stuff
This commit is contained in:
parent
0c07952397
commit
5acc0463fb
3 changed files with 264 additions and 910 deletions
|
@ -269,7 +269,7 @@ typedef enum {
|
||||||
|
|
||||||
// font rendering values used by ui and cgame
|
// font rendering values used by ui and cgame
|
||||||
|
|
||||||
#define PROP_GAP_WIDTH 3
|
#define PROP_GAP_WIDTH -16
|
||||||
#define PROP_SPACE_WIDTH 8
|
#define PROP_SPACE_WIDTH 8
|
||||||
#define PROP_HEIGHT 63
|
#define PROP_HEIGHT 63
|
||||||
#define PROP_SMALL_SIZE_SCALE 0.75
|
#define PROP_SMALL_SIZE_SCALE 0.75
|
||||||
|
|
|
@ -1,4 +1,25 @@
|
||||||
#include "ui/menudef.h"
|
#include "ui/menudef.h"
|
||||||
|
#define LINE_ALPHA 0.2
|
||||||
|
#define FADEIN_TIME 125
|
||||||
|
#define ANGLES -4 -94
|
||||||
|
|
||||||
|
#define RADIOPRESET(PRESET_ID, PRESET_KEY, PRESET_TEXT, BELOW)\
|
||||||
|
itemDef { \
|
||||||
|
name "preset"#PRESET_ID \
|
||||||
|
shortcutKey PRESET_KEY \
|
||||||
|
alignrect BELOW ITEM_ALIGN_LEFT 0 18 192 16 \
|
||||||
|
style WINDOW_STYLE_EMPTY \
|
||||||
|
type ITEM_TYPE_BUTTON \
|
||||||
|
text PRESET_TEXT \
|
||||||
|
ownerdraw UI_RQ3_RADIOPRESET##PRESET_ID \
|
||||||
|
textalign ITEM_ALIGN_LEFT \
|
||||||
|
textalignx 8 \
|
||||||
|
textaligny 12 \
|
||||||
|
textscale .225 \
|
||||||
|
forecolor 0 0 .1 1 \
|
||||||
|
visible 1 \
|
||||||
|
action { play "sound/ui/whoosh3.wav" ; uiScript closeingame ; uiScript "runPreset" PRESET_ID } \
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -6,247 +27,85 @@
|
||||||
name "ingame_presets"
|
name "ingame_presets"
|
||||||
visible 0
|
visible 0
|
||||||
fullscreen 0
|
fullscreen 0
|
||||||
//outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
rect 40 36 288 264
|
||||||
onOOBClick { close _self }
|
anglevectors ANGLES
|
||||||
rect 128 64 256 284
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
||||||
disableColor .5 .5 .5 1
|
popup
|
||||||
focusColor 1 .75 0 1 // Menu focus color for text and items
|
style WINDOW_STYLE_EMPTY
|
||||||
style 1
|
//style WINDOW_STYLE_FILLED
|
||||||
shadowStyle 1
|
//backcolor 0 0 0 1
|
||||||
onOpen { play "sound/misc/menu1.wav" }
|
onOpen {
|
||||||
|
play "sound/ui/whoosh3.wav" ;
|
||||||
//Window
|
setitemcolor window forecolor 5 5 5 0 ;
|
||||||
|
timefade window forecolor 5 5 5 1 0 FADEIN_TIME
|
||||||
itemdef {
|
|
||||||
rect 0 0 256 284
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
backcolor Ig_Window_Color
|
|
||||||
visible 1
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
bordercolor Ig_Window_BorderColor
|
|
||||||
decoration
|
|
||||||
}
|
}
|
||||||
|
onESC { play "sound/ui/whoosh3.wav" ; close _self }
|
||||||
|
onOOBClick { play "sound/ui/whoosh3.wav" ; close _self }
|
||||||
|
|
||||||
itemdef {
|
|
||||||
rect 137 1 120 24
|
itemDef {
|
||||||
|
name "paper"
|
||||||
|
menuAnchor
|
||||||
|
subgroup "fade_fore_alpha"
|
||||||
style WINDOW_STYLE_SHADER
|
style WINDOW_STYLE_SHADER
|
||||||
background "ui/assets/rq3-ingame-title"
|
background UI_ASSETS"/paper_1"
|
||||||
|
forecolor MENUCOLOR_DEMO 1
|
||||||
|
rect -8 -16 320 320
|
||||||
|
anglevectors ANGLES
|
||||||
visible 1
|
visible 1
|
||||||
decoration
|
decoration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Title
|
||||||
|
|
||||||
itemdef {
|
itemdef {
|
||||||
rect 137 1 120 24
|
renderpoint
|
||||||
|
name "title"
|
||||||
|
subgroup "fade_fore_alpha"
|
||||||
|
text "Radio commands:"
|
||||||
|
forecolor .0 .0 .1 1
|
||||||
style WINDOW_STYLE_EMPTY
|
style WINDOW_STYLE_EMPTY
|
||||||
forecolor Ig_Window_TitleColor
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
textalign ITEM_ALIGN_LEFT
|
||||||
textalignx 24
|
textalignx 0
|
||||||
textaligny 16
|
textaligny 12
|
||||||
text "Run Presets"
|
textscale RQ3_MAIN_TEXTSIZE
|
||||||
|
alignrect paper ITEM_ALIGN_LEFT 36 36 240 36
|
||||||
visible 1
|
visible 1
|
||||||
|
autowrapped
|
||||||
decoration
|
decoration
|
||||||
}
|
}
|
||||||
|
|
||||||
//Objects
|
// order by: preset number, shortcut key, description, previous element
|
||||||
|
RADIOPRESET(1, "1", "^_1^_.", "title")
|
||||||
|
RADIOPRESET(2, "2", "^_2^_.", "preset1")
|
||||||
|
RADIOPRESET(3, "3", "^_3^_.", "preset2")
|
||||||
|
RADIOPRESET(4, "4", "^_4^_.", "preset3")
|
||||||
|
RADIOPRESET(5, "5", "^_5^_.", "preset4")
|
||||||
|
RADIOPRESET(6, "6", "^_6^_.", "preset5")
|
||||||
|
RADIOPRESET(7, "7", "^_7^_.", "preset6")
|
||||||
|
RADIOPRESET(8, "8", "^_8^_.", "preset7")
|
||||||
|
RADIOPRESET(9, "9", "^_9^_.", "preset8")
|
||||||
|
RADIOPRESET(10, "0", "^_0^_.", "preset9")
|
||||||
|
|
||||||
//Presets
|
itemDef {
|
||||||
|
name "edit"
|
||||||
itemdef {
|
alignrect "preset10" ITEM_ALIGN_LEFT 144 20 44 14
|
||||||
shortcutKey "1"
|
//text "> ^_E^_dit <"
|
||||||
rect 24 48 160 16
|
text "> Edit <"
|
||||||
|
/*
|
||||||
|
TTI: Might be a good idea to disable this
|
||||||
|
shortcut -- it's annoying if you push it
|
||||||
|
accidentally during gameplay
|
||||||
|
*/
|
||||||
|
//shortcutKey "E"
|
||||||
style WINDOW_STYLE_EMPTY
|
style WINDOW_STYLE_EMPTY
|
||||||
type ITEM_TYPE_BUTTON
|
forecolor .5 0 0 1
|
||||||
ownerdraw UI_RQ3_RADIOPRESET1
|
textalignx 2
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
textaligny 12
|
||||||
text "1."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 1 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "2"
|
|
||||||
rect 24 68 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET2
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
textscale .225
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "2."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
visible 1
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 2 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "3"
|
|
||||||
rect 24 88 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
type ITEM_TYPE_BUTTON
|
||||||
ownerdraw UI_RQ3_RADIOPRESET3
|
action { play "sound/ui/whoosh3.wav" ; open ingame_presets_edit }
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "3."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 3 }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "4"
|
|
||||||
rect 24 108 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET4
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "4."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 4 }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "5"
|
|
||||||
rect 24 128 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET5
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "5."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 5 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "6"
|
|
||||||
rect 24 148 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET6
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "6."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 6 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "7"
|
|
||||||
rect 24 168 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET7
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "7."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 7 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "8"
|
|
||||||
rect 24 188 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET8
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "8."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 8 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "9"
|
|
||||||
rect 24 208 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET9
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "9."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 9 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
shortcutKey "0"
|
|
||||||
rect 24 228 160 16
|
|
||||||
style WINDOW_STYLE_EMPTY
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
ownerdraw UI_RQ3_RADIOPRESET10
|
|
||||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 8
|
|
||||||
textaligny 12
|
|
||||||
text "0."
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 10 }
|
|
||||||
}
|
|
||||||
|
|
||||||
//Edit
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
name edit
|
|
||||||
rect 176 252 64 20
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
type ITEM_TYPE_BUTTON
|
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
||||||
textscale .225
|
|
||||||
textalign ITEM_ALIGN_CENTER
|
|
||||||
textalignx 32
|
|
||||||
textaligny 14
|
|
||||||
text "Edit"
|
|
||||||
shortcutKey "E"
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
backcolor Ig_Sub_Color1
|
|
||||||
forecolor Ig_Sub_TextColor
|
|
||||||
bordercolor Ig_Sub_BorderColor1
|
|
||||||
visible 1
|
|
||||||
action { close ingame_presets ; open ingame_presets_edit }
|
|
||||||
onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 }
|
|
||||||
leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,4 +1,78 @@
|
||||||
#include "ui/menudef.h"
|
#include "ui/menudef.h"
|
||||||
|
#define LINE_ALPHA 0.2
|
||||||
|
#define FADEIN_TIME 125
|
||||||
|
#define ANGLES -3 -93
|
||||||
|
#define OPTION_COLOR 0 0 .1 1
|
||||||
|
|
||||||
|
#define EDITPRESET(SLOT_ID, PRESET_KEY, PRESET_TEXT, BELOW)\
|
||||||
|
itemDef { \
|
||||||
|
name row##SLOT_ID \
|
||||||
|
text PRESET_TEXT \
|
||||||
|
textscale .225 \
|
||||||
|
alignrect BELOW ITEM_ALIGN_LEFT 0 18 20 16 \
|
||||||
|
textalign ITEM_ALIGN_LEFT \
|
||||||
|
textalignx 4 \
|
||||||
|
textaligny 12 \
|
||||||
|
forecolor OPTION_COLOR \
|
||||||
|
visible 1 \
|
||||||
|
shortcutKey PRESET_KEY \
|
||||||
|
action { setfocus slot##SLOT_ID } \
|
||||||
|
decoration \
|
||||||
|
} \
|
||||||
|
itemDef { \
|
||||||
|
name slot##SLOT_ID \
|
||||||
|
alignrect row##SLOT_ID ITEM_ALIGN_LEFT 16 0 168 16 \
|
||||||
|
style WINDOW_STYLE_EMPTY \
|
||||||
|
type ITEM_TYPE_EDITFIELD \
|
||||||
|
text "" \
|
||||||
|
cvar "ui_RQ3_radioPreset"#SLOT_ID"Desc" \
|
||||||
|
forecolor OPTION_COLOR \
|
||||||
|
maxPaintChars 17 \
|
||||||
|
textscale .225 \
|
||||||
|
textalign 0 \
|
||||||
|
textalignx 4 \
|
||||||
|
textaligny 12 \
|
||||||
|
visible 1 \
|
||||||
|
} \
|
||||||
|
itemDef { \
|
||||||
|
name "slot"#SLOT_ID"_dots" \
|
||||||
|
style 0 \
|
||||||
|
text ".............................................." \
|
||||||
|
alignrect slot##SLOT_ID ITEM_ALIGN_LEFT 168 2 184 16 \
|
||||||
|
textscale .225 \
|
||||||
|
textalign ITEM_ALIGN_RIGHT \
|
||||||
|
textalignx 0 \
|
||||||
|
textaligny 16 \
|
||||||
|
forecolor OPTION_COLOR \
|
||||||
|
visible 1 \
|
||||||
|
decoration \
|
||||||
|
} \
|
||||||
|
itemDef { \
|
||||||
|
style 0 \
|
||||||
|
text ".............................................." \
|
||||||
|
alignrect "slot"#SLOT_ID"_dots" ITEM_ALIGN_RIGHT -184 0 184 16 \
|
||||||
|
textscale .225 \
|
||||||
|
textalign ITEM_ALIGN_RIGHT \
|
||||||
|
textalignx 0 \
|
||||||
|
textaligny 16 \
|
||||||
|
forecolor OPTION_COLOR \
|
||||||
|
visible 1 \
|
||||||
|
decoration \
|
||||||
|
} \
|
||||||
|
itemDef { \
|
||||||
|
alignrect slot##SLOT_ID ITEM_ALIGN_LEFT 184 0 168 16 \
|
||||||
|
style WINDOW_STYLE_EMPTY \
|
||||||
|
type ITEM_TYPE_EDITFIELD \
|
||||||
|
text "" \
|
||||||
|
cvar "ui_RQ3_radioPreset"#SLOT_ID"Script" \
|
||||||
|
forecolor OPTION_COLOR \
|
||||||
|
maxPaintChars 17 \
|
||||||
|
textscale .225 \
|
||||||
|
textalign 0 \
|
||||||
|
textalignx 4 \
|
||||||
|
textaligny 12 \
|
||||||
|
visible 1 \
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -6,667 +80,88 @@
|
||||||
name "ingame_presets_edit"
|
name "ingame_presets_edit"
|
||||||
visible 0
|
visible 0
|
||||||
fullscreen 0
|
fullscreen 0
|
||||||
//outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
rect 144 80 436 280
|
||||||
onOOBClick { close _self ; open _prev }
|
anglevectors ANGLES
|
||||||
rect 104 64 420 272
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
||||||
disableColor .5 .5 .5 1
|
popup
|
||||||
focusColor 1 .75 0 1 // Menu focus color for text and items
|
|
||||||
style 1
|
|
||||||
shadowStyle 1
|
|
||||||
onOpen { play "sound/misc/menu1.wav" ; setfocus slot1 }
|
|
||||||
|
|
||||||
//Window
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
rect 0 0 420 272
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
backcolor Ig_Window_Color
|
|
||||||
visible 1
|
|
||||||
border 1
|
|
||||||
bordersize 1
|
|
||||||
bordercolor Ig_Window_BorderColor
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
rect 301 1 120 24
|
|
||||||
style WINDOW_STYLE_SHADER
|
|
||||||
background "ui/assets/rq3-ingame-title"
|
|
||||||
visible 1
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
rect 301 1 120 24
|
|
||||||
style WINDOW_STYLE_EMPTY
|
style WINDOW_STYLE_EMPTY
|
||||||
forecolor Ig_Window_TitleColor
|
onOpen {
|
||||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
play "sound/ui/whoosh3.wav" ;
|
||||||
textscale .225
|
setitemcolor window forecolor 5 5 5 0 ;
|
||||||
textalign ITEM_ALIGN_LEFT
|
timefade window forecolor 5 5 5 1 0 FADEIN_TIME
|
||||||
textalignx 24
|
}
|
||||||
textaligny 16
|
onESC { play "sound/ui/whoosh3.wav" ; close _self ; close ingame_presets }
|
||||||
text "Edit Presets"
|
onOOBClick { play "sound/ui/whoosh3.wav" ; close _self ; open _prev }
|
||||||
|
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name "paper"
|
||||||
|
menuAnchor
|
||||||
|
subgroup "fade_fore_alpha"
|
||||||
|
style WINDOW_STYLE_SHADER
|
||||||
|
background UI_ASSETS"/paper_1"
|
||||||
|
forecolor MENUCOLOR_OPTIONS 1
|
||||||
|
rect -8 -16 480 336
|
||||||
|
anglevectors ANGLES
|
||||||
visible 1
|
visible 1
|
||||||
decoration
|
decoration
|
||||||
}
|
}
|
||||||
|
|
||||||
//Objects
|
//Title
|
||||||
|
|
||||||
|
itemdef {
|
||||||
|
renderpoint
|
||||||
|
name "title"
|
||||||
|
subgroup "fade_fore_alpha"
|
||||||
|
text "Edit radio presets:"
|
||||||
|
forecolor .6 .0 .0 1
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
textalign ITEM_ALIGN_LEFT
|
||||||
|
textalignx 0
|
||||||
|
textaligny 12
|
||||||
|
textscale RQ3_MAIN_TEXTSIZE
|
||||||
|
alignrect paper ITEM_ALIGN_LEFT 36 36 240 36
|
||||||
|
visible 1
|
||||||
|
autowrapped
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
itemDef {
|
itemDef {
|
||||||
text "Caption:"
|
name "caption"
|
||||||
|
text "Caption"
|
||||||
textscale .225
|
textscale .225
|
||||||
rect 48 24 80 20
|
alignrect "title" ITEM_ALIGN_LEFT 0 18 56 16
|
||||||
textalign ITEM_ALIGN_LEFT
|
textalign ITEM_ALIGN_LEFT
|
||||||
textalignx 4
|
textalignx 20
|
||||||
textaligny 14
|
textaligny 12
|
||||||
forecolor 1 1 1 1
|
forecolor .25 .25 .25 1
|
||||||
visible 1
|
visible 1
|
||||||
decoration
|
decoration
|
||||||
}
|
}
|
||||||
|
|
||||||
itemDef {
|
itemDef {
|
||||||
text "Script:"
|
name "script"
|
||||||
|
text "Script"
|
||||||
textscale .225
|
textscale .225
|
||||||
rect 216 24 80 20
|
alignrect "caption" ITEM_ALIGN_LEFT 200 0 48 16
|
||||||
textalign ITEM_ALIGN_LEFT
|
textalign ITEM_ALIGN_LEFT
|
||||||
textalignx 4
|
textalignx 4
|
||||||
textaligny 14
|
textaligny 12
|
||||||
forecolor 1 1 1 1
|
forecolor .25 .25 .25 1
|
||||||
visible 1
|
visible 1
|
||||||
decoration
|
decoration
|
||||||
}
|
}
|
||||||
|
|
||||||
//Presets
|
// order by: preset number, shortcut key, description, previous element
|
||||||
|
EDITPRESET(1, "1", "^_1^_.", "caption")
|
||||||
// 1 //
|
EDITPRESET(2, "2", "^_2^_.", "row1")
|
||||||
|
EDITPRESET(3, "3", "^_3^_.", "row2")
|
||||||
itemDef {
|
EDITPRESET(4, "4", "^_4^_.", "row3")
|
||||||
text "1."
|
EDITPRESET(5, "5", "^_5^_.", "row4")
|
||||||
textscale .225
|
EDITPRESET(6, "6", "^_6^_.", "row5")
|
||||||
rect 24 48 80 20
|
EDITPRESET(7, "7", "^_7^_.", "row6")
|
||||||
textalign ITEM_ALIGN_LEFT
|
EDITPRESET(8, "8", "^_8^_.", "row7")
|
||||||
textalignx 4
|
EDITPRESET(9, "9", "^_9^_.", "row8")
|
||||||
textaligny 14
|
EDITPRESET(10, "0", "^_0^_.", "row9")
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "1"
|
|
||||||
action { setfocus slot1 }
|
|
||||||
decoration
|
|
||||||
}
|
}
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot1
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset1Desc"
|
|
||||||
rect 48 48 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset1Script"
|
|
||||||
rect 216 48 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "2."
|
|
||||||
textscale .225
|
|
||||||
rect 24 68 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "2"
|
|
||||||
action { setfocus slot2 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot2
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset2Desc"
|
|
||||||
rect 48 68 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset2Script"
|
|
||||||
rect 216 68 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 3 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "3."
|
|
||||||
textscale .225
|
|
||||||
rect 24 88 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "3"
|
|
||||||
action { setfocus slot3 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot3
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset3Desc"
|
|
||||||
rect 48 88 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset3Script"
|
|
||||||
rect 216 88 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 4 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "4."
|
|
||||||
textscale .225
|
|
||||||
rect 24 108 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "4"
|
|
||||||
action { setfocus slot4 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot4
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset4Desc"
|
|
||||||
rect 48 108 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset4Script"
|
|
||||||
rect 216 108 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 5 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "5."
|
|
||||||
textscale .225
|
|
||||||
rect 24 128 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "5"
|
|
||||||
action { setfocus slot5 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot5
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset5Desc"
|
|
||||||
rect 48 128 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset5Script"
|
|
||||||
rect 216 128 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 6 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "6."
|
|
||||||
textscale .225
|
|
||||||
rect 24 148 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "6"
|
|
||||||
action { setfocus slot6 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot6
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset6Desc"
|
|
||||||
rect 48 148 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset6Script"
|
|
||||||
rect 216 148 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 7 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "7."
|
|
||||||
textscale .225
|
|
||||||
rect 24 168 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "7"
|
|
||||||
action { setfocus slot7 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot7
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset7Desc"
|
|
||||||
rect 48 168 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset7Script"
|
|
||||||
rect 216 168 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 8 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "8."
|
|
||||||
textscale .225
|
|
||||||
rect 24 188 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "8"
|
|
||||||
action { setfocus slot8 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot8
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset8Desc"
|
|
||||||
rect 48 188 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset8Script"
|
|
||||||
rect 216 188 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 9 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "9."
|
|
||||||
textscale .225
|
|
||||||
rect 24 208 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "9"
|
|
||||||
action { setfocus slot9 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot9
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset9Desc"
|
|
||||||
rect 48 208 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset9Script"
|
|
||||||
rect 216 208 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
// 10 //
|
|
||||||
|
|
||||||
itemDef {
|
|
||||||
text "0."
|
|
||||||
textscale .225
|
|
||||||
rect 24 228 80 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 14
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
visible 1
|
|
||||||
shortcutKey "0"
|
|
||||||
action { setfocus slot10 }
|
|
||||||
decoration
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
name slot10
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset10Desc"
|
|
||||||
rect 48 228 160 16
|
|
||||||
maxPaintChars 16
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
itemdef {
|
|
||||||
type ITEM_TYPE_EDITFIELD
|
|
||||||
style WINDOW_STYLE_FILLED
|
|
||||||
text ""
|
|
||||||
cvar "ui_RQ3_radioPreset10Script"
|
|
||||||
rect 216 228 180 16
|
|
||||||
maxPaintChars 20
|
|
||||||
textalign ITEM_ALIGN_LEFT
|
|
||||||
textalignx 4
|
|
||||||
textaligny 12
|
|
||||||
textscale .225
|
|
||||||
outlinecolor 1 .5 .5 .5
|
|
||||||
forecolor 1 1 1 1
|
|
||||||
border 1
|
|
||||||
bordercolor .25 .25 .25 1
|
|
||||||
backcolor 1 1 1 .05
|
|
||||||
visible 1
|
|
||||||
onfocus { setcolor backcolor 1 1 1 .15 }
|
|
||||||
leavefocus { setcolor backcolor 1 1 1 .05 }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue