diff options
| author | jussi | 2024-10-02 14:14:23 +0300 |
|---|---|---|
| committer | jussi | 2024-10-02 14:14:23 +0300 |
| commit | ab995f345387b306735ecfbda84dbc019f1053bb (patch) | |
| tree | f7a98c035cdd03c271c2887b50a3dadff5c136b6 /examples/resources | |
| parent | 02c7dd9ca80e522b987ebce34143f2eef1b95b64 (diff) | |
| download | reilua-enhanced-ab995f345387b306735ecfbda84dbc019f1053bb.tar.gz reilua-enhanced-ab995f345387b306735ecfbda84dbc019f1053bb.tar.bz2 reilua-enhanced-ab995f345387b306735ecfbda84dbc019f1053bb.zip | |
Raygui hotfix.
Diffstat (limited to 'examples/resources')
| -rw-r--r-- | examples/resources/lib/raygui.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/resources/lib/raygui.lua b/examples/resources/lib/raygui.lua index 066bd37..dd65512 100644 --- a/examples/resources/lib/raygui.lua +++ b/examples/resources/lib/raygui.lua @@ -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 |
