somme edits i think blah

This commit is contained in:
Josh
2018-06-03 13:56:46 -05:00
parent b896da0e44
commit e2d758ba66
5 changed files with 43 additions and 9 deletions

View File

@@ -1,15 +1,21 @@
local UIRect = require("lib.classes.UIRect")
local Frame = UIRect:subclass("Frame")
--[[
Frame class
Inherits UIRect
Internal properties:
Hidden methods:
Public methods:
Events:
]]
function Frame:init()
self.super:init()
end
function Frame:render()
self.super:render()
self:renderChildren()
end
return Frame

View File

@@ -14,4 +14,10 @@ function ImageLabel:setImage(image)
self.image = image
end
function ImageLabel:render()
self:super:render()
-- TODO: render image
end
return ImageLabel

View File

@@ -2,7 +2,32 @@ local UIRect = require("lib.classes.UIRect")
local RGBColor = require("lib.datatypes.RGBColor")
local Label = UIRect:subclass("Label")
--[[
Label class
Inherits UIRect
Internal properties:
string text
Color textColor
string textAlignment
number textSize
Love2DFont font
string fontFace
Hidden methods:
recalculateInternalFont()
Public methods:
string getText()
string getFontFace()
number getTextSize()
setFontFace(String fontFile)
setText(string text)
setTextSize(number size)
Events:
]]
function Label:init()
self.super:init()

View File

@@ -6,6 +6,4 @@ function UIButton:init()
end
return UIButton

View File

@@ -20,7 +20,6 @@ local Event = require("lib.classes.Event")
Hidden methods:
Public methods:
Color getBackgroundColor()
Color getBorderColor()