This commit is contained in:
Tomi Isoaho 2010-08-25 23:05:28 +00:00
parent 0c07952397
commit 5acc0463fb
3 changed files with 264 additions and 910 deletions

View File

@ -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

View File

@ -1,252 +1,111 @@
#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 } \
}
{ {
menuDef { menuDef {
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 onESC { play "sound/ui/whoosh3.wav" ; close _self }
style WINDOW_STYLE_FILLED onOOBClick { play "sound/ui/whoosh3.wav" ; close _self }
backcolor Ig_Window_Color
visible 1
border 1 itemDef {
bordersize 1 name "paper"
bordercolor Ig_Window_BorderColor menuAnchor
decoration subgroup "fade_fore_alpha"
} style WINDOW_STYLE_SHADER
background UI_ASSETS"/paper_1"
itemdef { forecolor MENUCOLOR_DEMO 1
rect 137 1 120 24 rect -8 -16 320 320
style WINDOW_STYLE_SHADER anglevectors ANGLES
background "ui/assets/rq3-ingame-title" visible 1
visible 1 decoration
decoration }
}
//Title
itemdef {
rect 137 1 120 24 itemdef {
style WINDOW_STYLE_EMPTY renderpoint
forecolor Ig_Window_TitleColor name "title"
textstyle ITEM_TEXTSTYLE_NORMAL subgroup "fade_fore_alpha"
textscale .225 text "Radio commands:"
textalign ITEM_ALIGN_LEFT forecolor .0 .0 .1 1
textalignx 24 style WINDOW_STYLE_EMPTY
textaligny 16 textalign ITEM_ALIGN_LEFT
text "Run Presets" textalignx 0
visible 1 textaligny 12
decoration textscale RQ3_MAIN_TEXTSIZE
} alignrect paper ITEM_ALIGN_LEFT 36 36 240 36
visible 1
//Objects autowrapped
decoration
//Presets }
itemdef { // order by: preset number, shortcut key, description, previous element
shortcutKey "1" RADIOPRESET(1, "1", "^_1^_.", "title")
rect 24 48 160 16 RADIOPRESET(2, "2", "^_2^_.", "preset1")
style WINDOW_STYLE_EMPTY RADIOPRESET(3, "3", "^_3^_.", "preset2")
type ITEM_TYPE_BUTTON RADIOPRESET(4, "4", "^_4^_.", "preset3")
ownerdraw UI_RQ3_RADIOPRESET1 RADIOPRESET(5, "5", "^_5^_.", "preset4")
textstyle ITEM_TEXTSTYLE_SHADOWED RADIOPRESET(6, "6", "^_6^_.", "preset5")
textscale .225 RADIOPRESET(7, "7", "^_7^_.", "preset6")
textalign ITEM_ALIGN_LEFT RADIOPRESET(8, "8", "^_8^_.", "preset7")
textalignx 8 RADIOPRESET(9, "9", "^_9^_.", "preset8")
textaligny 12 RADIOPRESET(10, "0", "^_0^_.", "preset9")
text "1."
forecolor 1 1 1 1 itemDef {
visible 1 name "edit"
action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 1 } alignrect "preset10" ITEM_ALIGN_LEFT 144 20 44 14
} //text "> ^_E^_dit <"
text "> Edit <"
itemdef { /*
shortcutKey "2" TTI: Might be a good idea to disable this
rect 24 68 160 16 shortcut -- it's annoying if you push it
style WINDOW_STYLE_EMPTY accidentally during gameplay
type ITEM_TYPE_BUTTON */
ownerdraw UI_RQ3_RADIOPRESET2 //shortcutKey "E"
textstyle ITEM_TEXTSTYLE_SHADOWED style WINDOW_STYLE_EMPTY
textscale .225 forecolor .5 0 0 1
textalign ITEM_ALIGN_LEFT textalignx 2
textalignx 8 textaligny 12
textaligny 12 textscale .225
text "2." visible 1
forecolor 1 1 1 1 type ITEM_TYPE_BUTTON
visible 1 action { play "sound/ui/whoosh3.wav" ; open ingame_presets_edit }
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
ownerdraw UI_RQ3_RADIOPRESET3
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 }
}
}

View File

@ -1,672 +1,167 @@
#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 \
}
{ {
menuDef { menuDef {
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 WINDOW_STYLE_EMPTY
style 1 onOpen {
shadowStyle 1 play "sound/ui/whoosh3.wav" ;
onOpen { play "sound/misc/menu1.wav" ; setfocus slot1 } setitemcolor window forecolor 5 5 5 0 ;
timefade window forecolor 5 5 5 1 0 FADEIN_TIME
}
onESC { play "sound/ui/whoosh3.wav" ; close _self ; close ingame_presets }
onOOBClick { play "sound/ui/whoosh3.wav" ; close _self ; open _prev }
//Window
itemdef { itemDef {
rect 0 0 420 272 name "paper"
style WINDOW_STYLE_FILLED menuAnchor
backcolor Ig_Window_Color subgroup "fade_fore_alpha"
visible 1 style WINDOW_STYLE_SHADER
border 1 background UI_ASSETS"/paper_1"
bordersize 1 forecolor MENUCOLOR_OPTIONS 1
bordercolor Ig_Window_BorderColor rect -8 -16 480 336
decoration anglevectors ANGLES
} visible 1
decoration
}
itemdef { //Title
rect 301 1 120 24
style WINDOW_STYLE_SHADER
background "ui/assets/rq3-ingame-title"
visible 1
decoration
}
itemdef { itemdef {
rect 301 1 120 24 renderpoint
style WINDOW_STYLE_EMPTY name "title"
forecolor Ig_Window_TitleColor subgroup "fade_fore_alpha"
textstyle ITEM_TEXTSTYLE_NORMAL text "Edit radio presets:"
textscale .225 forecolor .6 .0 .0 1
textalign ITEM_ALIGN_LEFT style WINDOW_STYLE_EMPTY
textalignx 24 textalign ITEM_ALIGN_LEFT
textaligny 16 textalignx 0
text "Edit Presets" textaligny 12
visible 1 textscale RQ3_MAIN_TEXTSIZE
decoration alignrect paper ITEM_ALIGN_LEFT 36 36 240 36
} visible 1
autowrapped
decoration
}
//Objects itemDef {
name "caption"
text "Caption"
textscale .225
alignrect "title" ITEM_ALIGN_LEFT 0 18 56 16
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny 12
forecolor .25 .25 .25 1
visible 1
decoration
}
itemDef { itemDef {
text "Caption:" name "script"
textscale .225 text "Script"
rect 48 24 80 20 textscale .225
textalign ITEM_ALIGN_LEFT alignrect "caption" ITEM_ALIGN_LEFT 200 0 48 16
textalignx 4 textalign ITEM_ALIGN_LEFT
textaligny 14 textalignx 4
forecolor 1 1 1 1 textaligny 12
visible 1 forecolor .25 .25 .25 1
decoration visible 1
} decoration
}
itemDef { // order by: preset number, shortcut key, description, previous element
text "Script:" EDITPRESET(1, "1", "^_1^_.", "caption")
textscale .225 EDITPRESET(2, "2", "^_2^_.", "row1")
rect 216 24 80 20 EDITPRESET(3, "3", "^_3^_.", "row2")
textalign ITEM_ALIGN_LEFT EDITPRESET(4, "4", "^_4^_.", "row3")
textalignx 4 EDITPRESET(5, "5", "^_5^_.", "row4")
textaligny 14 EDITPRESET(6, "6", "^_6^_.", "row5")
forecolor 1 1 1 1 EDITPRESET(7, "7", "^_7^_.", "row6")
visible 1 EDITPRESET(8, "8", "^_8^_.", "row7")
decoration EDITPRESET(9, "9", "^_9^_.", "row8")
} EDITPRESET(10, "0", "^_0^_.", "row9")
}
//Presets }
// 1 //
itemDef {
text "1."
textscale .225
rect 24 48 80 20
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 14
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 }
}
}