|
|
|
@ -245,7 +245,7 @@ end |
|
|
|
|
|
|
|
|
|
|
|
local Command = Bastion.Command:New('bastion') |
|
|
|
local Command = Bastion.Command:New('bastion') |
|
|
|
|
|
|
|
|
|
|
|
Command:Register('toggle', 'Toggle bastion on/off', function() |
|
|
|
Command:Register('toggle', L["Toggle bastion on/off"], function() |
|
|
|
Bastion.Enabled = not Bastion.Enabled |
|
|
|
Bastion.Enabled = not Bastion.Enabled |
|
|
|
if Bastion.Enabled then |
|
|
|
if Bastion.Enabled then |
|
|
|
Bastion:Print("Enabled") |
|
|
|
Bastion:Print("Enabled") |
|
|
|
@ -254,25 +254,25 @@ Command:Register('toggle', 'Toggle bastion on/off', function() |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
Command:Register('debug', 'Toggle debug mode on/off', function() |
|
|
|
Command:Register('debug', L["Toggle debug mode on/off"], function() |
|
|
|
Bastion.DebugMode = not Bastion.DebugMode |
|
|
|
Bastion.DebugMode = not Bastion.DebugMode |
|
|
|
if Bastion.DebugMode then |
|
|
|
if Bastion.DebugMode then |
|
|
|
Bastion:Print("Debug mode enabled") |
|
|
|
Bastion:Print(L["Debug mode enabled"]) |
|
|
|
else |
|
|
|
else |
|
|
|
Bastion:Print("Debug mode disabled") |
|
|
|
Bastion:Print(L["Debug mode disabled"]) |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
Command:Register('trace', 'Toggle trace mode on/off', function() |
|
|
|
Command:Register('trace', L["Toggle trace mode on/off"], function() |
|
|
|
Bastion.TraceMode = not Bastion.TraceMode |
|
|
|
Bastion.TraceMode = not Bastion.TraceMode |
|
|
|
if Bastion.TraceMode then |
|
|
|
if Bastion.TraceMode then |
|
|
|
Bastion:Print("Trace mode enabled") |
|
|
|
Bastion:Print(L["Trace mode enabled"]) |
|
|
|
else |
|
|
|
else |
|
|
|
Bastion:Print("Trace mode disabled") |
|
|
|
Bastion:Print(L["Trace mode disabled"]) |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
Command:Register('dumpspells', 'Dump spells to a file', function() |
|
|
|
Command:Register('dumpspells', L["Dump spells to a file"], function() |
|
|
|
local i = 1 |
|
|
|
local i = 1 |
|
|
|
local rand = math.random(100000, 999999) |
|
|
|
local rand = math.random(100000, 999999) |
|
|
|
while true do |
|
|
|
while true do |
|
|
|
@ -295,36 +295,36 @@ Command:Register('dumpspells', 'Dump spells to a file', function() |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
Command:Register('module', 'Toggle a module on/off', function(args) |
|
|
|
Command:Register('module', L["Toggle a module on/off"], function(args) |
|
|
|
local module = Bastion:FindModule(args[2]) |
|
|
|
local module = Bastion:FindModule(args[2]) |
|
|
|
if module then |
|
|
|
if module then |
|
|
|
module:Toggle() |
|
|
|
module:Toggle() |
|
|
|
if module.enabled then |
|
|
|
if module.enabled then |
|
|
|
Bastion:Print("Enabled", module.name) |
|
|
|
Bastion:Print(L["Enabled"], module.name) |
|
|
|
else |
|
|
|
else |
|
|
|
Bastion:Print("Disabled", module.name) |
|
|
|
Bastion:Print(L["Disabled"], module.name) |
|
|
|
end |
|
|
|
end |
|
|
|
else |
|
|
|
else |
|
|
|
Bastion:Print("Module not found") |
|
|
|
Bastion:Print(L["Module not found"]) |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
Command:Register('mplus', 'Toggle m+ module on/off', function(args) |
|
|
|
Command:Register('mplus', L["Toggle m+ module on/off"], function(args) |
|
|
|
local cmd = args[2] |
|
|
|
local cmd = args[2] |
|
|
|
if cmd == 'debuffs' then |
|
|
|
if cmd == 'debuffs' then |
|
|
|
Bastion.MythicPlusUtils:ToggleDebuffLogging() |
|
|
|
Bastion.MythicPlusUtils:ToggleDebuffLogging() |
|
|
|
Bastion:Print("Debuff logging", Bastion.MythicPlusUtils.debuffLogging and "enabled" or "disabled") |
|
|
|
Bastion:Print(L["Debuff logging "], Bastion.MythicPlusUtils.debuffLogging and L["Enabled"] or L["Disabled"]) |
|
|
|
return |
|
|
|
return |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if cmd == 'casts' then |
|
|
|
if cmd == 'casts' then |
|
|
|
Bastion.MythicPlusUtils:ToggleCastLogging() |
|
|
|
Bastion.MythicPlusUtils:ToggleCastLogging() |
|
|
|
Bastion:Print("Cast logging", Bastion.MythicPlusUtils.castLogging and "enabled" or "disabled") |
|
|
|
Bastion:Print(L["Cast logging "], Bastion.MythicPlusUtils.castLogging and L["Enabled"] or L["Disabled"]) |
|
|
|
return |
|
|
|
return |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
Bastion:Print("[MythicPlusUtils] Unknown command") |
|
|
|
Bastion:Print(L["[MythicPlusUtils] Unknown command"]) |
|
|
|
Bastion:Print("Available commands:") |
|
|
|
Bastion:Print(L["Available commands:"] ) |
|
|
|
Bastion:Print("debuffs") |
|
|
|
Bastion:Print("debuffs") |
|
|
|
Bastion:Print("casts") |
|
|
|
Bastion:Print("casts") |
|
|
|
end) |
|
|
|
end) |
|
|
|
|