Jump to content
Sign in to follow this  
Cruzix

Looking for help to get large healthbars for modUI

Recommended Posts

I'm giving away 1000 gold on Anathema Horde for whoever can make this happen. (If allowed ofc - we'll contact a GM before trading)

I need help to make modUI's healthbars look like it does in the image below:
pY8tHP4.png

I could just use UFI + ModUI (Since UFI is compatible with modUI) but the large healthbars is the only reason why I would use UFI which in my opinion is a bit overkill to get an additional addon for, because increases my addon memory/loading screen duration (Which im currently trying to limit) and increase the chance of other addon conflicts.
Besides I don't think this is a very hard thing to do for someone with lua knowledge since its just about copy pasting code from UFI into modUI - but if you know a better way of doing it, then ofc go ahead and do that if u want to :p

Link to UFI: https://github.com/Ko0z/UnitFramesImproved_Vanilla
Link to modUI: https://github.com/obble/modui

 

Here's what I've tried so far:
1. copy paste https://github.com/Ko0z/UnitFramesImproved_Vanilla/blob/master/UnitFramesImproved_Vanilla.lua#L113-L120  into modui/unitframe/unit.lua
2. rename line 120's path to this "PlayerFrameTexture:SetTexture("Interface\\Addons\\modui\\skin\\method\\texture\\UI-TargetingFrame");"
3. copy paste the texture to that path
4. copy paste https://github.com/Ko0z/UnitFramesImproved_Vanilla/blob/master/UnitFramesImproved_Vanilla.lua#L168-L181 into modui/unitframe/unit.lua

And now it looks like this:
6zQdg7L.png

It's not showing class color healthbar and the dividing line between health text and name is still there.
Also the name background for player frame is still there which can be seen when I loose health:
c1S34zw.png

 


Here's proof that I have enough gold to give away to the guy who makes this happen:
nl8edOa.png

Edited by Cruzix
updated progress

Share this post


Link to post
Share on other sites

If you really exactly copied that code you linked it can't work because those textures are shipped with unitframesimproved. you have to copy them to the modui directory and change the paths to match the new directory name.

Share this post


Link to post
Share on other sites
2 hours ago, shirsig said:

If you really exactly copied that code you linked it can't work because those textures are shipped with unitframesimproved. you have to copy them to the modui directory and change the paths to match the new directory name.

To be more specific here's what I've tried so far:

1. copy paste https://github.com/Ko0z/UnitFramesImproved_Vanilla/blob/master/UnitFramesImproved_Vanilla.lua#L113-L120  into modui/unitframe/unit.lua
2. rename line 120's path to this "PlayerFrameTexture:SetTexture("Interface\\Addons\\modui\\skin\\method\\texture\\UI-TargetingFrame");"
3. copy paste the texture to that path
4. copy paste https://github.com/Ko0z/UnitFramesImproved_Vanilla/blob/master/UnitFramesImproved_Vanilla.lua#L168-L181 into modui/unitframe/unit.lua

And now it looks like this:

 6zQdg7L.png

It's not showing class color healthbar and the dividing line between health text and name is still there.
Also the name background for player frame is still there which can be seen when I loose health:
c1S34zw.png

Edited by Cruzix

Share this post


Link to post
Share on other sites

I will upload something later when I have more time. Don't worry about the gold.

Edited by gashole

Share this post


Link to post
Share on other sites
8 hours ago, gashole said:

Thank you so much for this!! Tested it for about 20 min now and it seems to be working perfectly 

One last thing though. Do you know if it's possible to copy paste this code into modUI's files and make it work that way? If yes, would you mind providing a step by step "guide" on how to do it whenever you get time?

Quote

Don't worry about the gold.

If you play on Anathema I will be more than happy to give it to you, as I'm no longer gonna be playing there and will not be playing there in the future :)

Share this post


Link to post
Share on other sites
16 hours ago, Cruzix said:

One last thing though. Do you know if it's possible to copy paste this code into modUI's files and make it work that way? If yes, would you mind providing a step by step "guide" on how to do it whenever you get time?

I doubt moving everything into modui is going to improve loading time — it still needs to be loaded. Keep in mind that modui has many AddOns inside. These are called 'elements' and modui-UnitFramesImproved was designed to be a custom one. The only difference is the .toc file makes it an AddOn, which also means no extra code is required to enable/disable it.

Anyway, if you want to load it like other elements:

from the AddOns folder

  1. remove modui-UnitFramesImproved/modui-UnitFramesImproved.toc
  2. open modui/modui.toc and add this to be bottom:
..\modui-UnitFramesImproved\core.lua

 

16 hours ago, Cruzix said:

If you play on Anathema I will be more than happy to give it to you, as I'm no longer gonna be playing there and will not be playing there in the future :)

Sure, my character name is Cochise.

Share this post


Link to post
Share on other sites
5 hours ago, gashole said:

I doubt moving everything into modui is going to improve loading time — it still needs to be loaded. Keep in mind that modui has many AddOns inside. These are called 'elements' and modui-UnitFramesImproved was designed to be a custom one. The only difference is the .toc file makes it an AddOn, which also means no extra code is required to enable/disable it.

Anyway, if you want to load it like other elements:

from the AddOns folder

  1. remove modui-UnitFramesImproved/modui-UnitFramesImproved.toc
  2. open modui/modui.toc and add this to be bottom:

..\modui-UnitFramesImproved\core.lua

 

I was more thinking of a way to copy paste your addons lua code into modUI's lua code (and also where to copy paste it) so it could potentially become a toggle feature for modUI itself - if @modernist would be interested in that now that you've made the code. 

 

Quote

Sure, my character name is Cochise.

Aight, I will send it today then :)

Edited by Cruzix

Share this post


Link to post
Share on other sites

Renamed AddOn to modui-TallHealthBar

https://github.com/gashole/modui-TallHealthBar

10 hours ago, Cruzix said:

I was more thinking of a way to copy paste your addons lua code into modUI's lua code (and also where to copy paste it) so it could potentially become a toggle feature for modUI itself - if @modernist would be interested in that now that you've made the code. 

Ah, submit an enhancement request on the modui issue tracker and link the AddOn. The hardest part isn't adding the feature; it's finding a place to put the toggle on the modui options window.

Share this post


Link to post
Share on other sites
On 2/3/2017 at 5:03 AM, gashole said:

Sure, my character name is Cochise.

There you go, the gold is sent now :)
WPhsWT2.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×