Skip to content

Commit

Permalink
Minor ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 7, 2024
1 parent 7114c75 commit 32b2685
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '167eda8 2024-01-06' }
return { commitId = '7114c75 2024-01-06' }
4 changes: 2 additions & 2 deletions modules/movement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ function Module:GiveTime(combat_state)
mq.delay("3s", function() return mq.TLO.Navigation.Active() end)

if not Nav.Active() and chaseSpawn.Distance() > self.settings.ChaseDistance then
RGMercsLogger.log_verbose("\awNOTICE:\ax Nav might have failed going to try to moveto.")
mq.cmdf("/squelch /moveto id %d uw mdist %d", chaseSpawn.ID(), self.settings.ChaseDistance)
RGMercsLogger.log_verbose("\awNOTICE:\ax Nav might have failed.")
--mq.cmdf("/squelch /moveto id %d uw mdist %d", chaseSpawn.ID(), self.settings.ChaseDistance)
end
else
-- Assuming no line of site problems.
Expand Down
13 changes: 7 additions & 6 deletions modules/pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ function Module:Render()
end
ImGui.PopStyleColor()

if mq.TLO.Target() and mq.TLO.Target.Type() == "NPC" then
ImGui.SameLine()
if ImGui.Button("Pull Target " .. ICONS.FA_BULLSEYE, ImGui.GetWindowWidth() * .3, 25) then
self.TempSettings.TargetSpawnID = mq.TLO.Target.ID()
end
end

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 Expand Up @@ -273,12 +280,6 @@ function Module:Render()
ImGui.EndTable()
end

if mq.TLO.Target() and mq.TLO.Target.Type() == "NPC" then
if ImGui.SmallButton("Pull Target") then
self.TempSettings.TargetSpawnID = mq.TLO.Target.ID()
end
end

ImGui.NewLine()
ImGui.Separator()
ImGui.Text("Note: Allow List will supersede Deny List")
Expand Down

0 comments on commit 32b2685

Please sign in to comment.