Files
PathOfBuilding/Classes/LabelControl.lua
Openarl 2806cbac3d 1.4.118 Initial commit
- Added/updated skill gems and bases
- Fixed curse stats with wrong sign
- Fixed wrong sources on quality mods
2018-12-09 16:29:54 +13:00

17 lines
510 B
Lua

-- Path of Building
--
-- Class: Label Control
-- Simple text label.
--
local LabelClass = newClass("LabelControl", "Control", function(self, anchor, x, y, width, height, label)
self.Control(anchor, x, y, width, height)
self.label = label
self.width = function()
return DrawStringWidth(self:GetProperty("height"), "VAR", self:GetProperty("label"))
end
end)
function LabelClass:Draw()
local x, y = self:GetPos()
DrawString(x, y, "LEFT", self:GetProperty("height"), "VAR", self:GetProperty("label"))
end