From 0086229e383acc0f2a0d7930e80f7aa6d6dc3af4 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Mon, 8 May 2023 17:37:46 +0200 Subject: [PATCH] Update ignoreOffset.md --- docs/objects/VisualObject/ignoreOffset.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/objects/VisualObject/ignoreOffset.md b/docs/objects/VisualObject/ignoreOffset.md index 448e34c..280a155 100644 --- a/docs/objects/VisualObject/ignoreOffset.md +++ b/docs/objects/VisualObject/ignoreOffset.md @@ -2,7 +2,7 @@ ### 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`. +Sets whether the object should ignore the offset of its parent frame. If set to `true`, the object's position will be absolute. By default, this value is set to `false`. ### Parameters @@ -19,7 +19,7 @@ Sets whether the object should ignore the offset of its parent frame. If set to ```lua local basalt = require("basalt") -local mainFrame = basalt.createFrame():setPosition(5, 5) +local mainFrame = basalt.createFrame():setOffset(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,