- New Objects (Flexbox, Graph, Treeview) - Pluginsystem to add/remove functionality - Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject - Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox - Removed the Animation Object, and added a animation plugin instead - Removed the Graphic Object and merged it's functionality with the image object - Updated currently existing objects
774 B
774 B
ignoreOffset
Description
Sets whether the object should ignore the offset of its parent frame. If set to true, the object's position will be absolute on the screen, disregarding any parent offset. By default, this value is set to false.
Parameters
booleanignore offset
Returns
objectThe object in use
Usage
- Creates a frame with an offset and a button that ignores the offset
local basalt = require("basalt")
local mainFrame = basalt.createFrame():setPosition(5, 5)
local aButton = mainFrame:addButton():setSize(8, 1):setPosition(2, 2):ignoreOffset(true)
-- The button will be displayed at position (2,2) on the screen,
-- ignoring the frame's offset of (5,5)
<button x="2" y="2" ignoreOffset="true" />