diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/menudef.h | 3 | ||||
-rw-r--r-- | ui/tremulous.txt | 1 | ||||
-rw-r--r-- | ui/tremulous_aliendialogs.menu | 358 | ||||
-rw-r--r-- | ui/tremulous_humandialogs.menu | 541 |
4 files changed, 58 insertions, 845 deletions
diff --git a/ui/menudef.h b/ui/menudef.h index 95c84c1f..4f808a1c 100644 --- a/ui/menudef.h +++ b/ui/menudef.h @@ -264,6 +264,9 @@ #define UI_STARTMAPCINEMATIC 255 #define UI_MAPS_SELECTION 256 +//TA: +#define UI_DIALOG 257 + #define VOICECHAT_GETFLAG "getflag" // command someone to get the flag #define VOICECHAT_OFFENSE "offense" // command someone to go on offense #define VOICECHAT_DEFEND "defend" // command someone to go on defense diff --git a/ui/tremulous.txt b/ui/tremulous.txt index e8a5ba59..1bb7b9d8 100644 --- a/ui/tremulous.txt +++ b/ui/tremulous.txt @@ -12,6 +12,7 @@ loadMenu { "ui/tremulous_humanmcubuy.menu" } loadMenu { "ui/tremulous_humanmcusell.menu" } + loadMenu { "ui/tremulous_alienbank.menu" } loadMenu { "ui/tremulous_humanbank.menu" } loadMenu { "ui/tremulous_humandialogs.menu" } diff --git a/ui/tremulous_aliendialogs.menu b/ui/tremulous_aliendialogs.menu index 849e56fd..2c7250bb 100644 --- a/ui/tremulous_aliendialogs.menu +++ b/ui/tremulous_aliendialogs.menu @@ -3,367 +3,63 @@ { menuDef { - name "tremulous_alien_no_room" + name "tremulous_alien_dialog" visible 0 fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 + outOfBoundsClick + rect 180 180 280 120 focusColor 1 .75 0 1 - style 1 - border 1 + style WINDOW_STYLE_FILLED disableColor .5 .5 .5 0 + backcolor 0 .5 0 .25 itemDef { - name alien_no_room + name alien_dialog text "Error" type ITEM_TYPE_TEXT textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 + style WINDOW_STYLE_FILLED + rect 220 10 50 20 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny 18 textscale .4 forecolor 1 1 1 1 + backcolor .5 0 0 .25 visible 1 decoration } itemDef { - name alien_no_room - text "There is no room here" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_room - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_alien_no_room } - } - } - - menuDef - { - name "tremulous_alien_no_creep" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name alien_no_creep - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_creep - text "There is no creep here" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_creep - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_alien_no_creep } - } - } - - menuDef - { - name "tremulous_alien_no_hivemind" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name alien_no_hivemind - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_hivemind - text "There is no hivemind" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_hivemind - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_alien_no_hivemind } - } - } - - menuDef - { - name "tremulous_alien_one_hivemind" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name alien_one_hivemind - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_one_hivemind - text "There can be only one hivemind" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_one_hivemind - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_alien_one_hivemind } - } - } - - menuDef - { - name "tremulous_alien_no_assertion" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name alien_no_assertion - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_assertion - text "The hivemind cannot control additional structures" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_no_assertion - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_alien_no_assertion } - } - } - - menuDef - { - name "tremulous_alien_egg_warning" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name alien_egg_warning - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name alien_egg_warning - text "This egg will not be controlled by a hivemind" - type ITEM_TYPE_TEXT + name alien_dialog + ownerdraw UI_DIALOG textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 + style WINDOW_STYLE_FILLED + rect 10 50 260 20 + textalignx 5 + textaligny 18 textscale .4 forecolor 1 1 1 1 + backcolor .5 0 0 .25 visible 1 decoration } itemDef { - name alien_egg_warning + name alien_dialog text "OK" type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 + style WINDOW_STYLE_FILLED + rect 242 90 28 20 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny 18 textscale .4 forecolor 1 1 1 1 + backcolor .5 0 0 .25 visible 1 - action { close tremulous_alien_egg_warning } + action { close tremulous_alien_dialog } } } } diff --git a/ui/tremulous_humandialogs.menu b/ui/tremulous_humandialogs.menu index f49d8a91..4fb3ebe5 100644 --- a/ui/tremulous_humandialogs.menu +++ b/ui/tremulous_humandialogs.menu @@ -3,550 +3,63 @@ { menuDef { - name "tremulous_human_no_room" + name "tremulous_human_dialog" visible 0 fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 + outOfBoundsClick + rect 180 180 280 120 focusColor 1 .75 0 1 - style 1 - border 1 + style WINDOW_STYLE_FILLED disableColor .5 .5 .5 0 + backcolor 0 .5 0 .25 itemDef { - name human_no_room + name human_dialog text "Error" type ITEM_TYPE_TEXT textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 + style WINDOW_STYLE_FILLED + rect 220 10 50 20 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny 18 textscale .4 forecolor 1 1 1 1 + backcolor .5 0 0 .25 visible 1 decoration } itemDef { - name human_no_room - text "There is no room here" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_room - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_no_room } - } - } - - menuDef - { - name "tremulous_human_no_power" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_no_power - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_power - text "There is no power remaining" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_power - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_no_power } - } - } - - menuDef - { - name "tremulous_human_one_reactor" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_one_reactor - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_one_reactor - text "There can be only one reactor" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_one_reactor - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_one_reactor } - } - } - - menuDef - { - name "tremulous_human_repeater" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_repeater - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_repeater - text "There is no power here, build a repeater" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_repeater - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_repeater } - } - } - - menuDef - { - name "tremulous_human_replicator_warning" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_replicator_warning - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_replicator_warning - text "This replicator will not be powered" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_replicator_warning - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_replicator_warning } - } - } - - menuDef - { - name "tremulous_human_repeater_warning" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_repeater_warning - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_repeater_warning - text "This repeater will not be powered" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_repeater_warning - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_repeater_warning } - } - } - - menuDef - { - name "tremulous_human_no_slots" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_no_slots - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_slots - text "You have no room to carry this item" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_slots - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_no_slots } - } - } - - menuDef - { - name "tremulous_human_no_funds" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_no_funds - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_funds - text "You don't have enough funds" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_no_funds - text "OK" - type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - action { close tremulous_human_no_funds } - } - } - - menuDef - { - name "tremulous_human_item_held" - visible 0 - fullscreen 0 - outOfBoundsClick // this closes the window if it gets a click out of the rectangle - rect 250 90 300 300 - focusColor 1 .75 0 1 - style 1 - border 1 - disableColor .5 .5 .5 0 - - itemDef - { - name human_item_held - text "Error" - type ITEM_TYPE_TEXT - textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 20 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 - textscale .4 - forecolor 1 1 1 1 - visible 1 - decoration - } - itemDef - { - name human_item_held - text "You already have this item" - type ITEM_TYPE_TEXT + name human_dialog + ownerdraw UI_DIALOG textstyle ITEM_TEXTSTYLE_NORMAL - style 0 - rect 0 40 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 + style WINDOW_STYLE_FILLED + rect 10 50 260 20 + textalignx 5 + textaligny 18 textscale .4 forecolor 1 1 1 1 + backcolor .5 0 0 .25 visible 1 decoration } itemDef { - name human_item_held + name human_dialog text "OK" type ITEM_TYPE_BUTTON - style 2 - rect 0 80 300 20 - textalign ITEM_ALIGN_CENTER - textalignx 64 - textaligny 18 + style WINDOW_STYLE_FILLED + rect 242 90 28 20 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny 18 textscale .4 forecolor 1 1 1 1 + backcolor .5 0 0 .25 visible 1 - action { close tremulous_human_item_held } + action { close tremulous_human_dialog } } } } |