Skip to content

Commit 1458f69

Browse files
committed
feat: Add catalogue icon
1 parent 9beb0f4 commit 1458f69

4 files changed

Lines changed: 83 additions & 5 deletions

File tree

Commands/Commands_Char.lua

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,80 @@
2626
]]
2727
CHAR_genericCommands = {
2828
[GENERICS_parametersGet] = function()
29-
return ma_charactertarget:GetText()
29+
return CHAR_parameterInput:GetText()
3030
end,
31+
[CHAR_reviveCommand] = {
32+
[GENERICS_isTargetCheckNeeded] = true,
33+
[GENERICS_command] = ".revive",
34+
[GENERICS_message] = "logCHAR_revive"
35+
},
36+
[CHAR_saveCommand] = {
37+
[GENERICS_isTargetCheckNeeded] = true,
38+
[GENERICS_command] = ".save",
39+
[GENERICS_message] = "logCHAR_save"
40+
},
41+
[CHAR_kickCommand] = {
42+
[GENERICS_isTargetCheckNeeded] = true,
43+
[GENERICS_command] = ".kick",
44+
[GENERICS_message] = "logCHAR_kick"
45+
},
46+
[CHAR_cooldownCommand] = {
47+
[GENERICS_isTargetCheckNeeded] = true,
48+
[GENERICS_command] = ".cooldown",
49+
[GENERICS_message] = "logCHAR_cooldown"
50+
},
51+
[CHAR_GUIDCommand] = {
52+
[GENERICS_isTargetCheckNeeded] = true,
53+
[GENERICS_command] = ".guid",
54+
[GENERICS_message] = "logCHAR_guid"
55+
},
56+
[CHAR_playerInfoCommand] = {
57+
[GENERICS_isTargetCheckNeeded] = true,
58+
[GENERICS_command] = ".pinfo",
59+
[GENERICS_message] = "logCHAR_playerInfo"
60+
},
61+
[CHAR_distanceCommand] = {
62+
[GENERICS_isTargetCheckNeeded] = true,
63+
[GENERICS_command] = ".distance",
64+
[GENERICS_message] = "logCHAR_distance"
65+
},
66+
[CHAR_dieCommand] = {
67+
[GENERICS_isTargetCheckNeeded] = true,
68+
[GENERICS_command] = ".die",
69+
[GENERICS_message] = "logCHAR_die"
70+
},
71+
[CHAR_recallCommand] = {
72+
[GENERICS_isTargetCheckNeeded] = true,
73+
[GENERICS_command] = ".recall",
74+
[GENERICS_message] = "logCHAR_recall"
75+
},
76+
[CHAR_morphCommand] = {
77+
[GENERICS_isParametersNeeded] = true,
78+
[GENERICS_isTargetCheckNeeded] = true,
79+
[GENERICS_command] = ".morph target ",
80+
[GENERICS_message] = "logCHAR_morph"
81+
},
82+
[CHAR_morphResetCommand] = {
83+
[GENERICS_isTargetCheckNeeded] = true,
84+
[GENERICS_command] = ".morph reset",
85+
[GENERICS_message] = "logCHAR_morphReset"
86+
},
87+
[CHAR_gpsCommand] = {
88+
[GENERICS_isTargetCheckNeeded] = true,
89+
[GENERICS_command] = ".gps",
90+
[GENERICS_message] = "logCHAR_gps"
91+
},
92+
[CHAR_bindSightCommand] = {
93+
[GENERICS_isTargetCheckNeeded] = true,
94+
[GENERICS_command] = ".bindsight",
95+
[GENERICS_message] = "logCHAR_bindSight"
96+
},
97+
[CHAR_unbindSightCommand] = {
98+
[GENERICS_command] = ".unbindsight",
99+
[GENERICS_message] = "logCHAR_unBindSight"
100+
}
31101
}
102+
32103
function InitModelFrame()
33104
ma_modelframe:SetScript("OnUpdate", function() MangAdminModelOnUpdate(arg1) end)
34105
ma_modelframe.rotation = 0.61;
@@ -90,6 +161,9 @@ function ModelChanged()
90161
ma_modelframe:RefreshUnit()
91162
end
92163

164+
165+
-- Delete
166+
93167
function RevivePlayer()
94168
if MangAdmin:Selection("player") or MangAdmin:Selection("self") or MangAdmin:Selection("none") then
95169
local player = UnitName("target") or UnitName("player")
@@ -175,6 +249,8 @@ function Demorph()
175249
MangAdmin:LogAction("Demorphed player "..player..".")
176250
end
177251

252+
--
253+
178254
function ToggleMapsChar(value)
179255
MangAdmin:ChatMsg(".cheat explore "..value)
180256
if value == 1 then

Commands/declarations/command_keys.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ CHAR_dieCommand = "die"
6767
CHAR_recallCommand = "recall"
6868
CHAR_morphCommand = "morph"
6969
CHAR_morphResetCommand = "morphReset"
70+
CHAR_gpsCommand = "gps"
71+
CHAR_bindSightCommand = "bindSight"
72+
CHAR_unbindSightCommand = "unbindSight"
7073

Locales/enUS.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,10 @@ function Return_enUS()
271271
["logGM_setSpeed"] = "'s speed has been set to ",
272272
["logGM_setScale"] = "'s scale has been set to ",
273273
["logGM_gridNavigator"] = "Teleported to the following grid-coordinates X: _V1_ and Y: _V2_",
274-
--[[Char Tab]]
275-
--[[Name]]
274+
--[[CHAR-Name]]
276275
["tabmenu_Char"] = "CHAR",
277276
["tt_CharButton"] = "Toggle a window with character-specific actions.",
278-
--[[Tooltips]]
277+
--[[CHAR-Tooltips]]
279278
["tt_RotateLeft"] = "Rotate left.",
280279
["tt_RotateRight"] = "Rotate right.",
281280
["tt_killbutton"] = "Kills selected creature/player",
@@ -341,7 +340,7 @@ function Return_enUS()
341340
["tt_ShowAreaButton"] = "Shows #areaid to **selected** player.",
342341
["tt_HonorAddButton"] = "Adds #honorpoints to **selected** player.",
343342
["tt_HonorUpdateButton"] = "No parameter required. Saves Honor for **selected** player.",
344-
--[[Control Labels]]
343+
--[[CHAR-Control-Labels]]
345344
["ma_ShowMapsButton"] = "Show Maps",
346345
["ma_HideMapsButton"] = "Hide Maps",
347346
["ma_KillButton"] = "Kill",

icon.png

16.6 KB
Loading

0 commit comments

Comments
 (0)