Skip to content

Commit

Permalink
main pull button.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 4, 2024
1 parent 1a7aedf commit 62246e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions modules/pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ function Module:Render()
local pressed

if self.ModuleLoaded then
if self.settings.DoPull then
ImGui.PushStyleColor(ImGuiCol.Button, 0.5, 0.02, 0.02, 1)
else
ImGui.PushStyleColor(ImGuiCol.Button, 0.02, 0.5, 0.0, 1)
end

if ImGui.Button(self.settings.DoPull and "Stop Pulls" or "Start Pulls", ImGui.GetWindowWidth() * .3, 25) then
self.settings.DoPull = not self.settings.DoPull
self:SaveSettings(true)
end
ImGui.PopStyleColor()

self.settings.PullMode, pressed = ImGui.Combo("Pull Mode", self.settings.PullMode, self.Constants.PullModes, #self.Constants.PullModes)
if pressed then
self:SaveSettings(true)
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '716bec3 2024-01-04' }
return { commitId = '1a7aedf 2024-01-04' }

0 comments on commit 62246e1

Please sign in to comment.