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
#define PROP_GAP_WIDTH 3
#define PROP_GAP_WIDTH -16
#define PROP_SPACE_WIDTH 8
#define PROP_HEIGHT 63
#define PROP_SMALL_SIZE_SCALE 0.75

View File

@ -1,252 +1,111 @@
#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 {
name "ingame_presets"
visible 0
fullscreen 0
//outOfBoundsClick // this closes the window if it gets a click out of the rectangle
onOOBClick { close _self }
rect 128 64 256 284
disableColor .5 .5 .5 1
focusColor 1 .75 0 1 // Menu focus color for text and items
style 1
shadowStyle 1
onOpen { play "sound/misc/menu1.wav" }
//Window
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
}
itemdef {
rect 137 1 120 24
style WINDOW_STYLE_SHADER
background "ui/assets/rq3-ingame-title"
visible 1
decoration
}
itemdef {
rect 137 1 120 24
style WINDOW_STYLE_EMPTY
forecolor Ig_Window_TitleColor
textstyle ITEM_TEXTSTYLE_NORMAL
textscale .225
textalign ITEM_ALIGN_LEFT
textalignx 24
textaligny 16
text "Run Presets"
visible 1
decoration
}
//Objects
//Presets
itemdef {
shortcutKey "1"
rect 24 48 160 16
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
ownerdraw UI_RQ3_RADIOPRESET1
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale .225
textalign ITEM_ALIGN_LEFT
textalignx 8
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
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny 12
text "2."
forecolor 1 1 1 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
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 }
}
}
menuDef {
name "ingame_presets"
visible 0
fullscreen 0
rect 40 36 288 264
anglevectors ANGLES
focusColor RQ3_MAIN_FOCUSCOLOR
popup
style WINDOW_STYLE_EMPTY
//style WINDOW_STYLE_FILLED
//backcolor 0 0 0 1
onOpen {
play "sound/ui/whoosh3.wav" ;
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 }
onOOBClick { play "sound/ui/whoosh3.wav" ; close _self }
itemDef {
name "paper"
menuAnchor
subgroup "fade_fore_alpha"
style WINDOW_STYLE_SHADER
background UI_ASSETS"/paper_1"
forecolor MENUCOLOR_DEMO 1
rect -8 -16 320 320
anglevectors ANGLES
visible 1
decoration
}
//Title
itemdef {
renderpoint
name "title"
subgroup "fade_fore_alpha"
text "Radio commands:"
forecolor .0 .0 .1 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
}
// 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")
itemDef {
name "edit"
alignrect "preset10" ITEM_ALIGN_LEFT 144 20 44 14
//text "> ^_E^_dit <"
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
forecolor .5 0 0 1
textalignx 2
textaligny 12
textscale .225
visible 1
type ITEM_TYPE_BUTTON
action { play "sound/ui/whoosh3.wav" ; open ingame_presets_edit }
}
}
}

View File

@ -1,672 +1,167 @@
#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 {
name "ingame_presets_edit"
visible 0
fullscreen 0
//outOfBoundsClick // this closes the window if it gets a click out of the rectangle
onOOBClick { close _self ; open _prev }
rect 104 64 420 272
disableColor .5 .5 .5 1
focusColor 1 .75 0 1 // Menu focus color for text and items
style 1
shadowStyle 1
onOpen { play "sound/misc/menu1.wav" ; setfocus slot1 }
menuDef {
name "ingame_presets_edit"
visible 0
fullscreen 0
rect 144 80 436 280
anglevectors ANGLES
focusColor RQ3_MAIN_FOCUSCOLOR
popup
style WINDOW_STYLE_EMPTY
onOpen {
play "sound/ui/whoosh3.wav" ;
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 {
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 {
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
decoration
}
itemdef {
rect 301 1 120 24
style WINDOW_STYLE_SHADER
background "ui/assets/rq3-ingame-title"
visible 1
decoration
}
//Title
itemdef {
rect 301 1 120 24
style WINDOW_STYLE_EMPTY
forecolor Ig_Window_TitleColor
textstyle ITEM_TEXTSTYLE_NORMAL
textscale .225
textalign ITEM_ALIGN_LEFT
textalignx 24
textaligny 16
text "Edit Presets"
visible 1
decoration
}
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
}
//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 {
text "Caption:"
textscale .225
rect 48 24 80 20
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 14
forecolor 1 1 1 1
visible 1
decoration
}
itemDef {
name "script"
text "Script"
textscale .225
alignrect "caption" ITEM_ALIGN_LEFT 200 0 48 16
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 12
forecolor .25 .25 .25 1
visible 1
decoration
}
itemDef {
text "Script:"
textscale .225
rect 216 24 80 20
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 14
forecolor 1 1 1 1
visible 1
decoration
}
//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 }
}
}
// order by: preset number, shortcut key, description, previous element
EDITPRESET(1, "1", "^_1^_.", "caption")
EDITPRESET(2, "2", "^_2^_.", "row1")
EDITPRESET(3, "3", "^_3^_.", "row2")
EDITPRESET(4, "4", "^_4^_.", "row3")
EDITPRESET(5, "5", "^_5^_.", "row4")
EDITPRESET(6, "6", "^_6^_.", "row5")
EDITPRESET(7, "7", "^_7^_.", "row6")
EDITPRESET(8, "8", "^_8^_.", "row7")
EDITPRESET(9, "9", "^_9^_.", "row8")
EDITPRESET(10, "0", "^_0^_.", "row9")
}
}