diff --git a/Basalt/objects/BaseFrame.lua b/Basalt/objects/BaseFrame.lua index b744948..7b438e3 100644 --- a/Basalt/objects/BaseFrame.lua +++ b/Basalt/objects/BaseFrame.lua @@ -174,12 +174,13 @@ return function(name, basalt) setCursor = function(self, _blink, _xCursor, _yCursor, color) local obx, oby = self:getAbsolutePosition() + local xO, yO = self:getOffset() cursorBlink = _blink or false if (_xCursor ~= nil) then - xCursor = obx + _xCursor - 1 + xCursor = obx + _xCursor - 1 - xO end if (_yCursor ~= nil) then - yCursor = oby + _yCursor - 1 + yCursor = oby + _yCursor - 1 - yO end cursorColor = color or cursorColor if (cursorBlink) then diff --git a/Basalt/objects/Frame.lua b/Basalt/objects/Frame.lua index d65c5a0..2b5fa29 100644 --- a/Basalt/objects/Frame.lua +++ b/Basalt/objects/Frame.lua @@ -81,7 +81,8 @@ return function(name, basalt) setCursor = function(self, blink, x, y, color) local obx, oby = self:getPosition() - parent:setCursor(blink or false, (x or 0)+obx-1, (y or 0)+oby-1, color or colors.white) + local xO, yO = self:getOffset() + parent:setCursor(blink or false, (x or 0)+obx-1 - xO, (y or 0)+oby-1 - yO, color or colors.white) return self end, } diff --git a/Basalt/objects/Input.lua b/Basalt/objects/Input.lua index a056105..5eb239e 100644 --- a/Basalt/objects/Input.lua +++ b/Basalt/objects/Input.lua @@ -17,7 +17,7 @@ return function(name, basalt) local defaultText = "" local defaultBGCol = colors.black - local defaultFGCol = colors.white + local defaultFGCol = colors.lightGray local showingText = defaultText local internalValueChange = false