lotrointerface.com
Search Downloads

LoTROInterface SVN KragenBars

[/] [branches/] [3.01/] [UI/] [Label.lua] - Rev 17

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

Compare with Previous | Blame


All times are GMT -5. The time now is 07:13 PM.


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