summaryrefslogtreecommitdiff
path: root/ui/tremulous_alien_builder_hud.menu
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-10-30 18:18:47 +0000
committerTim Angus <tim@ngus.net>2007-10-30 18:18:47 +0000
commit1e0b515a6031a2cd2a77e9c34f2e4292fc9f9750 (patch)
tree51193c4f5cac62d5c5626c360c80218bc7fab71c /ui/tremulous_alien_builder_hud.menu
parente552cbda632662d32ffccc662c6d12ec1cc54719 (diff)
* (bug 3384) Remove server side armoury refresh and replace with UI side
refresh * Add trap_Key_SetOverstrikeMode and trap_Key_GetOverstrikeMode to cgame * Change Text_[Width|Height] to return floats * Add Text_Em[Width|Height] * Add CG_AlignText to cut down on code duplication * Add itemDef_t::textvalignment for vertical text alignment * Add UI_DrawTextBlock to replace a lot of duplicate code * Rewrite text wrapping code from scratch so that it actually works * Add UI_OwnerDrawText * Add expression evaluator to .menu parser * Split off Border_Paint from Window_Paint * Scale slider items to fit their rect * Rework edit field widgets to behave somewhat more correctly * Fix a few listbox widget layout issues * Don't display scrollbars in "notselectable" listbox widgets * Make scoreboard team labels ownerdrawn * Menu script rework + Use the expression evaluator to replace lots and lots of absolute coords with relative ones, hopefully easing future maintenance + Remove lots and lots of textalign[xy] that were present to work around broken text alignment routines + Replace a bunch of numeric constants with ones from menudef.h + Compose the huds from tremulous_common_hud.h + Generally neaten things up + Lots of whitespace fixes
Diffstat (limited to 'ui/tremulous_alien_builder_hud.menu')
-rw-r--r--ui/tremulous_alien_builder_hud.menu349
1 files changed, 9 insertions, 340 deletions
diff --git a/ui/tremulous_alien_builder_hud.menu b/ui/tremulous_alien_builder_hud.menu
index bf75327c..5274d707 100644
--- a/ui/tremulous_alien_builder_hud.menu
+++ b/ui/tremulous_alien_builder_hud.menu
@@ -1,285 +1,26 @@
#include "ui/menudef.h"
-// team menu
-//
-// defines from ui_shared.h
-
{
+
+#define W 640
+#define H 480
+
menuDef
{
name "alien_builder_hud"
fullScreen MENU_FALSE
visible MENU_TRUE
- rect 0 0 640 480
-
- //CONSOLE
- itemDef
- {
- name "console"
- rect 8 8 560 180
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1 1 1 1
- align ITEM_ALIGN_LEFT
- textalignx 0
- textaligny 18
- textscale 0.4
- textstyle ITEM_TEXTSTYLE_NORMAL
- ownerdraw CG_CONSOLE
- }
-
- //TUTORIAL
- itemDef
- {
- name "tutorial"
- rect 8 250 640 180
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1 1 1 0.35
- align ITEM_ALIGN_LEFT
- textalignx 0
- textaligny 18
- textscale 0.3
- textstyle ITEM_TEXTSTYLE_NORMAL
- ownerdraw CG_TUTORIAL
- }
-
- //LAGOMETER
- itemDef
- {
- name "lagometer"
- rect 596 68 32 20
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1 0 0 1
- textscale 0.3
- textalignx 1
- textaligny 0.5
- ownerdraw CG_LAGOMETER
- }
-
- //DEMO STATE
- itemDef
- {
- name "demoRecording"
- rect 596 120 32 32
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1 0 0 1
- textscale 0.3
- textalignx 1
- textaligny 0.5
- ownerdraw CG_DEMO_RECORDING
- background "ui/assets/neutral/circle.tga"
- }
- itemDef
- {
- name "demoPlayback"
- rect 596 120 32 32
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1 1 1 1
- textscale 0.3
- textalignx 1
- textaligny 0.5
- ownerdraw CG_DEMO_PLAYBACK
- background "ui/assets/forwardarrow.tga"
- }
-
- //SELECT
- itemDef
- {
- name "select"
- rect 240 435 160 32
- visible 0
- decoration
- ownerdraw CG_PLAYER_SELECT
- }
-
- //////////////////
- //STATIC OBJECTS//
- //////////////////
+ rect 0 0 W H
- //LEFT RING CIRCLE
- itemDef
- {
- name "left-ring-circle"
- rect 47.5 410 25 25
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.25
- style WINDOW_STYLE_SHADER
- background "ui/assets/neutral/circle.tga"
- }
-
- //LEFT ARM
- itemDef
- {
- name "left-arm"
- rect 77 404.75 104 52.5
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.25
- style WINDOW_STYLE_SHADER
- background "ui/assets/alien/left-arm.tga"
- }
-
- //LEFT ARM CIRCLE
- itemDef
- {
- name "left-arm-circle"
- rect 150 417.5 25 25
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.25
- style WINDOW_STYLE_SHADER
- background "ui/assets/neutral/circle.tga"
- }
-
- //RIGHT RING CIRCLE
- itemDef
- {
- name "right-ring-circle"
- rect 567 410 25 25
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.25
- style WINDOW_STYLE_SHADER
- background "ui/assets/neutral/circle.tga"
- }
-
- //RIGHT ARM
- itemDef
- {
- name "right-arm"
- rect 459 404.75 104 52.5
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.25
- style WINDOW_STYLE_SHADER
- background "ui/assets/alien/right-arm.tga"
- }
-
- ///////////////////
- //DYNAMIC OBJECTS//
- ///////////////////
-
- //BOLT
- itemDef
- {
- name "bolt"
- rect 52.5 412.5 15 20
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.5
- background "ui/assets/alien/bolt.tga"
- ownerdraw CG_PLAYER_BOOST_BOLT
- }
-
- //CROSS
- itemDef
- {
- name "cross"
- rect 155 422.5 15 15
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.5
- style WINDOW_STYLE_SHADER
- background "ui/assets/neutral/cross.tga"
- }
-
- //LEFT RING
- itemDef
- {
- name "left-ring"
- rect 7.25 369.5 90.5 106
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.5
- background "ui/assets/alien/left-ring.tga"
- ownerdraw CG_PLAYER_BOOSTED
- }
-
- //LEFT SPIKES
- itemDef
- {
- name "left-spikes"
- rect 18.5 381 59 83
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 1.0
- background "ui/assets/alien/left-spikes.tga"
- ownerdraw CG_PLAYER_WALLCLIMBING
- }
-
- //RIGHT RING
- itemDef
- {
- name "right-ring"
- rect 542.25 369.5 90.5 106
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.5
- background "ui/assets/alien/right-ring.tga"
- ownerdraw CG_PLAYER_BOOSTED
- }
-
- //RIGHT SPIKES
- itemDef
- {
- name "right-spikes"
- rect 562.5 381 59 83
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 1.0
- background "ui/assets/alien/right-spikes.tga"
- ownerdraw CG_PLAYER_WALLCLIMBING
- }
-
- //HEALTH
- itemDef
- {
- name "health"
- rect 78.5 421.5 60 15
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 .5
- ownerdraw CG_PLAYER_HEALTH
- }
-
- //ALIEN CLASS ICON
- itemDef
- {
- name "alien-icon"
- rect 465 417.5 25 25
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 0.6
- ownerdraw CG_PLAYER_WEAPONICON
- }
-
- //ORGANS
- itemDef
- {
- name "organs"
- rect 570.5 415.95 15 15
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 .5
- ownerdraw CG_PLAYER_CREDITS_VALUE_NOPAD
- }
+#include "ui/tremulous_alien_common_hud.h"
+#include "ui/tremulous_common_hud.h"
//BUILD TIMER
itemDef
{
name "buildtimer"
rect 567 410 25 25
- visible 1
+ visible MENU_TRUE
decoration
forecolor 1.0 0.0 0.0 .5
ownerdraw CG_PLAYER_BUILD_TIMER
@@ -290,82 +31,10 @@
{
name "build-points"
rect 483.5 421.5 60 15
- visible 1
+ visible MENU_TRUE
decoration
forecolor 1.0 0.0 0.0 .5
ownerdraw CG_PLAYER_AMMO_VALUE
}
-
- //FPS
- itemDef
- {
- name "fps"
- rect 572 8 56 22
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 1
- align ITEM_ALIGN_RIGHT
- textalignx 0
- textaligny 18
- textscale 0.3
- textstyle ITEM_TEXTSTYLE_NORMAL
- ownerdraw CG_FPS
- }
-
- //TIMER
- itemDef
- {
- name "timer"
- rect 572 38 56 22
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 1
- align ITEM_ALIGN_RIGHT
- textalignx 0
- textaligny 18
- textscale 0.3
- textstyle ITEM_TEXTSTYLE_NORMAL
- ownerdraw CG_TIMER
- }
-
- //CLOCK
- itemDef
- {
- name "clock"
- rect 572 90 56 22
- style WINDOW_STYLE_EMPTY
- visible 1
- decoration
- forecolor 1.0 0.0 0.0 1
- align ITEM_ALIGN_RIGHT
- textalignx 0
- textaligny 18
- textscale 0.25
- textstyle ITEM_TEXTSTYLE_NORMAL
- ownerdraw CG_CLOCK
- }
-
- //ALIENSENSE
- itemDef
- {
- name "aliensense"
- rect 20 20 600 400
- visible 1
- decoration
- ownerdraw CG_PLAYER_ALIEN_SENSE
- }
-
- //PLAYER NAME
- itemDef
- {
- name "playername"
- rect 200 275 240 25
- visible 1
- decoration
- textScale .5
- ownerdraw CG_PLAYER_CROSSHAIRNAMES
- }
}
}