Makes health and mana text always visible, instead of only when mouse is over the bar.
Install: unzip into Demigod's mod directory.
eg. 'C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods' or 'My Documents\My Games\Gas Powered Games\Demigod\mods' (edit: My Documents doesn't work)
Download: http://www.mediafire.com/?4iigxtmmom1
If you find any problems or conflicts please let me know.
Nice
is it possible to use this mod in multiplayer when the other players dont have it?
Yes, it's an UI only mod.
Sexy
Very sexy
Thank you!!
Great mod, installed works flawlessly. Now I just have to get used to having the appropriate information without rollover the bars.
You're a lifesaver, literally.
Great mod, simple but sooooo needed
I have a minor bug report. With this mod enabled, when watching replays, I can see some "residual" UI panel of the mana bar when I'm in Observer mode.
Maybe I'm dumb or something but I put the folder out of the zip file into the mods folder. I have other mods that work when I enable them but when I enable this one I don't see the hps or mana over people all the time. Is there an activation key or something? I cycled through with ~ but still didn't work. Most likely I've done something wrong. Thanks
Ah so I am dumb, thanks.
Bumping - noticed that this mod breaks observer mode in replays. Any modder out there with a few minutes that can take a look at how to fix that? Thanks!
Sorian has alt version of this mod that includes quite a bit more code, but requires a mouse click to make the HP/mana text show... but his version doesn't break observer mode.
Here's the code from this mod, though:
Sorian has alt version of this mod that includes quite a bit more code, but requires a mouse click to make the HP/mana text show... but his version doesn't break observer mode.Here's the code from this mod, though:Code: c++ local OriginalOnHeroChange = OnHeroChange function OnHeroChange(unit) OriginalOnHeroChange(unit) healthTxt:Show() manaTxt:Show() barGroup:Show() end local OriginalCreate = Create function Create(parent) OriginalCreate(parent) local OriginalHandleEvent = barGroup.dummy.HandleEvent function barGroup.dummy.HandleEvent(self, event) OriginalHandleEvent(self, event) healthTxt:Show() manaTxt:Show() end return barGroup end
Miriyaka?
Fight for the users!
heh... did you just see the new tron this weekend too?
How does it break? Does it just make the health/mana bars not show up? There's no incorrect use of GetFocusArmy, either in the hook or in the original, but it's possible that the hero unit isn't being passed to OnHeroChange, as the hook does no check for hero. Replace the OnHeroChange function with this:
1st time tonight, with 4 Bacardi Breezers and 3/4 litre of wine!
I feel like I could fail extreme at DG tonight!
Still like Sucker Punch more even though I love the original... heh, I forgot to thank you for your review for Sucker Punch, I used it to convince the wifey to go with me and see it in theatres.
80s awesome movie, meets 90s awesome music. meets modern awesome CGI.
nice, orion.
miri - there's just that weird graphical distortion when observer mode is selected. I'll try out the fix you suggested later today. Thanks!
I'm guessing the issue is simply because its trying to display hp info for the observer in the ui.
Heh... i have to update 3 mod packages if this works... sigh.
tried this:
The code bombs though - ui blanks out.
What? That works fine for me. Always displays the text when you're viewing from a specific player's POV as well.
What part of the UI blanks out? You realize that with 'Observer' selected in the player dropdown, there's no demigod-specific UI at all, right?
In fact, I just tested this with the original code (from the Enhanced UI in your last mod pack), and I'm not seeing any visual problems at all, and the bar displays just fine, and there are no script errors? If you're having a problem with it, I'm gonna need a log, and a very, very specific description of the problem, because it's not happening for me.
Edit: Ok, with the original code, I noticed that two little sections of the demigod portrait frame remain on screen if you switch from a player view to observer view. That's it. But the code I provided seems to fix that. Here's a version that makes sure that the entire barGroup display is hidden if no hero is present, just in case there are other issues that I'm not seeing:
hmm... something peculiar is going on then... with the original code, ONLY that mod enabled, and it works fine. Then when I go to a replay (I play a game for about 20 seconds with the mod on, end the game, then load the replay with the mod on), I get a graphical distortion when in observer mode where the ui would normally be. And yes, I know that nothing should be appearing in observer mode. The problem is that something is appearing... and its a distortion. But ONLY with the mod enabled.
edit - ok i try that. I think you saw what I'm talking about now.
Is this with just the original mod on, or with the combined Enhanced UI on? I.e. have you narrowed it down to this mod with 100% certainty? Because this mod should not affect the rest of the demigod panel at all - the only reason those little bits of frame were there for me is because the bar display object overlaps them, and its OnUpdate callback (this OnHeroChange function) was apparently not doing a proper Hide().
tested - you got it. Thanks, miri!
And yes - I narrowed it down to this mod. Tested first w my combined mod. Saw the issue, so I went through each mod 1 by 1. At any rate, all is sorted now it would seem. Thanks!
There are many great features available to you once you register, including:
Sign in or Create Account