lotrointerface.com
Search Downloads

LoTROInterface SVN KragenBars

[/] [branches/] [3.0.0/] [KragenPlugs/] [UI/] [Label.lua] - Rev 40

Go to most recent revision | Compare with Previous | Blame | View Log

import "Turbine.UI";

Label = class(Turbine.UI.Label);

-- colors
Label.ItemColor = Turbine.UI.Color(245/255, 222/255, 147/255);
Label.DisabledColor = Turbine.UI.Color(162/255, 162/255, 162/255);

function Label:Constructor()
    Turbine.UI.Label.Constructor(self);

    self:SetTextAlignment(Turbine.UI.ContentAlignment.MiddleCenter);
    self:SetForeColor(Label.ItemColor);
    self:SetFont(Turbine.UI.Lotro.Font.TrajanPro14);
end

function Label:SetEnabled(enabled)
    Turbine.UI.Control.SetEnabled(self, enabled);
    self:SetForeColor(enabled and Label.ItemColor or Label.DisabledColor);
end

Go to most recent revision | Compare with Previous | Blame


All times are GMT -5. The time now is 12:57 PM.


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