reaction/uifiles/demo.menu

204 lines
4 KiB
Text
Raw Normal View History

2002-07-24 15:30:51 +00:00
#include "ui/menudef.h"
2009-03-18 19:49:03 +00:00
#define ICON_ALPHA 0.5
#define LINE_ALPHA 0.2
#define FADEIN_TIME 125
2002-07-24 15:30:51 +00:00
{
menuDef {
2009-03-18 19:49:03 +00:00
renderpoint
2002-07-24 15:30:51 +00:00
name "demo"
2009-03-18 19:49:03 +00:00
visible MENU_FALSE // Visible on open
//fullScreen MENU_FALSE
focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items
rect 52 112 280 340
anglevectors 12 -78
style WINDOW_STYLE_EMPTY
popup
onOOBClick { close _self ; open main }
onOpen { play "sound/ui/whoosh3.wav" ; uiScript LoadDemos ;
setitemcolor hints forecolor .9 .9 .9 1 ; hide hints ;
hide focus }
onEsc { close _self ; open main }
onOpenSpecial {
//normal items
setItemColor "fade_fore_alpha" forecolor 5 5 5 0 ;
timeFade "fade_fore_alpha" forecolor 5 5 5 1 0 FADEIN_TIME ;
//icon - special alpha
setItemColor "icon" forecolor 5 5 5 0 ;
timeFade "icon" forecolor 5 5 5 ICON_ALPHA 0 FADEIN_TIME ;
//line - special alpha; using backcolor
setItemColor "line" backcolor 5 5 5 0 ;
timeFade "line" backcolor 5 5 5 LINE_ALPHA 0 FADEIN_TIME ;
}
itemDef {
name "paper"
menuAnchor
subgroup "fade_fore_alpha"
style WINDOW_STYLE_SHADER
background UI_ASSETS"/paper_1"
forecolor MENUCOLOR_DEMO 1
rect -16 -20 320 420
anglevectors 12 -78
2002-07-24 15:30:51 +00:00
visible 1
decoration
}
2009-03-18 19:49:03 +00:00
//Title
2002-07-24 15:30:51 +00:00
2009-03-18 19:49:03 +00:00
itemdef {
renderpoint
name "title"
subgroup "fade_fore_alpha"
text "Demo playback:"
forecolor .0 .0 .1 1
style WINDOW_STYLE_EMPTY
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 24
textscale RQ3_MAIN_TEXTSIZE
alignRect paper ITEM_ALIGN_CENTER -12 40 220 20
2002-07-24 15:30:51 +00:00
visible 1
2009-03-18 19:49:03 +00:00
autowrapped
2002-07-24 15:30:51 +00:00
decoration
}
2009-03-18 19:49:03 +00:00
//Hint
2002-07-24 15:30:51 +00:00
2009-03-18 19:49:03 +00:00
itemdef {
text "Select a demo from the list below\n"
"and press the Play button"
autowrapped
subgroup "fade_fore_alpha"
forecolor .25 .25 .25 1
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 12
textscale .2
alignrect "title" ITEM_ALIGN_LEFT 0 28 220 16
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
2002-07-24 15:30:51 +00:00
visible 1
decoration
}
2009-03-18 19:49:03 +00:00
//Line
2002-07-24 15:30:51 +00:00
2009-03-18 19:49:03 +00:00
itemDef {
name "line"
subgroup "fade_fore_alpha"
2002-07-24 15:30:51 +00:00
style WINDOW_STYLE_FILLED
2009-03-18 19:49:03 +00:00
backcolor .25 .25 .25 LINE_ALPHA
alignrect "title" ITEM_ALIGN_LEFT 0 60 220 2
2002-07-24 15:30:51 +00:00
visible 1
decoration
2009-03-18 19:49:03 +00:00
}
2002-07-24 15:30:51 +00:00
2009-03-18 19:49:03 +00:00
//Icon
2002-07-24 15:30:51 +00:00
2009-03-18 19:49:03 +00:00
itemdef {
name icon
background UI_ASSETS"/icons/rq3-menu-demos"
forecolor 1 1 1 ICON_ALPHA
//rect 336 12 32 32
alignrect "line" ITEM_ALIGN_RIGHT 0 -48 32 32
style WINDOW_STYLE_SHADER
visible 1
decoration
}
2002-07-24 15:30:51 +00:00
itemdef {
name "demolist"
2009-03-18 19:49:03 +00:00
subgroup "fade_fore_alpha"
LISTBOX_STYLE(.225, 8)
alignRect title ITEM_ALIGN_LEFT 0 92 220 168
2002-07-24 15:30:51 +00:00
feeder FEEDER_DEMOS
2009-03-18 19:49:03 +00:00
columns 2 4 148 0 160 32 0
2002-07-24 15:30:51 +00:00
visible 1
onFocus { show list_hint ; timeFade list_hint forecolor .9 .9 .9 1 0 250 }
leaveFocus { timeFade list_hint forecolor .9 .9 .9 0 0 250 }
doubleclick { close demo; uiScript RunDemo ; }
}
2009-03-18 19:49:03 +00:00
itemdef {
name "col1_title"
subgroup "fade_fore_alpha"
text "demo name"
forecolor .25 .25 .25 1
2002-07-24 15:30:51 +00:00
style WINDOW_STYLE_EMPTY
2009-03-18 19:49:03 +00:00
textalign ITEM_ALIGN_LEFT
textscale .2
textalignx 4
textaligny 14
alignRect demolist ITEM_ALIGN_LEFT 4 -16 72 16
2002-07-24 15:30:51 +00:00
visible 1
2009-03-18 19:49:03 +00:00
autowrapped
2002-07-24 15:30:51 +00:00
decoration
}
2009-03-18 19:49:03 +00:00
itemdef {
name "col2_title"
subgroup "fade_fore_alpha"
text "version"
forecolor .25 .25 .25 1
style WINDOW_STYLE_EMPTY
textalign ITEM_ALIGN_LEFT
textscale .2
textalignx 4
textaligny 14
alignRect demolist ITEM_ALIGN_LEFT 160 -16 44 16
2002-07-24 15:30:51 +00:00
visible 1
2009-03-18 19:49:03 +00:00
autowrapped
2002-07-24 15:30:51 +00:00
decoration
}
2009-03-18 19:49:03 +00:00
//Play
2002-07-24 15:30:51 +00:00
2009-03-18 19:49:03 +00:00
itemdef {
name "btn_play"
subgroup "fade_fore_alpha"
text "^_P^_lay >"
shortcutKey "P"
forecolor 0 0 0 1
style WINDOW_STYLE_EMPTY
textalign ITEM_ALIGN_RIGHT
textscale .25
textalignx 38
2009-03-18 19:49:03 +00:00
textaligny 14
alignRect demolist ITEM_ALIGN_RIGHT 0 180 44 20
2002-07-24 15:30:51 +00:00
visible 1
2009-03-18 19:49:03 +00:00
autowrapped
action { uiScript RunDemo }
2011-02-23 18:25:19 +00:00
//style WINDOW_STYLE_FILLED
//backcolor 0 0 0 .5
}
//Render
2002-07-24 15:30:51 +00:00
2011-02-23 18:25:19 +00:00
itemdef {
name "btn_render"
subgroup "fade_fore_alpha"
text "> ^_R^_ender as AVI <"
2011-02-23 18:25:19 +00:00
shortcutKey "R"
forecolor .5 0 0 1
style WINDOW_STYLE_EMPTY
textalign ITEM_ALIGN_LEFT
textscale .25
textalignx 0
textaligny 14
alignRect demolist ITEM_ALIGN_LEFT 0 180 102 20
2011-02-23 18:25:19 +00:00
visible 1
autowrapped
action { uiScript RenderDemo }
//style WINDOW_STYLE_FILLED
//backcolor 0 0 0 .5
}
2002-07-24 15:30:51 +00:00
}
}