Skip to content

Commit

Permalink
feat:
Browse files Browse the repository at this point in the history
added a reset defaults button. to reset any scaling and theme changes made.
  • Loading branch information
grimmier378 committed Apr 9, 2024
1 parent 5eba875 commit 58bbf15
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions init.lua
Expand Up @@ -370,6 +370,20 @@ local function PlayerTargConf_GUI(open)
end

flashBorder = ImGui.Checkbox('Flash Border', flashBorder)
ImGui.SameLine()
if ImGui.Button('Reset Defaults##'..script) then
settings = dofile(configFile)
flashBorder = false
progressSize = 10
ZoomLvl = 1
iconSize = 26
themeName = 'Default'
settings[script].FlashBorder = flashBorder
settings[script].ProgressSize = progressSize
settings[script].Scale = ZoomLvl
settings[script].IconSize = iconSize
settings[script].LoadTheme = themeName
end

ImGui.SeparatorText("Save and Close##"..script)
if ImGui.Button('Save and Close##'..script) then
Expand Down

0 comments on commit 58bbf15

Please sign in to comment.