lotrointerface.com
Search Downloads

LoTROInterface SVN KragenBars

[/] [trunk/] [KragenPlugs/] [KragenBars/] [Effect.lua] - Rev 54

Compare with Previous | Blame | View Log

import "Turbine.UI";
import "Turbine.UI.Lotro";
import "KragenPlugs.Utils";
import "KragenPlugs.KragenBars";

 Effect = class ( );

function Effect:Constructor ( )
        self.name = "";
        self.state = false;
        self.effectid = 0;
end

function Effect:GetState()
        return self.state;
end

function Effect:SetState(state, id)
        if ( state ) then
                self.state = true;
                self.effectid = id;
        else
                if ( id == self.effectid ) then
                    self.state = false;
                        self.effectid = 0;
                end
        end
        
        return self.state;
end

function Effect:GetName()
        return self.name;
end

function Effect:SetName(name)
        self.name = name;
end

Compare with Previous | Blame


All times are GMT -5. The time now is 02:53 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui