|
|
Disconnect button (at game end)
*updated on 27 Aug 2009 04:10 GMT-5*
***Does not work on Regular ratio screens (4:3) right now, and only works on Widescreen (16:9). If I find the chance to plug in my old 4:3 LCD, I'll be able to release another version for it.
***Update causes the game.interface file to be reloaded after being pressed to fix a bug for now.
I created this mod because some people (like me) get really tired of having to press three buttons to leave at the end of a game to leave it. This mod adds a button that slides down from the top of the screen (where the voting panel comes down from). It's a big blue Disconnect button which makes it easy and instant to leave a game and return to the game's lobby.
For those who are wondering, when you click the button, it sends "disconnect" to the console instantly. You can achieve the same effect by pressing Ctrl+F8 during the game and typing disconnect.
The button slide down occurs when either one of the main building's health drops to zero.
***** Screenshot coming soon! *****
Note: This mod will NOT work with other game.interface mods currently, because it adds two lines of code to that file. I will add it in some of my combination mods soon.
__________________________________________________ ___________
Installation
To install, download this file into the games folder game/ folder. The default locations for these are:
Linux: /home/<username>/HoN/game/
Windows 7: C:\Program Files\Heroes of Newerth\game\
Windows Vista: C:\Program Files\Heroes of Newerth\game\
Windows XP: C:\Program Files\Heroes of Newerth\game\
Mac:
1. Press Finder
2. Press Applications
3. Right click 'Heroes of Newerth', and press Show containing files
4. Open Game folder
5. Move file here
__________________________________________________ ___________
Changelog
0.2.1 (27 Aug 2009 04:10 GMT-5):
- Bug was found. After clicking the disconnect button and joining another game, the button stays up in the next game from the beginning. This is probably not the best solution, but I added a "reloadinterface game" command when you click the button, so there might be a slight ~1 second pause after clicking the button. That's normal, but let me know if your pauses are very long (5-10 second range).
0.2.0 (26 Aug 2009 10:25 GMT-5):
- It should now be fully working. It shows when the base's health is below 0.1% (so around 45hp left).
0.1.1 (25 Aug 2009 23:40 GMT-5):
- Found that initial release was broken
- Tried to fix, and it works to an extent, but still now how I want it. Consider this to still be in beta.
0.1.0 (25 Aug 2009 22:20 GMT-5):
- Initial release.
_____________________
This is officially modification 025 in the Modification Repository!
Check out other mods by users by clicking here!
Last edited by MaxGhost; 08-27-2009 at 09:45 PM.
:/ It's not working right now... -.-
Someone was asking for this in clan chat about an hour ago, nice.
Released an update. How I was trying to make it work is that when main building hp = 0, trigger the slide to show the button. That didn't always work. I tried doing 0.1, but that made the slide happen when the base's hp was around 460hp. Then I tried 0.000001, that didn't work at all, then I tried 0.01, didn't work either. So the released version is with 0.1 for now, but I'll try and figure it out. (by the way those numbers are in percentage, so right now, it's at 10% hp).
I'll try to find a more sure-fire way to do it, but for now this'll have to do.
I just updated it. The link is in the installation section. Sorry.
Last edited by MaxGhost; 08-26-2009 at 10:27 AM.
I would use this if you had it dropdown when a team concedes as well
Would be a cool future feature
Update. Read the changelog in OP.
For the 'bug' you found, can't you have the button slide back up when it's clicked?
I'm an honest guy who's not afraid to be blunt. Hope you can handle that.
Found that it only works on widescreen. Info in OP.
i've tried to created a similar mod based on yours and bard's buttons... it seems if i send a disconnect + reloadinterface game via one click my game crashes. is there any way to read the dump files?
this:
did you find a way to make the button placement relative, so that the screen resolution / size doesn't matter?Code:<?xml version="1.0" encoding="UTF-8"?> <package> <panel color="invisible" x="158.5h" y="-69.0h" height="2.1h" width="2.1h" name="minimap_disconnect_quit" > <image texture="/ui/nqa/nqa_button.tga"/> <button texture="/ui/elements/button_roundhl.tga" onclick="Cmd('disconnect'); Cmd('reloadinterface game');" onrightclick="Cmd('quit');" interactive="false" /> </panel> </package>
HoN on Arch Linux 64bit.
Clan [Bang] | 1750+ | High Skill Only | USA | Very Active Join Now
See a post that breaks the rules? Use The Report Function