I think it's awesome Got the positioning (center, right) and display (always, under attack) working via settings too
Version 2.6 is out. Now has two additional settings under "UI" for placement and when the display appears. Will also show the appropriate commander Icon. Updated version available on PAMM.
Could you implement a specific alarm sound and make the whole screen flashing 3x when the com is under attack. I am still overseeing that my com is under attack in a big game way too often! I really need a more obtrusive alarm !
Provided raevn doesn't beat me to it, I'll add options for more extreme flashing, and maybe more noticeable sounds. I've been looking into an "uber cannon recharging" type addition as well, but haven't made any progress with that yet. Edit: By the way, by default, the game already has two commaner under attack alarms, but they very noticable.
I know that. But in a fierce fight I usualy just overhear the alarm and don't see the com health bar blinking. So it would be nice when the whole screen would flash or probably better; if the alarm sound would be louder and more distinct from the other alarms.
Geez, give me a chance Looks like AlertModel() was renamed to ArmyAlertModel(). There's a UnitAlertModel() now too, need to take a look to see what that does. Edit: Looks like some interesting things happening with alerts: Code: engine.call('watchlist.setCreationAlertTypes', JSON.stringify(['Factory'])); engine.call('watchlist.setDamageAlertTypes', JSON.stringify(['Commander'])); engine.call('watchlist.setDeathAlertTypes', JSON.stringify(['Structure']));
100% Broken, but looks like raevn is on it, will check again tomorrow when I'm less drunk Edit: That was quick
can't get it to work. it won't show up in the game, I've done the install very clean (first settings manager, then float frame, then HP bar, and those three mods alone, having deleted my modlist beforehand) but no cigar.
../../mods/rCommanderHP/rCommanderHP.css loading css common.js:28 ../../mods/rCommanderHP/rCommanderHP.js loading script common.js:9 Uncaught TypeError: Cannot read property 'xPercent' of null something not right
One more thing, I think you have noticed, but I'm gonna tell you anyway: Your mod does strange things with the current build. It makes Annihilate buttons come up with 0 halleys (they didn't show up anymore when I turned it off) and it makes you starting locations not appear and thus makes you unable to spawn.
Ah. May have found a bug. Did you happen to resize the window without having moved the commander HP frame?