How to create circular action buttons ?
2 Attachment(s)
Hi everyone
Not having found an answer despite my Google searches, I come here to ask it here Here is my current interface, and I would like to know how to change the current action buttons that are square by round action buttons, I would like to apply the following appearance to them Code:
Interface\Artifacts\Artifacts-PerkRing-Final-Mask If someone knows how to help me, I thank him or her. :) |
Install Masque and either use a premade circular skin or create your own using your custom textures.
|
You would use two texture objects. For the ability icon, use SetPortraitToTexture() to convert it to a circular image. Then you put the artifact border in a separate texture over the ability image.
|
Quote:
I also preferred a lua code to introduce in my addon, which is certainly, very rudimentary. Quote:
So I don't know how to correctly use the command to carry out the manipulation to realize my request I just did a test just now but it made me a mistake lua in play, I guess Code:
SetPortraitToTexture("ActionButton1", "Interface\Artifacts\Artifacts-PerkRing-Final-Mask"); Code:
Message: Interface\AddOns\AddOns\Actionbar.lua:3: SetPortraitToTexture(): Couldn't find texture named 'ActionButton1' And this entry on the other hand does not cause any result in the game, the button remained square. Code:
SetPortraitToTexture("ActionButton1NormalTexture", "Interface\Artifacts\Artifacts-PerkRing-Final-Mask"); |
This simple block of code almost gets it working ..
It is not a button that does anything other than display an icon and border ring. You would have to add any other functionality you want, or work it into a button based off of a template. All this does is create the minimum to get the result you want. Lua Code:
You would have to create a simple addon to add this code into. It would only need a toc file and the lua file with the above code in. The below link should help you get that part started. I've heard of a site out there somewhere that creates an addon out of a block of code but I have never used it so do not know what the site is myself. Assuming you are interesting in learning how to create at least simple addons then this may be a good starting point https://wow.gamepedia.com/Getting_st...writing_addons |
All times are GMT -6. The time now is 02:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI