1414-- Official repository: https://github.com/LightDestory/AzerothCoreAdmin
1515--
1616---- ---------------------------------------------------------------------------------------------------------
17+ -- Generic Command Template
18+ --[[
19+ [COMMAND_NAME_KEY] = {
20+ [GENERICS_isValueNeeded] = false|true,
21+ [GENERICS_isParametersNeeded] = false|true,
22+ [GENERICS_isTargetCheckNeeded] = false|true,
23+ [GENERICS_command] = "command",
24+ [GENERICS_message] = "messageID"
25+ }
26+ ]]
27+ CHAR_genericCommands = {
28+ [GENERICS_parametersGet ] = function ()
29+ return ma_charactertarget :GetText ()
30+ end ,
31+ }
32+ function InitModelFrame ()
33+ ma_modelframe :SetScript (" OnUpdate" , function () MangAdminModelOnUpdate (arg1 ) end )
34+ ma_modelframe .rotation = 0.61 ;
35+ ma_modelframe :SetRotation (ma_modelframe .rotation )
36+ ma_modelframe :SetUnit (" player" )
37+ end
1738
1839function ModelRotateLeft ()
1940 ma_modelframe .rotation = ma_modelframe .rotation - 0.03
@@ -27,12 +48,20 @@ function ModelRotateRight()
2748 PlaySound (" igInventoryRotateCharacter" )
2849end
2950
30- function InitModelFrame ()
31- ma_modelframe :SetScript (" OnUpdate" , function () MangAdminModelOnUpdate (arg1 ) end )
32- ma_modelframe .rotation = 0.61 ;
33- ma_modelframe :SetRotation (ma_modelframe .rotation )
34- ma_modelframe :SetUnit (" player" )
51+ function CharModelZoomIn ()
52+ ma_modelframe :SetCamera (0 )
53+ -- ma_modelframe:SetModelScale(ma_modelframe:GetModelScale() + .1)
54+ -- ma_modelframe:SetPosition(1,ma_modelframe:GetModelScale()*3,0)
55+ -- ma_modelframe:RefreshUnit()
56+ end
3557
58+ function CharModelZoomOut ()
59+ ma_modelframe :SetCamera (1 )
60+ ma_modelframe :RefreshUnit ()
61+ -- ma_modelframe:SetCamera(2)
62+ -- ma_modelframe:SetModelScale(ma_modelframe:GetModelScale() * .5)
63+ -- ma_modelframe:SetPosition(0,0,0)
64+ -- ma_modelframe:RefreshUnit()
3665end
3766
3867function MangAdminModelOnUpdate (elapsedTime )
@@ -382,22 +411,6 @@ function ResetDropDownInitialize()
382411 UIDropDownMenu_SetSelectedValue (ma_resetdropdown , " talents" )
383412end
384413
385- function CharModelZoomIn ()
386- ma_modelframe :SetCamera (0 )
387- -- ma_modelframe:SetModelScale(ma_modelframe:GetModelScale() + .1)
388- -- ma_modelframe:SetPosition(1,ma_modelframe:GetModelScale()*3,0)
389- -- ma_modelframe:RefreshUnit()
390- end
391-
392- function CharModelZoomOut ()
393- ma_modelframe :SetCamera (1 )
394- ma_modelframe :RefreshUnit ()
395- -- ma_modelframe:SetCamera(2)
396- -- ma_modelframe:SetModelScale(ma_modelframe:GetModelScale() * .5)
397- -- ma_modelframe:SetPosition(0,0,0)
398- -- ma_modelframe:RefreshUnit()
399- end
400-
401414function CharBindSight ()
402415 local cname = ma_charactertarget :GetText ()
403416 MangAdmin :ChatMsg (" .bindsight" )
0 commit comments