home *** CD-ROM | disk | FTP | other *** search
- #include "ui/menudef.h"
-
- {
- \\ Save MENU \\
-
- menuDef {
- name "ingame_save"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 212 41 307 272
- disableColor .5 .5 .5 1
- focusColor 1 1 1 1
- style 1
- border 1
-
- OnOpen {
- uiScript LoadSavedGames;
- }
- //Background
- itemDef {
- name window2
- rect 2 2 305 270
- style 1
- backcolor 0 0 0 .5
- visible 1
- decoration
- }
- itemDef {
- name window
- rect 2 2 305 270
- style 1
- backcolor .66 1 0 .35
- forecolor 0 0 0 1
- border 1
- bordercolor .66 1 0 1
- visible 1
- decoration
- }
- itemDef {
- name ok
- group ingame
- text "Save Game:"
- style WINDOW_STYLE_EMPTY
- rect 25 20 165 20
- textalign 0
- textstyle 6
- textalignx 5
- textaligny 15
- textscale .4
- forecolor .66 1 0 1
- visible 1
- decoration
- }
- itemDef {
- name savedgames
- rect 25 40 260 180
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementtype LISTBOX_TEXT
- elementwidth 150
- elementheight 18
- feeder FEEDER_SAVEABLE_GAMES
- backcolor .66 1 0 .1
- border 1
- bordercolor .66 1 0 1
- forecolor 1 1 1 1
- outlinecolor .66 1 0 1
- visible 1
- textscale .25
- textstyle 6
- mouseenter { setitemcolor savedgames bordercolor 1 1 1 1 ; }
- mouseexit { setitemcolor savedgames bordercolor .66 1 0 1 ; }
- doubleClick { uiScript SaveGame; uiScript closeingame; }
-
- }
- //Buttons//
- itemDef {
- name okbar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 70 235 65 20
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 61 232 24 24
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 124 232 24 24
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name ok
- group ingame
- text "Save"
- type 1
- style WINDOW_STYLE_EMPTY
- rect 70 235 65 20
- textalign 1
- textstyle 6
- textalignx 33
- textaligny 14
- textscale .3
- forecolor .66 1 0 1
- visible 1
- action { uiScript SaveGame; uiScript closeingame; }
- mouseEnter { transition okbar 70 245 65 0 70 235 65 20 20 5 ; }
- mouseExit { transition okbar 70 235 65 20 70 245 65 0 20 5 ; }
- }
- itemDef {
- name cancelbar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 160 235 65 20
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 151 232 24 24
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 214 232 24 24
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name cancel
- group ingame
- text "Cancel"
- type 1
- style WINDOW_STYLE_EMPTY
- rect 160 235 65 20
- textalign 1
- textstyle 6
- textalignx 33
- textaligny 14
- textscale .3
- forecolor .66 1 0 1
- visible 1
- action { close ingame_save; open ingame_savec; }
- mouseEnter { transition cancelbar 160 245 65 0 160 235 65 20 20 5 ; }
- mouseExit { transition cancelbar 160 235 65 20 160 245 65 0 20 5 ; }
- }
- //Corners
- itemDef {
- name corners
- style 3
- rect 0 0 40 40
- background "ui/sidrial/Popup/ULCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name corners
- style 3
- rect 270 0 40 40
- background "ui/sidrial/Popup/URCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name corners
- style 3
- rect 0 235 40 40
- background "ui/sidrial/Popup/BLCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name corners
- style 3
- rect 270 235 40 40
- background "ui/sidrial/Popup/BRCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- }
- }
-