diff --git a/Object.md b/Object.md index ecb3270..da1c056 100644 --- a/Object.md +++ b/Object.md @@ -83,13 +83,13 @@ local aButton = mainFrame:addButton("myFirstButton"):onClick(function() aRandomF **args:** frame object
**returns:** the object
-## isFocusedObject +## isFocused returns if the object is currently the focused object of the parent frame ````lua local mainFrame = basalt.createFrame("myFirstFrame"):show() local aButton = mainFrame:addButton("myFirstButton"):show() -basalt.debug(aButton:isFocusedObject()) -- shows true or false as a debug message +basalt.debug(aButton:isFocused()) -- shows true or false as a debug message ```` **args:** -
**returns:** true or false
@@ -115,12 +115,12 @@ local aButton = mainFrame:addButton("myFirstButton"):setAnchor("bottom","right") **args:** "left", "right", "top", "bottom" - doesn't matter which order
**returns:** the object
-## relativeToAbsolutePosition +## getAbsolutePosition converts the relative coordinates into absolute coordinates ````lua local mainFrame = basalt.createFrame("myFirstFrame"):setPosition(3,3):show() local aButton = mainFrame:addButton("myFirstButton"):setSize(8,1):setPosition(4,2):show() -basalt.debug(aButton:relativeToAbsolutePosition()) -- returns 7,5 (frame coords + own coords) instead of 4,2 +basalt.debug(aButton:getAbsolutePosition()) -- returns 7,5 (frame coords + own coords) instead of 4,2 ```` **args:** x,y or nothing - if nothing it uses the object x,y
**returns:** the object
@@ -134,9 +134,6 @@ local aButton = mainFrame:addButton("myFirstButton"):setSize(12,3):setTextAlign( **args:** horizontal,vertical you can use "left", "center", "right"
**returns:** the object
-## setCustomArgs -WIP - ## setValue sets the value of that object (input, label, checkbox, textfield, scrollbar,...) ````lua @@ -156,12 +153,6 @@ basalt.debug(aCheckbox:getValue()) -- returns true **args:**-
**returns:** the value
-## isLinked -WIP done but buggy have to look - -## linkTo -WIP done but buggy have to look - ## getHeight/getWidth returns the height or width of that object ````lua