Wanting to add an interface to the OutAssist and was wondering if anyone could share some insights into how checkbox is handled?
Currently I use the below code and it works for toggling ReturnToCamp variable true and false, but it will set the variable on every redraw.. Is that the right way to do it?
Would like to add a print(String.format("Return to camp set to: %s", returnToCamp)), but in the below code it will just spam the console window.
Currently I use the below code and it works for toggling ReturnToCamp variable true and false, but it will set the variable on every redraw.. Is that the right way to do it?
Would like to add a print(String.format("Return to camp set to: %s", returnToCamp)), but in the below code it will just spam the console window.
Lua:
chkReturnToCamp = ImGui.Checkbox('Return to camp after combat',chkReturnToCamp)
ImGui.SameLine()
HelpMarker(string.format('Returning to camp will use mq2nav to navigate back to where the script was first executed. \n X:%s Y:%s Z:%s ',cordX, cordY, cordZ ))
if chkReturnToCamp then
returnToCamp = true
else
returnToCamp = false
end

