Raygui hotfix.
This commit is contained in:
@@ -1819,6 +1819,8 @@ end
|
|||||||
function Raygui:draw()
|
function Raygui:draw()
|
||||||
if self.locked then
|
if self.locked then
|
||||||
RL.GuiLock()
|
RL.GuiLock()
|
||||||
|
else
|
||||||
|
RL.GuiUnlock()
|
||||||
end
|
end
|
||||||
if self.disabled then
|
if self.disabled then
|
||||||
RL.GuiDisable()
|
RL.GuiDisable()
|
||||||
@@ -1826,7 +1828,7 @@ function Raygui:draw()
|
|||||||
RL.GuiEnable()
|
RL.GuiEnable()
|
||||||
end
|
end
|
||||||
-- Drawing is done from back to front so we want to lock the ui on begin.
|
-- 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()
|
RL.GuiLock()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user