Skip to content

Commit b0a0cb8

Browse files
committed
feat(startFrame): Replace Pet TP with Pet Talents
1 parent 06f3328 commit b0a0cb8

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

Commands/Commands_Main.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,9 @@ function PetUnLearn()
228228
MangAdmin:LogAction("Un-taught pet spell "..param)
229229
end
230230

231-
function PetTP()
232-
local param = ma_parameter:GetText()
233-
MangAdmin:ChatMsg(".pet tp "..param)
234-
MangAdmin:LogAction("Modified pet training points by "..param)
231+
function PetTalentsLearn()
232+
MangAdmin:ChatMsg(".learn all my pettalents")
233+
MangAdmin:LogAction("Your pet is a genius (learnt all talents)")
235234
end
236235

237236
function LookupTaxi()

Frames/MangFrames_SectionMain.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,11 @@ function MangAdmin:CreateMainSection()
872872
})
873873

874874
FrameLib:BuildButton({
875-
name = "ma_pettpbutton",
875+
name = "ma_pettalentslearnbutton",
876876
group = "main",
877877
parent = ma_midframe,
878878
texture = {
879-
name = "ma_pettpbutton_texture",
879+
name = "ma_pettalentslearnbutton_texture",
880880
color = {color.btn.r, color.btn.g, color.btn.b, transparency.btn}
881881
},
882882
size = {
@@ -888,7 +888,7 @@ function MangAdmin:CreateMainSection()
888888
offX = 578,
889889
offY = -119
890890
},
891-
text = Locale["ma_pettp"]
891+
text = Locale["ma_pettalentslearn"]
892892
})
893893

894894
FrameLib:BuildButton({

FunctionInit.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function InitControls()
6060
MangAdmin:PrepareScript(ma_petcreatebutton , Locale["tt_petcreatebutton"] , function() PetCreate() end)
6161
MangAdmin:PrepareScript(ma_petlearnbutton , Locale["tt_petlearnbutton"] , function() PetLearn() end)
6262
MangAdmin:PrepareScript(ma_petunlearnbutton , Locale["tt_petunlearnbutton"] , function() PetUnLearn() end)
63-
MangAdmin:PrepareScript(ma_pettpbutton , Locale["tt_pettpbutton"] , function() PetTP() end)
63+
MangAdmin:PrepareScript(ma_pettalentslearnbutton , Locale["tt_pettalentslearnbutton"] , function() PetTalentsLearn() end)
6464
MangAdmin:PrepareScript(ma_lookuptaxibutton , Locale["tt_lookuptaxibutton"] , function() LookupTaxi() end)
6565
MangAdmin:PrepareScript(ma_gotaxinodebutton , Locale["tt_gotaxinodebutton"] , function() GoTaxiNode() end)
6666
MangAdmin:PrepareScript(ma_gotriggerbutton , Locale["tt_gotriggerbutton"] , function() GoTrigger() end)

Locales/enUS.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function Return_enUS()
132132
["tt_petcreatebutton"] = "Makes the selected ANIMAL your pet.",
133133
["tt_petlearnbutton"] = "Teaches your pet spell [[Parameter: #SPELLID]]",
134134
["tt_petunlearnbutton"] = "Un-Teaches your pet spell [[Parameter: #SPELLID]]",
135-
["tt_pettpbutton"] = "Modifies pet's training points [[Parameter: #points]]",
135+
["tt_pettalentslearnbutton"] = "Learn all the talents for your pet for its creature type",
136136
["tt_lookuptaxibutton"] = "Lookup a TaxiNode [[Parameter: $Areanamepart]]",
137137
["tt_gotaxinodebutton"] = "Teleports to given TaxiNode [[Parameter: #taxinode]]",
138138
["tt_gotriggerbutton"] = "Teleports to given area trigger [[Parameter: #trigger_id]]",
@@ -185,7 +185,7 @@ function Return_enUS()
185185
["ma_petcreate"] = "Pet Create",
186186
["ma_petlearn"] = "Pet Learn",
187187
["ma_petunlearn"] = "Pet UnLearn",
188-
["ma_pettp"] = "Pet TP",
188+
["ma_pettalentslearn"] = "Pet Talents",
189189
["ma_lookuptaxi"] = "Lookup Taxi",
190190
["ma_gotaxinode"] = "Go TaxiNode",
191191
["ma_gotrigger"] = "Go Trigger",

0 commit comments

Comments
 (0)