|
|
LilReb 08-28-2003, 09:50 AM ok..I wanna get some things in myy gui trans...and i made a thread a week ago but i wasnt very clear so here's a pic of what i want trans and i hope this helps....
http://dev.swforums.com/Images/LilReb/sshot0005.jpg
I want my Caps hud trans, clock trans and compass trans so it all just looks like it goes right on the chat hud...i hope this can be done and im just running base stripped...nothin else
LilReb 08-28-2003, 01:34 PM can ya tell me how?
I would if I hadnt lost my stripped config :/
LilReb 08-28-2003, 02:01 PM well unlose it
random 08-28-2003, 04:03 PM ClockHUD: You need to use a ClockHUD.cs that works for stripped, just use Search for older versions.
Compass: On Boots' (www.planettribes.com/boots) site there's a Transparent Compass.bmp that you need to put in base\skins.
FlagHUD: There's apparently some option you change in StrippedPrefs that lets you have Transparent huds, I've never used it though so I'll wait for cyclonite or jin to tell you.
cyclonite 08-29-2003, 01:41 AM The flag hud can be made transparent. I had a replacement flaggerdrop.cs for Striped 1.21 but unfortunately I deleted it about 2 days ago :( ves and I can't be bothered making it myslelf
iblis 08-29-2003, 03:57 AM //Flagger Drop - revamped and simplified.
//I added the traditional hud background - its just as fast (hell, faster) but it's easier to read now.
Event::Attach(eventFlag, DropTimer::Flag);
Event::Attach(EventFlagTi merUpdate, DropTimer::TimerUpdate);
Event::Attach(eventExit, DropTimer::Remove);
Event::Attach(eventPlayGu iCreated, DropTimer::Checkgui);
function DropTimer::TimerUpdate(%t eam, %time) {
if(%time == 5 && %team != $MyTeam) {
say(1, $DropTImer::MessageEnemy) ;
}
else if (%time == 5 && %team == $MyTeam) {
say(1, $DropTImer::MessageFriend ly);
}
}
function DropTimer::Flag() {
if($MyTeam == "1") { %enemy = 0; }
else { %enemy = 1; }
if($Flag::Status[$MyTeam] == "Home") { %frcolor = "<F1>"; }
else { %frcolor = "<F2>"; }
if($Flag::Status[%enemy] == "Home") { %encolor = "<F1>"; }
else { %encolor = "<F2>"; }
Control::SetValue("DT::FLAG", "<JL><B1,1:friendlyflag.bmp><L4>"@%frcolor@$Flag::Status[$MyTeam]@"\n<B-19,4:enemyflag.bmp><L4>"@%encolor@$Flag::Status[%enemy]);
}
function DropTimer::CheckGui(%gui) {
$DT::HUD = newObject("DropTimerHUD", SimGui::Control, 0, Stripped::GetScreenSizeY( )-30, 150, 30);
$DT::Text = newobject("DT::FLAG", FearGuiFormattedText, 4, 0, 0, 0);
AddtoSet("DropTimerHUD", "DT::FLAG");
AddtoSet(playGui, "DropTimerHUD");
Control::setPosition("DropTimerHUD", $DTPref::XOffset, 0, Stripped::GetScreenSizeY( )-30);
DropTimer::Flag();
}
function DropTimer::Remove() {
removeFromSet("playgui", $DT::HUD);
deleteObject($DT::HUD);
}
cyclonite 08-29-2003, 04:36 AM ibilis posted the standard flagger drop, I edited what he posted it to make it transparent as you desired.
/Flagger Drop - revamped and simplified.
//I removed the traditional hud background - its just as fast (hell, faster) but it's easier to read now.
Event::Attach(eventFlag, DropTimer::Flag);
Event::Attach(EventFlagTi merUpdate, DropTimer::TimerUpdate);
Event::Attach(eventExit, DropTimer::Remove);
Event::Attach(eventPlayGu iCreated, DropTimer::Checkgui);
function DropTimer::TimerUpdate(%t eam, %time) {
if(%time == 5 && %team != $MyTeam) {
say(1, $DropTImer::MessageEnemy) ;
}
else if (%time == 5 && %team == $MyTeam) {
say(1, $DropTImer::MessageFriend ly);
}
}
function DropTimer::Flag() {
if($MyTeam == "1") { %enemy = 0; }
else { %enemy = 1; }
if($Flag::Status[$MyTeam] == "Home") { %frcolor = "<F1>"; }
else { %frcolor = "<F2>"; }
if($Flag::Status[%enemy] == "Home") { %encolor = "<F1>"; }
else { %encolor = "<F2>"; }
Control::SetValue("DropTimerHUD", "<JL><B1,1:friendlyflag.bmp><L4>" @ %frcolor @ $Flag::Status[$MyTeam] @ "\n<B-19,4:enemyflag.bmp><L4>" @ %encolor @ $Flag::Status[%enemy]);
}
function DropTimer::CheckGui(%gui) {
$DT::HUD = newobject("DropTimerHUD", FearGuiFormattedText, 0, Stripped::GetScreenSizeY( )-30, 150, 30);
AddtoSet(playGui, "DropTimerHUD");
Control::setPosition("DropTimerHUD", $DTPref::XOffset, Stripped::GetScreenSizeY( )-30);
DropTimer::Flag();
}
function DropTimer::Remove() {
removeFromSet("playGui", $DT::HUD);
deleteObject($DT::HUD);
}
Save that script as flaggerdrop.cs, you can either re-vol stripped.vol with this version or just drop this script in config dir, I think it should get executed. If it doesn't let us know.
LilReb 08-29-2003, 12:39 PM No Worky
cyclonite 08-30-2003, 04:06 AM Try what I posted above again, I edited something.
Any debug information or errors you are getting in the console would be helpful as well.
LilReb 08-30-2003, 03:46 PM Ok....i dont know...am i just supposed to save this as FlaggerDrop.cs in my Config folder then go into tries and in console type
exec("FlaggerDrop.cs");??If so then it does not work..
Sensi 08-30-2003, 04:10 PM in your autoexec.cs
LilReb 08-30-2003, 07:38 PM nvm it works now.....Now to just get myy clock trans...
|
|