Skip to content

Commit dce589c

Browse files
committed
feat(startFrame): Replace Hover-mode with God-Mode
1 parent 31db10e commit dce589c

4 files changed

Lines changed: 13 additions & 25 deletions

File tree

Commands/Commands_Main.lua

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,9 @@ function ToggleFlyMode(value)
3838
end]]
3939
end
4040

41-
function ToggleHoverMode(value)
42-
MangAdmin:ChatMsg("hover command not used "..value) --TODO: Change to another function.
43-
local status
44-
if value == 1 then
45-
status = "on"
46-
else
47-
status = "off"
48-
end
49-
MangAdmin:LogAction("Hover mode not an option "..status..".")
41+
function ToggleGodMode(value)
42+
MangAdmin:ChatMsg(".cheat god "..value)
43+
MangAdmin:LogAction("Turned God-mode to "..value..".")
5044
end
5145

5246
function ToggleWhisper(value)
@@ -86,12 +80,6 @@ function ToggleMaps(value)
8680
end
8781
end
8882

89-
function KillSomething()
90-
local target = UnitName("target") or UnitName("player")
91-
MangAdmin:ChatMsg(".die")
92-
MangAdmin:LogAction("Killed "..target..".")
93-
end
94-
9583
function InstantKill()
9684
MangAdmin.db.char.instantKillMode = ma_instantkillbutton:GetChecked()
9785
end

Frames/MangFrames_SectionMain.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ function MangAdmin:CreateMainSection()
135135
})
136136

137137
FrameLib:BuildButton({
138-
name = "ma_hoveronbutton",
138+
name = "ma_godonbutton",
139139
group = "main",
140140
parent = ma_midframe,
141141
texture = {
142-
name = "ma_hoveronbutton_texture",
142+
name = "ma_godonbutton_texture",
143143
color = {color.btn.r, color.btn.g, color.btn.b, transparency.btn}
144144
},
145145
size = {
@@ -151,15 +151,15 @@ function MangAdmin:CreateMainSection()
151151
offX = 10,
152152
offY = -70
153153
},
154-
text = Locale["ma_HoverOnButton"]
154+
text = Locale["ma_GodOnButton"]
155155
})
156156

157157
FrameLib:BuildButton({
158-
name = "ma_hoveroffbutton",
158+
name = "ma_godoffbutton",
159159
group = "main",
160160
parent = ma_midframe,
161161
texture = {
162-
name = "ma_hoveroffbutton_texture",
162+
name = "ma_godoffbutton_texture",
163163
color = {color.btn.r, color.btn.g, color.btn.b, transparency.btn}
164164
},
165165
size = {

FunctionInit.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function InitControls()
2626
MangAdmin:PrepareScript(ma_gmoffbutton , Locale["tt_GMOffButton"] , function() ToggleGMMode("off") end)
2727
MangAdmin:PrepareScript(ma_flyonbutton , Locale["tt_FlyOnButton"] , function() ToggleFlyMode("on") end)
2828
MangAdmin:PrepareScript(ma_flyoffbutton , Locale["tt_FlyOffButton"] , function() ToggleFlyMode("off") end)
29-
MangAdmin:PrepareScript(ma_hoveronbutton , Locale["tt_HoverOnButton"] , function() ToggleHoverMode(1) end)
30-
MangAdmin:PrepareScript(ma_hoveroffbutton , Locale["tt_HoverOffButton"] , function() ToggleHoverMode(0) end)
29+
MangAdmin:PrepareScript(ma_godonbutton , Locale["tt_GodOnButton"] , function() ToggleGodMode("on") end)
30+
MangAdmin:PrepareScript(ma_godoffbutton , Locale["tt_GodOffButton"] , function() ToggleGodMode("off") end)
3131
MangAdmin:PrepareScript(ma_whisperonbutton , Locale["tt_WhispOnButton"] , function() ToggleWhisper("on") end)
3232
MangAdmin:PrepareScript(ma_whisperoffbutton , Locale["tt_WhispOffButton"] , function() ToggleWhisper("off") end)
3333
MangAdmin:PrepareScript(ma_invisibleonbutton , Locale["tt_InvisOnButton"] , function() ToggleVisible("off") end)

Locales/enUS.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ function Return_enUS()
9494
["tt_GMOffButton"] = "Deactivate your GM-mode.",
9595
["tt_FlyOnButton"] = "Activate the Fly-mode for the selected character.",
9696
["tt_FlyOffButton"] = "Deactivate the Fly-mode for the selected character.",
97-
["tt_HoverOnButton"] = "Activate your Hover-mode.",
98-
["tt_HoverOffButton"] = "Deactivate your Hover-mode.",
97+
["tt_GodOnButton"] = "Activate your God-mode.",
98+
["tt_GodOffButton"] = "Deactivate your God-mode.",
9999
["tt_WhispOnButton"] = "Accept whispers from other players.",
100100
["tt_WhispOffButton"] = "Do not accept whispers from other players.",
101101
["tt_InvisOnButton"] = "Make you invisible.",
@@ -156,7 +156,7 @@ function Return_enUS()
156156
["ma_displaylevelbutton"] = "Display Account Level",
157157
["ma_GMOnButton"] = "GM-mode on",
158158
["ma_FlyOnButton"] = "Fly-mode on",
159-
["ma_HoverOnButton"] = "Hover-mode on",
159+
["ma_GodOnButton"] = "God-mode on",
160160
["ma_WhisperOnButton"] = "Whisper on",
161161
["ma_InvisOnButton"] = "Invisibility on",
162162
["ma_TaxiOnButton"] = "Taxicheat on",

0 commit comments

Comments
 (0)