Quote:
|
There is an issues with zork's method:
I tested out something like this: ...to fix the problem with multiple sizes. Using that method, results in fixated widths in relation to its height to guarantee pixelperfekt 45° cropping. (failure) Thx for that link btw, i will check that! |
Quote:
Sry, wrong link there, just woke up T_T |
Quote:
|
Quote:
Code:
-- Usage: Code:
diff --git a/test4.lua b/test4.lua |
SetRadians is broken in Legion. I've reported it but....
|
Quote:
|
The problem I'm ending up with
I'm using the two textures that you mentioned with one of the texture being transparent to make it seem like it's blending in with the other texture. The problem I'm facing with this is that I'm trying to have the first texrture start at 0.14 going clockwise while texture 2 ends at 0.14 going clockwise. But texture 2 will start at 12 0 clock giving it only a little time to fill up so before I even hit 100% it already filled up the texture.
I tried using different values ( percentages ) for power but no matter what I seem to change I end up getting the same result or make it worse. It's the texture I'm using because the way it lines up for it to work the way I want it would have to start and end at 0.14. I tried even doing 50 / 50 on the textures with percentage and that didn't work either. I'm not sure how to get around this one guys. |
Quote:
This is the image that I used in one of my earlier posts to get this effect in-game: If you post the code that you tried and the image texture that you used we can get a better idea of what the problem is and how to fix it. |
This might have changed but I think EvilMaddness is wanting to have a full circle ring but have the start and finish point offset say -40 degrees (or whatever) from top.
|
Hey Fizz!
Yes I'm still working on it. Right now I tried changing the textures around in GIMP.
The first texture is the bottom half with a arc set starting at 0.14 going clockwise being even on the left side going into quadrant 3. The second texture starts on the upper half continuing until it gets to 0.14 or just right before it. Starting in quadrant 3 and ending at quadrant 1. I figured this way I'm not fighting with the 12 o clock position like last time giving myself more room for the values to meet and fill more evenly. Last time I had the upper texture only in quadrant4 giving it little time starting at 12 o clock then filling up clockwise to 0.14 so it was filling up the texture way to quick no matter what values I used. Hopefully the new textures I'm using now will work but I haven't tried it out yet. I'm going to try setting the bottom half to 0.14 going up to 50% then have the other texture start at 50% going up to 100%. If it works I'll do the same for target, update the flash frame and others if in vehicle or other stuff in game to show or hide, then it should be good to go for a new add-on as a full functioning unit frame spinner for player and target for now. I didn't work on the focus frames yet or vehicle that will need to be next after the other spinners are finished. Update: even with the new textures in place it still will show the texture in quadrant 1 before filling up before quadrant 3. This is why a start and end set angle is needed for this code but I don't have the experience for that advanced kinda coding. Even if I do set the texture to be in quadrant 1 the vaule is too little for it to fill correctly with the other texture evenly has it's only filling from 12 o clock to 0.14 |
Link a zip with the code and any custom image files you are using plus, maybe a couple of mock images of the look you are trying to achieve now.
If it's doable, maybe someone with the smarts can figure it out. |
Still trying
No progress yet on updating the code for a start and end angles to it. I think I've been going a good few months at it now.
I tried also using the four textures but it didn't work out for me that well. I guess it might be the angle I'm trying to get. In Weakauras it starts at 42 and ends at 42 for my power texture which is really the only texture I'm trying to set the angle different on along with the power texture for target which I recall is a 46 to 46 angle. I'm hoping that this code can be updated some day so we can finally just add in what angle we want for the texture to start and end at that will take in the value for the progress where ever the angle is at on the new spinner that is created. And I understand. If weakauras already has the code to do that why not just use it? I wanted to share my unit spinners for target and player as a stand alone add-on with the start and end angles already in place so no changes would be made. Plus I don't think it's fare to have weakauras as an only option to have a start and end angle on the spinners. If I was to use the code I would have to add in some sort of licence to use it. Anyways I hope someone like Zork, Semlar or Fizz might be able to make a new code for this to happen if they have any free time for this. I know it's not an easy task and would take a lot of time. I mean I've been trying for a few months and still didn't come close yet. But I havn't gave up on you guys. Sometimes you need good friends around to achieve this. |
All times are GMT -6. The time now is 11:56 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI