From 8040d85d5632329caa2948e276eecd20a8150824 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 12 Jan 2004 04:55:11 +0000 Subject: * Added doubleclick handles to the list boxes * Added crosshair names to the huds * Corrected some infopanes prices --- ui/tremulous_alien_builder_hud.menu | 11 +++++++++++ ui/tremulous_alien_general_hud.menu | 11 +++++++++++ ui/tremulous_alienbuild.menu | 6 ++++++ ui/tremulous_alienclass.menu | 6 ++++++ ui/tremulous_alienupgrade.menu | 6 ++++++ ui/tremulous_default_hud.menu | 11 +++++++++++ ui/tremulous_human_hud.menu | 13 ++++++++++++- ui/tremulous_humanarmoury.menu | 10 ++++++++++ ui/tremulous_humanbuild.menu | 6 ++++++ ui/tremulous_humanitem.menu | 6 ++++++ ui/tremulous_teamselect.menu | 6 ++++++ 11 files changed, 91 insertions(+), 1 deletion(-) diff --git a/ui/tremulous_alien_builder_hud.menu b/ui/tremulous_alien_builder_hud.menu index ff6ca344..62ae1d0c 100644 --- a/ui/tremulous_alien_builder_hud.menu +++ b/ui/tremulous_alien_builder_hud.menu @@ -306,5 +306,16 @@ 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 + } } } diff --git a/ui/tremulous_alien_general_hud.menu b/ui/tremulous_alien_general_hud.menu index 5ff41761..c7829333 100644 --- a/ui/tremulous_alien_general_hud.menu +++ b/ui/tremulous_alien_general_hud.menu @@ -306,5 +306,16 @@ 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 + } } } diff --git a/ui/tremulous_alienbuild.menu b/ui/tremulous_alienbuild.menu index ca468514..dad85367 100644 --- a/ui/tremulous_alienbuild.menu +++ b/ui/tremulous_alienbuild.menu @@ -44,6 +44,12 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript BuildAlienBuildable; + close tremulous_alienbuild + } } itemDef diff --git a/ui/tremulous_alienclass.menu b/ui/tremulous_alienclass.menu index e575bb59..4eb10d8e 100644 --- a/ui/tremulous_alienclass.menu +++ b/ui/tremulous_alienclass.menu @@ -44,6 +44,12 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript SpawnAsAlienClass; + close tremulous_alienclass + } } itemDef diff --git a/ui/tremulous_alienupgrade.menu b/ui/tremulous_alienupgrade.menu index 9d8efd70..13afdece 100644 --- a/ui/tremulous_alienupgrade.menu +++ b/ui/tremulous_alienupgrade.menu @@ -44,6 +44,12 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript UpgradeToNewClass; + close tremulous_alienupgrade + } } itemDef diff --git a/ui/tremulous_default_hud.menu b/ui/tremulous_default_hud.menu index eeaf8009..0e08606d 100644 --- a/ui/tremulous_default_hud.menu +++ b/ui/tremulous_default_hud.menu @@ -84,5 +84,16 @@ background "white" ownerdraw CG_LAGOMETER } + + //PLAYER NAME + itemDef + { + name "playername" + rect 200 275 240 25 + visible 1 + decoration + textScale .5 + ownerdraw CG_PLAYER_CROSSHAIRNAMES + } } } diff --git a/ui/tremulous_human_hud.menu b/ui/tremulous_human_hud.menu index bc19d53a..f99f4cae 100644 --- a/ui/tremulous_human_hud.menu +++ b/ui/tremulous_human_hud.menu @@ -310,7 +310,7 @@ itemDef { name "selecttext" - rect 200 25 240 300 + rect 200 300 240 25 visible 1 decoration textScale .5 @@ -384,5 +384,16 @@ style WINDOW_STYLE_SHADER background "ui/assets/neutral/selected.tga" } + + //PLAYER NAME + itemDef + { + name "playername" + rect 200 275 240 25 + visible 1 + decoration + textScale .5 + ownerdraw CG_PLAYER_CROSSHAIRNAMES + } } } diff --git a/ui/tremulous_humanarmoury.menu b/ui/tremulous_humanarmoury.menu index 29123c85..901417c2 100644 --- a/ui/tremulous_humanarmoury.menu +++ b/ui/tremulous_humanarmoury.menu @@ -48,6 +48,11 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript BuyFromArmoury + } } itemDef @@ -67,6 +72,11 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript SellToArmoury + } } itemDef diff --git a/ui/tremulous_humanbuild.menu b/ui/tremulous_humanbuild.menu index 7759f573..8da14c87 100644 --- a/ui/tremulous_humanbuild.menu +++ b/ui/tremulous_humanbuild.menu @@ -44,6 +44,12 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript BuildHumanBuildable; + close tremulous_humanbuild + } } itemDef diff --git a/ui/tremulous_humanitem.menu b/ui/tremulous_humanitem.menu index adda7e0b..b886b2f1 100644 --- a/ui/tremulous_humanitem.menu +++ b/ui/tremulous_humanitem.menu @@ -44,6 +44,12 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript SpawnWithHumanItem; + close tremulous_humanitem + } } itemDef diff --git a/ui/tremulous_teamselect.menu b/ui/tremulous_teamselect.menu index e750ead0..dc88fd25 100644 --- a/ui/tremulous_teamselect.menu +++ b/ui/tremulous_teamselect.menu @@ -44,6 +44,12 @@ backcolor 0.2 0.2 0.2 1 outlinecolor 0.1 0.1 0.1 0.5 visible 1 + doubleclick + { + play "sound/misc/menu1.wav"; + uiScript JoinTeam; + close tremulous_teamselect + } } itemDef -- cgit