mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Merge branch 'master' of https://github.com/Stepets/LoveFrames
master is broken, so i've checked my patch on working revision
This commit is contained in:
commit
12108adbd4
@ -1,5 +1,5 @@
|
|||||||
================================================
|
================================================
|
||||||
Version 0.9.9 - Alpha (Release Date TBD)
|
Version 0.10 - Alpha (Release Date TBD)
|
||||||
================================================
|
================================================
|
||||||
[ADDED] a new object: tree
|
[ADDED] a new object: tree
|
||||||
[ADDED] a new object: radiobutton
|
[ADDED] a new object: radiobutton
|
||||||
@ -22,12 +22,15 @@ Version 0.9.9 - Alpha (Release Date TBD)
|
|||||||
[ADDED] a new columnlist method: SetColumnResizeEnabled(bool)
|
[ADDED] a new columnlist method: SetColumnResizeEnabled(bool)
|
||||||
[ADDED] a new columnlist method: GetColumnResizeEnabled()
|
[ADDED] a new columnlist method: GetColumnResizeEnabled()
|
||||||
[ADDED] a new columnlist method: SizeColumnToData()
|
[ADDED] a new columnlist method: SizeColumnToData()
|
||||||
|
[ADDED] a new columnlist method: SetColumnOrder(curid, newid)
|
||||||
[ADDED] a new columnlistheader method: SetName(name)
|
[ADDED] a new columnlistheader method: SetName(name)
|
||||||
[ADDED] a new scrollbody method: GetScrollBar()
|
[ADDED] a new scrollbody method: GetScrollBar()
|
||||||
[ADDED] a new frame method: SetMaxSize(width, height)
|
[ADDED] a new frame method: SetMaxSize(width, height)
|
||||||
[ADDED] a new frame method: GetMaxSize()
|
[ADDED] a new frame method: GetMaxSize()
|
||||||
[ADDED] a new frame method: SetMinSize(width, height)
|
[ADDED] a new frame method: SetMinSize(width, height)
|
||||||
[ADDED] a new frame method: GetMinSize()
|
[ADDED] a new frame method: GetMinSize()
|
||||||
|
[ADDED] a new textinput method: ClearLine(line)
|
||||||
|
[ADDED] a new list method: GetAutoScroll()
|
||||||
|
|
||||||
[FIXED] bug that would cause tabbuttons to be positioned incorrectly when scrolling with the mouse wheel
|
[FIXED] bug that would cause tabbuttons to be positioned incorrectly when scrolling with the mouse wheel
|
||||||
[FIXED] collision detection issue caused by list child objects not being updated when outside of their parent's bounding box
|
[FIXED] collision detection issue caused by list child objects not being updated when outside of their parent's bounding box
|
||||||
@ -35,12 +38,18 @@ Version 0.9.9 - Alpha (Release Date TBD)
|
|||||||
[FIXED] an error caused by calling base:MoveToTop on an object parented to a panel object
|
[FIXED] an error caused by calling base:MoveToTop on an object parented to a panel object
|
||||||
[FIXED] nested list positioning issues
|
[FIXED] nested list positioning issues
|
||||||
[FIXED] textinput.alltextselected being set to true when calling the SelectAll method on an empty single-line textinput
|
[FIXED] textinput.alltextselected being set to true when calling the SelectAll method on an empty single-line textinput
|
||||||
|
[FIXED] a bug that allowed frames to be resized when they where not being hovered
|
||||||
|
[FIXED] text:GetLines always returning nil
|
||||||
|
[FIXED] creating a newline in a multiline textinput with the return key would not reset the object's xoffset
|
||||||
|
[FIXED] the last character of a long line in a multiline textinput not being shown due to a text offset calculation issue
|
||||||
|
|
||||||
[CHANGED] columnlist row colors are now adjusted when a row is removed from the list
|
[CHANGED] columnlist row colors are now adjusted when a row is removed from the list
|
||||||
[CHANGED] columnlistarea.rowcolorindex now resets to 1 when the list is cleared
|
[CHANGED] columnlistarea.rowcolorindex now resets to 1 when the list is cleared
|
||||||
[CHANGED] columnlist:SetRowColumnText to columnlist:SetCellText
|
[CHANGED] columnlist:SetRowColumnText to columnlist:SetCellText
|
||||||
[CHANGED] columnlist:AdjustColumns to columnlist:PositionColumns
|
[CHANGED] columnlist:AdjustColumns to columnlist:PositionColumns
|
||||||
[CHANGED] license to zlib/libpng
|
[CHANGED] license to zlib/libpng
|
||||||
|
[CHANGED] the loveframes table is now returned by init.lua
|
||||||
|
[CHANGED] template files are now expected to return a template table instead of calling loveframes.templates.Register
|
||||||
|
|
||||||
================================================
|
================================================
|
||||||
Version 0.9.8.1 - Alpha (May 17 - 2014)
|
Version 0.9.8.1 - Alpha (May 17 - 2014)
|
||||||
|
112
init.lua
112
init.lua
@ -4,9 +4,11 @@
|
|||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
local path = ...
|
local path = ...
|
||||||
|
require(path .. ".libraries.util")
|
||||||
-- central library table
|
require(path .. ".libraries.skins")
|
||||||
loveframes = {}
|
require(path .. ".libraries.templates")
|
||||||
|
require(path .. ".libraries.debug")
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- library info
|
-- library info
|
||||||
loveframes.author = "Kenny Shields"
|
loveframes.author = "Kenny Shields"
|
||||||
@ -39,60 +41,22 @@ loveframes.basicfontsmall = love.graphics.newFont(10)
|
|||||||
loveframes.objects = {}
|
loveframes.objects = {}
|
||||||
loveframes.collisions = {}
|
loveframes.collisions = {}
|
||||||
|
|
||||||
--[[---------------------------------------------------------
|
-- install directory of the library
|
||||||
- func: load()
|
local dir = loveframes.config["DIRECTORY"] or path
|
||||||
- desc: loads the library
|
|
||||||
--]]---------------------------------------------------------
|
-- require the internal base libraries
|
||||||
function loveframes.load()
|
loveframes.class = require(dir .. ".third-party.middleclass")
|
||||||
|
require(dir .. ".libraries.util")
|
||||||
-- install directory of the library
|
require(dir .. ".libraries.skins")
|
||||||
local dir = loveframes.config["DIRECTORY"] or path
|
require(dir .. ".libraries.templates")
|
||||||
|
require(dir .. ".libraries.debug")
|
||||||
-- require the internal base libraries
|
|
||||||
loveframes.class = require(dir .. ".third-party.middleclass")
|
-- replace all "." with "/" in the directory setting
|
||||||
require(dir .. ".libraries.util")
|
dir = dir:gsub("\\", "/"):gsub("(%a)%.(%a)", "%1/%2")
|
||||||
require(dir .. ".libraries.skins")
|
loveframes.config["DIRECTORY"] = dir
|
||||||
require(dir .. ".libraries.templates")
|
|
||||||
require(dir .. ".libraries.debug")
|
-- enable key repeat
|
||||||
|
love.keyboard.setKeyRepeat(true)
|
||||||
-- replace all "." with "/" in the directory setting
|
|
||||||
dir = dir:gsub("\\", "/"):gsub("(%a)%.(%a)", "%1/%2")
|
|
||||||
loveframes.config["DIRECTORY"] = dir
|
|
||||||
|
|
||||||
-- create a list of gui objects, skins and templates
|
|
||||||
local objects = loveframes.util.GetDirectoryContents(dir .. "/objects")
|
|
||||||
local skins = loveframes.util.GetDirectoryContents(dir .. "/skins")
|
|
||||||
local templates = loveframes.util.GetDirectoryContents(dir .. "/templates")
|
|
||||||
|
|
||||||
-- loop through a list of all gui objects and require them
|
|
||||||
for k, v in ipairs(objects) do
|
|
||||||
if v.extension == "lua" then
|
|
||||||
require(v.requirepath)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- loop through a list of all gui templates and require them
|
|
||||||
for k, v in ipairs(templates) do
|
|
||||||
if v.extension == "lua" then
|
|
||||||
require(v.requirepath)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- loop through a list of all gui skins and require them
|
|
||||||
for k, v in ipairs(skins) do
|
|
||||||
if v.extension == "lua" then
|
|
||||||
require(v.requirepath)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- create the base gui object
|
|
||||||
local base = loveframes.objects["base"]
|
|
||||||
loveframes.base = base:new()
|
|
||||||
|
|
||||||
-- enable key repeat
|
|
||||||
love.keyboard.setKeyRepeat(true)
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
--[[---------------------------------------------------------
|
--[[---------------------------------------------------------
|
||||||
- func: update(deltatime)
|
- func: update(deltatime)
|
||||||
@ -454,5 +418,35 @@ function loveframes.GetState()
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- load the library
|
-- create a list of gui objects, skins and templates
|
||||||
loveframes.load()
|
local objects = loveframes.util.GetDirectoryContents(dir .. "/objects")
|
||||||
|
local skins = loveframes.util.GetDirectoryContents(dir .. "/skins")
|
||||||
|
local templates = loveframes.util.GetDirectoryContents(dir .. "/templates")
|
||||||
|
|
||||||
|
-- loop through a list of all gui objects and require them
|
||||||
|
for k, v in ipairs(objects) do
|
||||||
|
if v.extension == "lua" then
|
||||||
|
require(v.requirepath)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- loop through a list of all gui templates and require them
|
||||||
|
for k, v in ipairs(templates) do
|
||||||
|
if v.extension == "lua" then
|
||||||
|
local template = require(v.requirepath)
|
||||||
|
loveframes.templates.Register(template)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- loop through a list of all gui skins and require them
|
||||||
|
for k, v in ipairs(skins) do
|
||||||
|
if v.extension == "lua" then
|
||||||
|
require(v.requirepath)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- create the base gui object
|
||||||
|
local base = loveframes.objects["base"]
|
||||||
|
loveframes.base = base:new()
|
||||||
|
|
||||||
|
return loveframes
|
||||||
|
1
libraries/common.lua
Normal file
1
libraries/common.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
return {}
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".debug"))
|
||||||
|
local loveframes = require(path .. ".common")
|
||||||
|
|
||||||
-- debug library
|
-- debug library
|
||||||
loveframes.debug = {}
|
loveframes.debug = {}
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".skins"))
|
||||||
|
local loveframes = require(path .. ".common")
|
||||||
|
|
||||||
-- skins library
|
-- skins library
|
||||||
loveframes.skins = {}
|
loveframes.skins = {}
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".templates"))
|
||||||
|
local loveframes = require(path .. ".common")
|
||||||
|
|
||||||
-- templates library
|
-- templates library
|
||||||
loveframes.templates = {}
|
loveframes.templates = {}
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".util"))
|
||||||
|
local loveframes = require(path .. ".common")
|
||||||
|
|
||||||
-- util library
|
-- util library
|
||||||
loveframes.util = {}
|
loveframes.util = {}
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.base"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- base object
|
-- base object
|
||||||
local newobject = loveframes.NewObject("base", "loveframes_object_base")
|
local newobject = loveframes.NewObject("base", "loveframes_object_base")
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.button"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- button object
|
-- button object
|
||||||
local newobject = loveframes.NewObject("button", "loveframes_object_button", true)
|
local newobject = loveframes.NewObject("button", "loveframes_object_button", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.checkbox"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- checkbox object
|
-- checkbox object
|
||||||
local newobject = loveframes.NewObject("checkbox", "loveframes_object_checkbox", true)
|
local newobject = loveframes.NewObject("checkbox", "loveframes_object_checkbox", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.collapsiblecategory"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- collapsiblecategory object
|
-- collapsiblecategory object
|
||||||
local newobject = loveframes.NewObject("collapsiblecategory", "loveframes_object_collapsiblecategory", true)
|
local newobject = loveframes.NewObject("collapsiblecategory", "loveframes_object_collapsiblecategory", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.columnlist"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- columnlist object
|
-- columnlist object
|
||||||
local newobject = loveframes.NewObject("columnlist", "loveframes_object_columnlist", true)
|
local newobject = loveframes.NewObject("columnlist", "loveframes_object_columnlist", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.form"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- form object
|
-- form object
|
||||||
local newobject = loveframes.NewObject("form", "loveframes_object_form", true)
|
local newobject = loveframes.NewObject("form", "loveframes_object_form", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.frame"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- frame object
|
-- frame object
|
||||||
local newobject = loveframes.NewObject("frame", "loveframes_object_frame", true)
|
local newobject = loveframes.NewObject("frame", "loveframes_object_frame", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.grid"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- grid object
|
-- grid object
|
||||||
local newobject = loveframes.NewObject("grid", "loveframes_object_grid", true)
|
local newobject = loveframes.NewObject("grid", "loveframes_object_grid", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.image"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- image object
|
-- image object
|
||||||
local newobject = loveframes.NewObject("image", "loveframes_object_image", true)
|
local newobject = loveframes.NewObject("image", "loveframes_object_image", true)
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
-- Love Frames - A GUI library for LOVE --
|
-- Love Frames - A GUI library for LOVE --
|
||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.imagebutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- imagebutton object
|
-- imagebutton object
|
||||||
local newobject = loveframes.NewObject("imagebutton", "loveframes_object_imagebutton", true)
|
local newobject = loveframes.NewObject("imagebutton", "loveframes_object_imagebutton", true)
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.closebutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- closebutton class
|
-- closebutton class
|
||||||
local newobject = loveframes.NewObject("closebutton", "loveframes_object_closebutton", true)
|
local newobject = loveframes.NewObject("closebutton", "loveframes_object_closebutton", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.columnlist.columnlistarea"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- columnlistarea class
|
-- columnlistarea class
|
||||||
local newobject = loveframes.NewObject("columnlistarea", "loveframes_object_columnlistarea", true)
|
local newobject = loveframes.NewObject("columnlistarea", "loveframes_object_columnlistarea", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.columnlist.columnlistheader"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- columnlistheader class
|
-- columnlistheader class
|
||||||
local newobject = loveframes.NewObject("columnlistheader", "loveframes_object_columnlistheader", true)
|
local newobject = loveframes.NewObject("columnlistheader", "loveframes_object_columnlistheader", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.columnlist.columnlistrow"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- columnlistrow class
|
-- columnlistrow class
|
||||||
local newobject = loveframes.NewObject("columnlistrow", "loveframes_object_columnlistrow", true)
|
local newobject = loveframes.NewObject("columnlistrow", "loveframes_object_columnlistrow", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.linenumberspanel"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- linenumberspanel class
|
-- linenumberspanel class
|
||||||
local newobject = loveframes.NewObject("linenumberspanel", "loveframes_object_linenumberspanel", true)
|
local newobject = loveframes.NewObject("linenumberspanel", "loveframes_object_linenumberspanel", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.menuoption"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- menuoption object
|
-- menuoption object
|
||||||
local newobject = loveframes.NewObject("menuoption", "loveframes_object_menuoption", true)
|
local newobject = loveframes.NewObject("menuoption", "loveframes_object_menuoption", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.modalbackground"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- modalbackground class
|
-- modalbackground class
|
||||||
local newobject = loveframes.NewObject("modalbackground", "loveframes_object_modalbackground", true)
|
local newobject = loveframes.NewObject("modalbackground", "loveframes_object_modalbackground", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.multichoice.multichoicelist"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- multichoicelist class
|
-- multichoicelist class
|
||||||
local newobject = loveframes.NewObject("multichoicelist", "loveframes_object_multichoicelist", true)
|
local newobject = loveframes.NewObject("multichoicelist", "loveframes_object_multichoicelist", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.multichoice.multichoicerow"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- multichoicerow class
|
-- multichoicerow class
|
||||||
local newobject = loveframes.NewObject("multichoicerow", "loveframes_object_multichoicerow", true)
|
local newobject = loveframes.NewObject("multichoicerow", "loveframes_object_multichoicerow", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.scrollable.scrollarea"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- scrollarea class
|
-- scrollarea class
|
||||||
local newobject = loveframes.NewObject("scrollarea", "loveframes_object_scrollarea", true)
|
local newobject = loveframes.NewObject("scrollarea", "loveframes_object_scrollarea", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.scrollable.scrollbar"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- scrollbar class
|
-- scrollbar class
|
||||||
local newobject = loveframes.NewObject("scrollbar", "loveframes_object_scrollbar", true)
|
local newobject = loveframes.NewObject("scrollbar", "loveframes_object_scrollbar", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.scrollable.scrollbody"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- scrollbar class
|
-- scrollbar class
|
||||||
local newobject = loveframes.NewObject("scrollbody", "loveframes_object_scrollbody", true)
|
local newobject = loveframes.NewObject("scrollbody", "loveframes_object_scrollbody", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.scrollable.scrollbutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- scrollbutton clas
|
-- scrollbutton clas
|
||||||
local newobject = loveframes.NewObject("scrollbutton", "loveframes_object_scrollbutton", true)
|
local newobject = loveframes.NewObject("scrollbutton", "loveframes_object_scrollbutton", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.sliderbutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- sliderbutton class
|
-- sliderbutton class
|
||||||
local newobject = loveframes.NewObject("sliderbutton", "loveframes_object_sliderbutton", true)
|
local newobject = loveframes.NewObject("sliderbutton", "loveframes_object_sliderbutton", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.tabbutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- tabbutton class
|
-- tabbutton class
|
||||||
local newobject = loveframes.NewObject("tabbutton", "loveframes_object_tabbutton", true)
|
local newobject = loveframes.NewObject("tabbutton", "loveframes_object_tabbutton", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.tooltip"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- tooltip clas
|
-- tooltip clas
|
||||||
local newobject = loveframes.NewObject("tooltip", "loveframes_object_tooltip", true)
|
local newobject = loveframes.NewObject("tooltip", "loveframes_object_tooltip", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.treenode"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- button object
|
-- button object
|
||||||
local newobject = loveframes.NewObject("treenode", "loveframes_object_treenode", true)
|
local newobject = loveframes.NewObject("treenode", "loveframes_object_treenode", true)
|
||||||
|
|
||||||
@ -264,6 +268,22 @@ function newobject:AddNode(text)
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[---------------------------------------------------------
|
||||||
|
- func: RemoveNode(id)
|
||||||
|
- desc: removes a node from the object
|
||||||
|
--]]---------------------------------------------------------
|
||||||
|
function newobject:RemoveNode(id)
|
||||||
|
|
||||||
|
id = id + 1
|
||||||
|
for k, v in ipairs(self.internals) do
|
||||||
|
if k == id then
|
||||||
|
v:Remove()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
--[[---------------------------------------------------------
|
--[[---------------------------------------------------------
|
||||||
- func: SetOpen(bool)
|
- func: SetOpen(bool)
|
||||||
- desc: sets whether or not the object is open
|
- desc: sets whether or not the object is open
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.treenodebutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- button object
|
-- button object
|
||||||
local newobject = loveframes.NewObject("treenodebutton", "loveframes_object_treenodebutton", true)
|
local newobject = loveframes.NewObject("treenodebutton", "loveframes_object_treenodebutton", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.list"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- list object
|
-- list object
|
||||||
local newobject = loveframes.NewObject("list", "loveframes_object_list", true)
|
local newobject = loveframes.NewObject("list", "loveframes_object_list", true)
|
||||||
|
|
||||||
@ -700,6 +704,18 @@ function newobject:SetAutoScroll(bool)
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[---------------------------------------------------------
|
||||||
|
- func: GetAutoScroll()
|
||||||
|
- desc: gets whether or not the list's scrollbar should
|
||||||
|
auto scroll to the bottom when a new object is
|
||||||
|
added to the list
|
||||||
|
--]]---------------------------------------------------------
|
||||||
|
function newobject:GetAutoScroll()
|
||||||
|
|
||||||
|
return self.autoscroll
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
--[[---------------------------------------------------------
|
--[[---------------------------------------------------------
|
||||||
- func: SetButtonScrollAmount(speed)
|
- func: SetButtonScrollAmount(speed)
|
||||||
- desc: sets the scroll amount of the object's scrollbar
|
- desc: sets the scroll amount of the object's scrollbar
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.menu"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- menu object
|
-- menu object
|
||||||
local newobject = loveframes.NewObject("menu", "loveframes_object_menu", true)
|
local newobject = loveframes.NewObject("menu", "loveframes_object_menu", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.multichoice"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- multichoice object
|
-- multichoice object
|
||||||
local newobject = loveframes.NewObject("multichoice", "loveframes_object_multichoice", true)
|
local newobject = loveframes.NewObject("multichoice", "loveframes_object_multichoice", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.numberbox"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- numberbox object
|
-- numberbox object
|
||||||
local newobject = loveframes.NewObject("numberbox", "loveframes_object_numberbox", true)
|
local newobject = loveframes.NewObject("numberbox", "loveframes_object_numberbox", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.panel"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- panel object
|
-- panel object
|
||||||
local newobject = loveframes.NewObject("panel", "loveframes_object_panel", true)
|
local newobject = loveframes.NewObject("panel", "loveframes_object_panel", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.progressbar"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- progressbar object
|
-- progressbar object
|
||||||
local newobject = loveframes.NewObject("progressbar", "loveframes_object_progressbar", true)
|
local newobject = loveframes.NewObject("progressbar", "loveframes_object_progressbar", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.radiobutton"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- radiobutton object
|
-- radiobutton object
|
||||||
local newobject = loveframes.NewObject("radiobutton", "loveframes_object_radiobutton", true)
|
local newobject = loveframes.NewObject("radiobutton", "loveframes_object_radiobutton", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.slider"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- slider object
|
-- slider object
|
||||||
local newobject = loveframes.NewObject("slider", "loveframes_object_slider", true)
|
local newobject = loveframes.NewObject("slider", "loveframes_object_slider", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.tabs"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- tabs object
|
-- tabs object
|
||||||
local newobject = loveframes.NewObject("tabs", "loveframes_object_tabs", true)
|
local newobject = loveframes.NewObject("tabs", "loveframes_object_tabs", true)
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
experimental and not final
|
experimental and not final
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.text"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- text object
|
-- text object
|
||||||
local newobject = loveframes.NewObject("text", "loveframes_object_text", true)
|
local newobject = loveframes.NewObject("text", "loveframes_object_text", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.textinput"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- textinput object
|
-- textinput object
|
||||||
local newobject = loveframes.NewObject("textinput", "loveframes_object_textinput", true)
|
local newobject = loveframes.NewObject("textinput", "loveframes_object_textinput", true)
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".objects.tree"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- button object
|
-- button object
|
||||||
local newobject = loveframes.NewObject("tree", "loveframes_object_tree", true)
|
local newobject = loveframes.NewObject("tree", "loveframes_object_tree", true)
|
||||||
|
|
||||||
@ -267,6 +271,10 @@ function newobject:mousereleased(x, y, button)
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[---------------------------------------------------------
|
||||||
|
- func: AddNode(text)
|
||||||
|
- desc: adds a node to the object
|
||||||
|
--]]---------------------------------------------------------
|
||||||
function newobject:AddNode(text)
|
function newobject:AddNode(text)
|
||||||
|
|
||||||
local node = loveframes.objects["treenode"]:new()
|
local node = loveframes.objects["treenode"]:new()
|
||||||
@ -280,6 +288,21 @@ function newobject:AddNode(text)
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[---------------------------------------------------------
|
||||||
|
- func: RemoveNode(id)
|
||||||
|
- desc: removes a node from the object
|
||||||
|
--]]---------------------------------------------------------
|
||||||
|
function newobject:RemoveNode(id)
|
||||||
|
|
||||||
|
for k, v in ipairs(self.children) do
|
||||||
|
if k == id then
|
||||||
|
v:Remove()
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
--[[---------------------------------------------------------
|
--[[---------------------------------------------------------
|
||||||
- func: GetVerticalScrollBody()
|
- func: GetVerticalScrollBody()
|
||||||
- desc: gets the object's vertical scroll body
|
- desc: gets the object's vertical scroll body
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".skins.Blue.skin"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- skin table
|
-- skin table
|
||||||
local skin = {}
|
local skin = {}
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
-- Copyright (c) 2012-2014 Kenny Shields --
|
-- Copyright (c) 2012-2014 Kenny Shields --
|
||||||
--]]------------------------------------------------
|
--]]------------------------------------------------
|
||||||
|
|
||||||
|
-- get the current require path
|
||||||
|
local path = string.sub(..., 1, string.len(...) - string.len(".skins.Orange.skin"))
|
||||||
|
local loveframes = require(path .. ".libraries.common")
|
||||||
|
|
||||||
-- skin table
|
-- skin table
|
||||||
local skin = {}
|
local skin = {}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
--[[------------------------------------------------
-- note: This is the base template for all
Love Frames objects. You should not
edit or delete this template unless you
know what you are doing.
--]]------------------------------------------------
-- template table
local template = {}
-- template name
template.name = "Base"
-- template properties
template.properties = {}
template.properties["*"] =
{
state = "none",
x = 0,
y = 0,
width = 5,
height = 5,
staticx = 0,
staticy = 0,
draworder = 0,
collide = true,
internal = false,
visible = true,
hover = false,
alwaysupdate = false,
retainsize = false,
calledmousefunc = false,
skin = nil,
clickbounds = nil,
Draw = nil,
Update = nil,
OnMouseEnter = nil,
OnMouseExit = nil
}
-- register the template
loveframes.templates.Register(template)
|
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
--[[------------------------------------------------
-- note: This is the base template for all
Love Frames objects. You should not
edit or delete this template unless you
know what you are doing.
--]]------------------------------------------------
-- template table
local template = {}
-- template name
template.name = "Base"
-- template properties
template.properties = {}
template.properties["*"] =
{
state = "none",
x = 0,
y = 0,
width = 5,
height = 5,
staticx = 0,
staticy = 0,
draworder = 0,
collide = true,
internal = false,
visible = true,
hover = false,
alwaysupdate = false,
retainsize = false,
calledmousefunc = false,
skin = nil,
clickbounds = nil,
Draw = nil,
Update = nil,
OnMouseEnter = nil,
OnMouseExit = nil
}
return template
|
Loading…
Reference in New Issue
Block a user