PDA

View Full Version : [Support] Help for simple UI mod for map



Jonathan
07-23-2011, 06:09 PM
Basically I want to remove everything that is specific to the HoN map:
like these things on top of the screen:
http://img194.imageshack.us/img194/4658/map1bu.jpg
along with the scoreboard.(I hope this is possible)
I would also like to remove voting(the vote button too) or have custom votes.
And also remove commands like /ma which are only specific to HoN, and add some commands which print some static text(so for example you type /help it always gives the same text, this should be fairly simple)
(I have no experience with UI mods)
any help is appreciated!

ElementUser
07-23-2011, 06:24 PM
All you have to do is press F12 to get rid of all of the UI :)

I'm not a map expert so I can't help you with the rest of the stuff.

Jonathan
07-23-2011, 07:01 PM
All you have to do is press F12 to get rid of all of the UI :)

I'm not a map expert so I can't help you with the rest of the stuff.
I dont want to get rid of the bottom part and the "menu" button though

Oloko
07-23-2011, 09:23 PM
You should look/ask in the modification forum (http://forums.heroesofnewerth.com/forumdisplay.php?f=18) for UI related things. You can find some basic guides in the "Resources" subforum for UI modding.

Nytemair
07-23-2011, 11:37 PM
I've tried something similar, only I wanted to remove the Map and Unit Order sections, you can do so by creating a UI folder in the Resources of your map.

Then, copy and paste the game.interface file from HoN's original UI folder, and look through that. If you're using Notepad++, you can use Ctrl+F to find a certain section (helped loads!).

So now, onto finding the section you want to remove/hide.

The first few sections of this file are included "Packages" within the UI, next up is some Triggers which you probably won't be touching either.

Finally, after these sections are the parts you want.

Let's use the Hellbourne/Legion Main Building Health bars.

Open Ctrl+F and type "hellbourne", this should direct you to a section called "Hellbourne Health", now the way I've removed these, which seem to have worked in my testing - is to find the main part of the Hellbourne Health called "Visibility" and changing it to "False" (if it says True) or "0" (if it says 1).

By doing this, you are hiding the UI, but not deleting it, you can continue to change your UI around as you see fit, but should you feel the need to have a section back, you can simply un-hide it.

Hope this helped! :)

Jonathan
07-24-2011, 07:50 AM
I've tried something similar, only I wanted to remove the Map and Unit Order sections, you can do so by creating a UI folder in the Resources of your map.

Then, copy and paste the game.interface file from HoN's original UI folder, and look through that. If you're using Notepad++, you can use Ctrl+F to find a certain section (helped loads!).

So now, onto finding the section you want to remove/hide.

The first few sections of this file are included "Packages" within the UI, next up is some Triggers which you probably won't be touching either.

Finally, after these sections are the parts you want.

Let's use the Hellbourne/Legion Main Building Health bars.

Open Ctrl+F and type "hellbourne", this should direct you to a section called "Hellbourne Health", now the way I've removed these, which seem to have worked in my testing - is to find the main part of the Hellbourne Health called "Visibility" and changing it to "False" (if it says True) or "0" (if it says 1).

By doing this, you are hiding the UI, but not deleting it, you can continue to change your UI around as you see fit, but should you feel the need to have a section back, you can simply un-hide it.

Hope this helped! :)
Thanks! This is exactly what I needed. I just delete all the panels I don't need and it works perfectly well.

Jonathan
07-26-2011, 04:06 PM
I need more help related to the UI

What I want: When the game starts, a 'hero' is spawned for every player(I already have this part), but then I want this 'hero' to be set as the current selection, and the camera set to follow the unit( Action('PortraitCenter', 1.0) in the UI )(the camera following can be later disabled/re-enabled by the player through a UI button which I've already made).

btw, how do I make it so that I don't have control of every unit in practice mode?(control only the units I own)

tojooko
07-26-2011, 06:45 PM
It seems you must make more research in UI code, because both things you described is implemented here. I mean camera focus is triggered by C key and selection trigger is obvious:P I think you can use <clientuitrigger> to do it

Are you using Test++ mod? I'm sure it can disable spawning controlled units, not sure does it is possible normally.

Jonathan
07-27-2011, 07:07 AM
Ok so I did:
(in game.interface)

<trigger name="UI_BEGIN"/>
<panel width="0" height="0" watch="UI_BEGIN" ontrigger="SelectHero(); Action('PortraitCenter', 1.0));" />
And:
(in a .entity file(run at start))

<clientuitrigger name="UI_BEGIN"/>
It works if the unit I spawn is a <hero> but if it isnt a hero(even though I use <sethero>), it doesn't work. I guess I will have to deal with that.

Tafelpoot
07-27-2011, 12:25 PM
sethero only works with hero entities indeed.