summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-12-07 02:23:02 +0100
committerenneract <trem.redman@gmail.com>2014-12-07 02:23:02 +0100
commit7b05bdbb2a351ead507677c9245f45118ec41fb3 (patch)
tree5a4f74c18edce25f5d6a247aa2d005431a46101b /assets
parent96b85c7695299ce7bc417ebbc2cfb72d5109034e (diff)
Improve HUD layout.
Diffstat (limited to 'assets')
-rw-r--r--assets/scripts/system_ui.shader13
-rw-r--r--assets/ui/assets/bp-bg.tgabin10989 -> 0 bytes
-rw-r--r--assets/ui/assets/neutral/stagebar.tgabin0 -> 13458 bytes
-rw-r--r--assets/ui/assets/neutral/stagebar_add.jpgbin0 -> 5787 bytes
-rw-r--r--assets/ui/tremulous_common_hud.h27
5 files changed, 21 insertions, 19 deletions
diff --git a/assets/scripts/system_ui.shader b/assets/scripts/system_ui.shader
index 4650ee0..2f9ef9b 100644
--- a/assets/scripts/system_ui.shader
+++ b/assets/scripts/system_ui.shader
@@ -189,3 +189,16 @@ ui/assets/neutral/squad_v
}
}
+ui/assets/neutral/stagebar
+{
+ nomipmaps
+ {
+ map ui/assets/neutral/stagebar.tga
+ blendFunc blend
+ }
+ {
+ map ui/assets/neutral/stagebar_add.jpg
+ blendFunc add
+ }
+}
+
diff --git a/assets/ui/assets/bp-bg.tga b/assets/ui/assets/bp-bg.tga
deleted file mode 100644
index 04b71bf..0000000
--- a/assets/ui/assets/bp-bg.tga
+++ /dev/null
Binary files differ
diff --git a/assets/ui/assets/neutral/stagebar.tga b/assets/ui/assets/neutral/stagebar.tga
new file mode 100644
index 0000000..a21ec7e
--- /dev/null
+++ b/assets/ui/assets/neutral/stagebar.tga
Binary files differ
diff --git a/assets/ui/assets/neutral/stagebar_add.jpg b/assets/ui/assets/neutral/stagebar_add.jpg
new file mode 100644
index 0000000..a8b0a33
--- /dev/null
+++ b/assets/ui/assets/neutral/stagebar_add.jpg
Binary files differ
diff --git a/assets/ui/tremulous_common_hud.h b/assets/ui/tremulous_common_hud.h
index 9892243..cecd114 100644
--- a/assets/ui/tremulous_common_hud.h
+++ b/assets/ui/tremulous_common_hud.h
@@ -207,19 +207,20 @@ itemDef
itemDef
{
- name "stage_add"
+ name "bpbackground"
style WINDOW_STYLE_SHADER
- rect 343 -1 160 35
+ rect 160 -5 320 40
aspectBias ALIGN_CENTER
visible 1
- background "scripts/stage_add"
+ foreColor 1 1 1 0.5
+ background "ui/assets/neutral/stagebar"
decoration
}
itemDef
{
name "stagereport"
- rect 300 2 240 25
+ rect 200 11 240 25
foreColor 1 1 1 1
aspectBias ALIGN_CENTER
textalign ALIGN_CENTER
@@ -233,20 +234,8 @@ itemDef
itemDef
{
- name "bpbackground"
- style WINDOW_STYLE_SHADER
- rect 140 -5 160 40
- aspectBias ALIGN_CENTER
- visible 1
- foreColor 1 1 1 0.5
- background "ui/assets/bp-bg.tga"
- decoration
-}
-
-itemDef
-{
name "bpalien"
- rect 185.5 8.5 20 25
+ rect 194 8.5 20 25
foreColor 1 0 0 1
aspectBias ALIGN_CENTER
textalign ALIGN_RIGHT
@@ -262,8 +251,8 @@ itemDef
itemDef
{
name "bphuman"
- rect 238 8.5 20 25
- foreColor 0 0.8 1 1
+ rect 430 8.5 20 25
+ foreColor 0.5 0.9 1 1
aspectBias ALIGN_CENTER
textalign ALIGN_LEFT
textvalign VALIGN_TOP