Raygui hotfix.

This commit is contained in:
jussi
2024-10-02 14:14:23 +03:00
parent 02c7dd9ca8
commit ab995f3453

View File

@@ -1819,6 +1819,8 @@ end
function Raygui:draw()
if self.locked then
RL.GuiLock()
else
RL.GuiUnlock()
end
if self.disabled then
RL.GuiDisable()
@@ -1826,7 +1828,7 @@ function Raygui:draw()
RL.GuiEnable()
end
-- Drawing is done from back to front so we want to lock the ui on begin.
if not self.textEdit then
if not self.textEdit and not RL.GuiGetSliderDragging() then
RL.GuiLock()
end