Atreides_096 Wanderer
Joined: 21 Jan 2005 Posts: 99 Location: Solvang, CA
|
Posted: Tue Feb 28, 2006 3:31 am
Status Windows |
I just set up a status window a few days ago, and I fell completely in love with it. However, it's been lagging my zmud down to nearly frozen. So my question is three-fold...
1) Is the status window practical in any way, or will it lag me no matter what?
2) Will the status window be better in cmud?
3) Assuming the answer to 1 is Yes, and 2 is No, I'm going to paste the code for my status window below. You'll notice that the only IF statements in there revolve around colorizing and spacing. I am wondering though if perhaps these if statements are the cause of the lag? And if so, if there is actually any way to avoid them and keep the look of the window? (%concatting variables perhaps? or maybe using just 1 single DB for the STW so it doesn't check all vars? Can it be told to check only 1 DB?).. anyway, the code is below. I strongly suspect that it just can't be made to work, but if someone can point out the errors of my ways, I will be forever grateful ;) Only had the STW for 3 days, But it had already become about my favorite feature in zmud...
Code: |
%ansi( blue) -------------------------------
%if( %int( %db( @HourReport2, BonusExpThisHour))>0, "", " ")%ansi( white) Level %ansi( hi, green)%if( %len( @clevel)=1, " "@clevel, %if( %len( @clevel)=2, " "@clevel, @clevel)) %ansi( 8)|%ansi( white) Hour: %ansi( hi, green)%format( "&1.0n", %db( @HourReport, Exp))%ansi( grey)%if( %int( %db( @HourReport2, BonusExpThisHour))>0, %ansi( hi, cyan)/%ansi( 8)%format( "&1.0n", %int( %db( @HourReport2, BonusExpThisHour))))%if( %class( GroupInfo|DoubleTracker|TrackOn), %cr%ansi( white)" "This Double: %ansi( hi, green)%format( "&1.0n", @dblxp))
%ansi( blue) -------------------------------
%ansi( high, %if( @campaign="Yes", red, %if( @campaign="No", cyan, green)))%if( @campaign="Yes", " "You may take a campaign, %if( @campaign="No", " "You must level to campaign, " "You are on a campaign.))
%ansi( blue) -------------------------------
%ansi( high, white)" "Spellup Mode " "%ansi( high, cyan)%if( %class( :Checkup), Full, Short)
%ansi( blue) -------------------------------
%ansi( white) %proper( @chpot):@DisplaySpacing(@chpot) %ansi( %if( @hpotc>10, 11, 12))@hpotc" "%if( %len( @hpotc)=1, " ", %if( %len( @hpotc)=2, " ", ""))%ansi( 8)"("%ansi( grey)@htcheck%%ansi( 8)")"
%ansi( white) %proper( @cmpot):@DisplaySpacing(@cmpot) %ansi( %if( @mpotc>10, 11, 12))@mpotc" "%if( %len( @mpotc)=1, " ", %if( %len( @mpotc)=2, " ", ""))%ansi( 8)"("%ansi( grey)@mtcheck%%ansi( 8)")"
%ansi( blue) -------------------------------
%ansi( high, %if( %db( @Called_Wars_DB, GoodWar)="Yes", red, white)) %db( @Called_Wars_DB, WarStatus): %ansi( high, green)%if( %db( @Called_Wars_DB, WarType)="Genocide", Geno, %db( @Called_Wars_DB, WarType))%ansi( high, white) for %ansi( high, cyan)%db( @Called_Wars_DB, WarBottomLevel)-%db( @Called_Wars_DB, WarTopLevel)%if( %db( @Called_Wars_DB, TerminationTime)!=%null, %ansi( high, red) %db( @Called_Wars_DB, TerminationTime)m)%if( %eval( %ctime-%db( @Called_Wars_DB, SecondRemaining))<60, %ansi( high, yellow) %eval( 60-%eval( %ctime-%db( @Called_Wars_DB, SecondRemaining)))s, %if( %db( @Called_Wars_DB, PreperationTime)>1, %ansi( grey) %db( @Called_Wars_DB, PreperationTime)m)) %if( %int( %db( @Called_Wars_DB, Entrants))>0, %ansi( high, green)E-%db( @Called_Wars_DB, Entrants))
%ansi( blue) -------------------------------
%ansi( high, white) AutoQuaffer %ansi( high, %if( %class( Autoquaff), green, cyan))%if( %class( Autoquaff), On" ", Off)%ansi( grey)| %ansi( high, white)Target %ansi( high, green)%if( %len( @target)>5, %left( @target, 5), @target)
%ansi( blue) -------------------------------
%ansi( white) Autolooting %ansi( hi, %if( @autoloot=="off", cyan, green))%if( @autoloot=="off", Off, "On ")%ansi( grey)| %ansi( white)Subbed %ansi( hi, %if( @subbed="None", red, gold))@subbed
%ansi( blue) ------------------------------- |
|
|