NPC speech with Hunter's pet

View previous topic View next topic Go down

NPC speech with Hunter's pet

Post  zax on Wed Sep 11, 2013 5:08 pm

Hello and thank you so much to make TRP2 live! Smile

I made a little improvement to the "NPC Speech" dialog by addig a button to make my met perform an emote, without loosing may target.

See the following iamge with the fox' icon on the right.



Ad this is the code added in /totalRP2/totalRP2_UI_Interface.xml file :

--------------- ajout 1018 bouton perso pour emote pet
<Button name="TRP2_NPCAnimFramePet">
<Size x="20" y="20"/>
<Anchors><Anchor point="RIGHT" relativeto="TRP2_NPCAnimFrameScrollNomSaisie" relativepoint="LEFT" x="125" y="0"/></Anchors>
<NormalTexture file="Interface\ICONS\Ability_Hunter_Aspectofthefox"/>
<HighlightTexture alphaMode="ADD" file="Interface\BUTTONS\IconBorder-GlowRing"/>
<Scripts>
<OnEnter>
                       --TRP2_RefreshTooltipForFrame(self);
</OnEnter>
<OnLeave>
                       --TRP2_MainTooltip:Hide();
</OnLeave>
<OnClick>
                       local nomPet = UnitName("pet");
                       if (nomPet) then
                           TRP2_AnimPersoShow("Emote");
                           TRP2_NPCAnimFrameScrollNomSaisie:SetText(nomPet);
                       end
</OnClick>
</Scripts>
</Button>
---------------

The tooltips are desactivated because I didn't want to modify lots of file for the corresponding translation.

This code works and this button can be helpful to hunters.
Use this code if you want to in a future update.


/bow
/bye

zax

Posts : 3
Join date : 2013-09-11
Location : France

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum