Merge pull request #1 from chenjr0719/feat/add_ui_options

feat: Add UI options to REFramework
This commit is contained in:
GreenComfyTea
2022-01-18 20:38:40 +02:00
committed by GitHub

View File

@@ -331,6 +331,10 @@ re.on_draw_ui(function()
if string.len(status) > 0 then if string.len(status) > 0 then
imgui.text("[monster_has_hp_bar.lua] Status: " .. status); imgui.text("[monster_has_hp_bar.lua] Status: " .. status);
end end
_, monster_UI.enabled = imgui.checkbox("Enable monster health UI", monster_UI.enabled)
_, time_UI.enabled = imgui.checkbox("Enable quest time UI", time_UI.enabled)
_, damage_meter_UI.enabled = imgui.checkbox("Enable damage dealt UI", damage_meter_UI.enabled)
end); end);
re.on_frame(function() re.on_frame(function()