// #autoload // #name = GeezChatHUDTransToggle // #version = 0.2 // #date = january 03, 2002 // #author = {GeeZ}DeaDBeaT // #warrior = DeaDBeaT // #email = DeaDBeaT@oldfogieshome.com // #web = http://www.oldfogieshome.com // #description = ChatHUD transparency toggle // #status = beta // = scripts/autoexec/GeeZers/GeezChatHudTrans.cs //start package package gzChatHUDTransToggle { //define our call to the options dialog box function OptionsDlg::onWake(%this) { if(!$GeezChatToggleBind) //if ours is NOT bound bind it { $RemapName[$RemapCount]="GeezChatToggle"; //add our name $RemapCmd[$RemapCount]="ChatHUDTransToggle"; //call cmd - function() $RemapCount++; //increment total bind count $GeezChatToggleBind = true; //ours is now bound } parent::onWake(%this); //call T2 parent script } function ChatHUDTransToggle(%val) { if (%val) // %val only passed in on the downstroke. { if($GeezChatToggle) { OuterChatHud.profile = "GuiConsoleProfile"; parent::onWake(%this); } else { OuterChatHud.profile = "GuiConsoleProfile"; parent::onWake(%this); } Canvas.popDialog( MainChatHud ); Canvas.pushDialog( MainChatHud ); chatHud.attach(HudMessageVector); } } }; activatepackage(gzChatHUDTransToggle);