Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Dec 29, 2023
1 parent 486f53e commit 6f36aec
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ end

local function renderModulesTabs()
if not RGMercConfig:settingsLoaded() then return end

local tabNames = {}
for name, _ in pairs(RGMercModules:getModuleList()) do
table.insert(tabNames, name)
end

table.sort(tabNames)

for _, name in ipairs(tabNames) do
ImGui.TableNextColumn()
if ImGui.BeginTabItem(name) then
RGMercModules:execModule(name, "Render")
Expand Down Expand Up @@ -116,16 +124,16 @@ local unloadedPlugins = {}

local function RGInit()
RGMercUtils.CheckPlugins({
"MQ2Cast",
"MQ2Rez",
"MQ2AdvPath",
"MQ2MoveUtils",
"MQ2Nav",
"MQ2DanNet",
"MQ2Xassist",
"MQ2SpawnMaster"})

unloadedPlugins = RGMercUtils.UnCheckPlugins({"MQ2Melee"})
"MQ2Cast",
"MQ2Rez",
"MQ2AdvPath",
"MQ2MoveUtils",
"MQ2Nav",
"MQ2DanNet",
"MQ2Xassist",
"MQ2SpawnMaster" })

unloadedPlugins = RGMercUtils.UnCheckPlugins({ "MQ2Melee" })

mq.cmdf("/squelch /rez accept on")
mq.cmdf("/squelch /rez pct 90")
Expand Down

0 comments on commit 6f36aec

Please sign in to comment.