Cactusbone
 
Index
 
vchat
 
HUD
 
HUDstuff
 
ingHUD
 
Health & Energy
 
FlagAnnouncer
 
TimeHUD
 
newQuickChatMenu & newSpeech

Download HERE (v0.6)

Source HERE (v0.5)

THIS FILE IS REQUIRED BY ALL MY SCRIPTS !

Description :

Includes a new text announcer to replace the ingame one. It color code all announcement (based on team) and allow you to choose which ones you want.
Recommended addons :
- ingHUD (to better color code sensor and generator announcements)
- FlagAnnouncer (to better color code flag announcements - requires FlagHUD by Byte)

This is also a collection of Usefull classes for HUD scripting

For more information check there : http://www.house-of-style.com/forums/viewtopic.php?t=134

Installation :

1. Extract HUDstuff.u into your Program\Bin folder of Tribes

2. Add the below lines to your TribesHUD.ini

[TribesGUI.TribesHUDScript]
ExtensionSpecs=(ElementName="ext_myReplicationAccess",ClassName="HUDstuff.myReplicationAccess",IniFile="HUDstuff.ini")
ExtensionSpecs=(ElementName="ext_myAnnouncer",ClassName="HUDstuff.myAnnouncer",IniFile="HUDstuff.ini")

[TribesGUI.TribesRespawnHUD]
HUDScriptType="HUDstuff.myRespawn"

To completely remove the Default Announcer :
edit TribesHUD.ini in Content/System

and comment the whole [default_AnnouncementsWindow] section by adding ; before each line

this should look like that :

;[default_AnnouncementsWindow]
;verticalAlignment=VALIGN_Relative
;horizontalAlignment=HALIGN_Center
;horizontalFill=HFILL_Relative
;TemplateMessageLabelName="default_AnnouncementLabel"
;OffsetY=80
;Width=400
;RelativePosY=0.25
;RelativeWidth=0.60
;Height=100
;MaxMessages=3
;MessageLifetime=0
;SecondsPerWord=0.6

3. Extract HUDstuff.ini into your Content\System folder of Tribes

4. Extract Announcer.int into your Content\System\Localisation\Speech folder of Tribes

FlagHUD :

If you have FlagHUD installed , comment that line :

[TribesGUI.TribesRespawnHUD]
;HUDScriptType="FlagHUD.RespawnHUDScript"

 

Details FOR SCRIPTERS:

AnnouncerHandler : an interface to design a class which should receive messages from myAnnouncer, you can specify the type of messages : currently Generator, Sensor, Flag and others ... i can add Fuel and Territory easily.

myAnnouncer : announces messages parsers, it's a replacement for the basic Announcer. it color code the messages and allow user to specify in an ini which ones he doesn't want to see. also can dispatch a type of message to an AnnouncerHandler which tells if the message should still be displayed or not. Any class with a reference to this one (which can be obtained with the following code ) can sends text to be passed as announces, allowing to differently color code a specific type of message.

myHUDIcon : used to display a static texture which is scaled on the fly ... very basic at the moment but it works

myRespawn : this is used with the following code and stops the announcements and messages from not being parsed by either myAnnouncer or a HUDscript (FlagHUD for the messages).

myHUDValueBar : It's a class replacing HUDValueBar to add vertical filling, it handles most of HUDValueBar functionnality except Fading. I wont be coding fading except if someone really needs it ...

OHUDMaterial : it's a class to be able to pass HUDMaterial struct by reference ... also adds a few functions ...

staticFunctions : This one is a collection of static functions to do stuff ... the most important ones are :
static function removeElement(HUDContainer c, HUDElement e)
and
static function int whereIsElement(HUDContainer c, HUDElement e)
which are used to remove the corrupt file bug when using hud scripts

myReplicationAccess : This is a class which gives access to some replicated actors as soon as we know they are available ...

© 2004-2005 Cactusbone