somme edits i think blah
This commit is contained in:
@@ -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
|
@@ -14,4 +14,10 @@ function ImageLabel:setImage(image)
|
||||
self.image = image
|
||||
end
|
||||
|
||||
function ImageLabel:render()
|
||||
self:super:render()
|
||||
|
||||
-- TODO: render image
|
||||
end
|
||||
|
||||
return ImageLabel
|
||||
|
@@ -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()
|
||||
|
||||
|
@@ -6,6 +6,4 @@ function UIButton:init()
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
return UIButton
|
@@ -20,7 +20,6 @@ local Event = require("lib.classes.Event")
|
||||
|
||||
Hidden methods:
|
||||
|
||||
|
||||
Public methods:
|
||||
Color getBackgroundColor()
|
||||
Color getBorderColor()
|
||||
|
Reference in New Issue
Block a user