diff options
author | Tim Angus <tim@ngus.net> | 2003-06-13 23:45:48 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-06-13 23:45:48 +0000 |
commit | 7630d01bc896bf5fa2403810867e6bc0f19c9d5a (patch) | |
tree | f620f8f6ecced6f1a47175c261ea79f0355e34eb /ui | |
parent | 2cfd28b2a79fec662476dd14afaddcc67d005564 (diff) |
* Updated default and human huds
* Split alien hud into builder and general huds
Diffstat (limited to 'ui')
-rw-r--r-- | ui/hud.txt | 3 | ||||
-rw-r--r-- | ui/tremulous_alien_builder_hud.menu | 300 | ||||
-rw-r--r-- | ui/tremulous_alien_general_hud.menu | 300 | ||||
-rw-r--r-- | ui/tremulous_default_hud.menu | 10 | ||||
-rw-r--r-- | ui/tremulous_human_hud.menu | 174 |
5 files changed, 653 insertions, 134 deletions
@@ -2,7 +2,8 @@ // { loadMenu { "ui/tremulous_human_hud.menu" } - loadMenu { "ui/tremulous_alien_hud.menu" } + loadMenu { "ui/tremulous_alien_builder_hud.menu" } + loadMenu { "ui/tremulous_alien_general_hud.menu" } loadMenu { "ui/tremulous_default_hud.menu" } loadMenu { "ui/teamscore.menu" } diff --git a/ui/tremulous_alien_builder_hud.menu b/ui/tremulous_alien_builder_hud.menu new file mode 100644 index 00000000..0b8eb8ba --- /dev/null +++ b/ui/tremulous_alien_builder_hud.menu @@ -0,0 +1,300 @@ +#include "ui/menudef.h" + +// team menu +// +// defines from ui_shared.h + +{ + assetGlobalDef + { + cursor "ui/assets/3_cursor2" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + shadowX 5 // x amount for shadow offset + shadowY 5 // y amount for shadow offset + shadowColor 0.1 0.1 0.1 0.25 // shadow color + + font "fonts/font" 16 // font + smallFont "fonts/smallfont" 12 // font + bigFont "fonts/bigfont" 20 // font + } + + 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 + } + + //LAGOMETER + itemDef + { + name "lagometer" + rect 576 68 56 28 + visible 1 + decoration + background "lagometer" + ownerdraw CG_LAGOMETER + } + + //SELECT + itemDef + { + name "select" + rect 240 435 160 32 + visible 0 + decoration + ownerdraw CG_PLAYER_SELECT + } + + ////////////////// + //STATIC OBJECTS// + ////////////////// + + //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" + } + + //RIGHT ARM CIRCLE + itemDef + { + name "right-arm-circle" + rect 465 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" + } + + /////////////////// + //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_CLIPS_RING + } + + //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.5 + ownerdraw CG_PLAYER_WEAPONICON + } + + //BUILD TIMER + itemDef + { + name "build-timer" + rect 525 415.95 60 15 + visible 1 + decoration + forecolor 1.0 0.0 0.0 .5 + ownerdraw CG_PLAYER_CLIPS_VALUE + } + + //BUILD POINTS + itemDef + { + name "build-points" + rect 483.5 421.5 60 15 + visible 1 + 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 + } + } +} diff --git a/ui/tremulous_alien_general_hud.menu b/ui/tremulous_alien_general_hud.menu new file mode 100644 index 00000000..1631fc5e --- /dev/null +++ b/ui/tremulous_alien_general_hud.menu @@ -0,0 +1,300 @@ +#include "ui/menudef.h" + +// team menu +// +// defines from ui_shared.h + +{ + assetGlobalDef + { + cursor "ui/assets/3_cursor2" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + shadowX 5 // x amount for shadow offset + shadowY 5 // y amount for shadow offset + shadowColor 0.1 0.1 0.1 0.25 // shadow color + + font "fonts/font" 16 // font + smallFont "fonts/smallfont" 12 // font + bigFont "fonts/bigfont" 20 // font + } + + menuDef + { + name "alien_general_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 + } + + //LAGOMETER + itemDef + { + name "lagometer" + rect 576 68 56 28 + visible 1 + decoration + background "lagometer" + ownerdraw CG_LAGOMETER + } + + //SELECT + itemDef + { + name "select" + rect 240 435 160 32 + visible 0 + decoration + ownerdraw CG_PLAYER_SELECT + } + + ////////////////// + //STATIC OBJECTS// + ////////////////// + + //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" + } + + //RIGHT ARM CIRCLE + itemDef + { + name "right-arm-circle" + rect 465 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" + } + + /////////////////// + //DYNAMIC OBJECTS// + /////////////////// + + //BLOB + itemDef + { + name "blob" + rect 479 419 57 18 + visible 1 + forecolor 1.0 0.0 0.0 0.5 + background "ui/assets/alien/tremublob.tga" + ownerdraw CG_PLAYER_POISON_BARBS + } + + //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.5 + 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 + } + + //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 + } + } +} diff --git a/ui/tremulous_default_hud.menu b/ui/tremulous_default_hud.menu index 395671f2..eeaf8009 100644 --- a/ui/tremulous_default_hud.menu +++ b/ui/tremulous_default_hud.menu @@ -24,11 +24,12 @@ textstyle ITEM_TEXTSTYLE_NORMAL ownerdraw CG_CONSOLE } + //FPS itemDef { name "fps" - rect 576 8 56 22 + rect 572 8 56 22 style WINDOW_STYLE_EMPTY visible 1 decoration @@ -36,7 +37,7 @@ align ITEM_ALIGN_RIGHT textalignx 0 textaligny 18 - textscale 0.4 + textscale 0.3 textstyle ITEM_TEXTSTYLE_NORMAL ownerdraw CG_FPS } @@ -44,7 +45,7 @@ itemDef { name "timer" - rect 576 38 56 22 + rect 572 38 56 22 style WINDOW_STYLE_EMPTY visible 1 decoration @@ -52,10 +53,11 @@ align ITEM_ALIGN_RIGHT textalignx 0 textaligny 18 - textscale 0.4 + textscale 0.3 textstyle ITEM_TEXTSTYLE_NORMAL ownerdraw CG_TIMER } + //SNAPSHOT itemDef { diff --git a/ui/tremulous_human_hud.menu b/ui/tremulous_human_hud.menu index ffb73491..be6f4098 100644 --- a/ui/tremulous_human_hud.menu +++ b/ui/tremulous_human_hud.menu @@ -29,6 +29,34 @@ 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 + } + + //LAGOMETER + itemDef + { + name "lagometer" + rect 576 68 56 28 + visible 1 + decoration + background "lagometer" + ownerdraw CG_LAGOMETER + } + ////////////////// //STATIC OBJECTS// ////////////////// @@ -57,23 +85,11 @@ background "ui/assets/human/left-arm.tga" } - //LEFT CAP - itemDef - { - name "left-cap" - rect 49 387.75 81 27.5 - visible 1 - decoration - forecolor 0.0 0.8 1.0 0.25 - style WINDOW_STYLE_SHADER - background "ui/assets/human/left-cap.tga" - } - //CREDITS LABEL itemDef { name "credits-label" - rect 70 392.75 7 7.5 + rect 508 403 7 7.5 visible 1 decoration forecolor 0.0 0.8 1.0 0.5 @@ -109,7 +125,7 @@ itemDef { name "right-cap" - rect 510 387.75 81 27.5 + rect 500 400 80 15 visible 1 decoration forecolor 0.0 0.8 1.0 0.25 @@ -117,30 +133,6 @@ background "ui/assets/human/right-cap.tga" } - //TIMER COLON - itemDef - { - name "colon" - rect 538.5 406 1.5 4 - visible 1 - decoration - forecolor 0.0 0.8 1.0 0.5 - style WINDOW_STYLE_SHADER - background "ui/assets/neutral/colon.tga" - } - - //FPS LABEL - itemDef - { - name "fps-label" - rect 555 394 16 5 - visible 1 - decoration - forecolor 0.0 0.8 1.0 0.5 - style WINDOW_STYLE_SHADER - background "ui/assets/neutral/fps.tga" - } - /////////////////// //DYNAMIC OBJECTS// /////////////////// @@ -234,24 +226,13 @@ itemDef { name "credits" - rect 77 392 40 10 + rect 515 402 45 11.25 visible 1 decoration forecolor 0.0 0.8 1.0 0.5 ownerdraw CG_PLAYER_CREDITS_VALUE } - //BANK - itemDef - { - name "bank" - rect 80 404 32 8 - visible 1 - decoration - forecolor 0.0 0.8 1.0 0.5 - ownerdraw CG_PLAYER_BANK_VALUE - } - //HEALTH itemDef { @@ -274,17 +255,6 @@ ownerdraw CG_PLAYER_SELECT } - //WEAPON SELECT TEXT - itemDef - { - name "selecttext" - rect 200 25 240 300 - visible 1 - decoration - textScale .5 - ownerdraw CG_PLAYER_SELECTTEXT - } - //AMMO itemDef { @@ -311,87 +281,33 @@ itemDef { name "fps" - rect 525 392 24 8 - style WINDOW_STYLE_EMPTY - visible 1 - decoration - forecolor 0.0 0.8 1.0 .5 - ownerdraw CG_FPS_FIXED - } - - //TIMER SECONDS - itemDef - { - name "timer" - rect 540 404 16 8 + rect 572 8 56 22 style WINDOW_STYLE_EMPTY visible 1 decoration - forecolor 0.0 0.8 1.0 .5 - ownerdraw CG_TIMER_SECS + forecolor 0.0 0.8 1.0 1 + align ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 18 + textscale 0.3 + textstyle ITEM_TEXTSTYLE_NORMAL + ownerdraw CG_FPS } - - //TIMER MINUTES + //TIMER itemDef { name "timer" - rect 510 404 24 8 - style WINDOW_STYLE_EMPTY - visible 1 - decoration - forecolor 0.0 0.8 1.0 .5 - ownerdraw CG_TIMER_MINS - } - - //CONSOLE - itemDef - { - name "console" - rect 8 8 560 180 + rect 572 38 56 22 style WINDOW_STYLE_EMPTY visible 1 decoration - forecolor 1 1 1 1 - align ITEM_ALIGN_LEFT + forecolor 0.0 0.8 1.0 1 + align ITEM_ALIGN_RIGHT textalignx 0 textaligny 18 - textscale 0.4 + textscale 0.3 textstyle ITEM_TEXTSTYLE_NORMAL - ownerdraw CG_CONSOLE + ownerdraw CG_TIMER } - - //LAGOMETER - itemDef - { - name "lagometer" - rect 502 358 132 28 - visible 1 - decoration - background "lagometer" - ownerdraw CG_LAGOMETER - } - - //USABLE - itemDef - { - name "usable" - rect 304 420 32 32 - visible 1 - decoration - forecolor 0.0 0.8 1.0 .25 - background "ui/assets/neutral/use.tga" - ownerdraw CG_PLAYER_USABLE_BUILDABLE - } - - //SCANNER - itemDef - { - name "scanner" - rect 60 300 520 120 - visible 1 - decoration - background "textures/common/invisible" //FIXME: change to a bunch on concentric circles - ownerdraw CG_PLAYER_HUMAN_SCANNER - } } } |