View Full Version : Minimap right-click toggler By MaxGhost
MaxGhost
09-01-2009, 10:59 PM
Minimap right-click toggler
*updated on 01 Sep 2009 23:00 GMT-5*
I created this mod because of the amount of complaints people had about right-clicking the minimap while running towards the bottom left of the map.
What this mod does, is it adds one small toggle button (with images on the button created by myself) that will enable or disable right-clicks on the minimap completely. That means if you rightclick on the minimap while it's toggled on, nothing will happen. But if you click normally (left-click), regular actions will occur (moving the view to that position for example).
Also, I'd like to thank Habile for his help with parts of the code I messed up.
Note: This mod will NOT work with other game.interface mods currently, because it adds two seperate blocks of code to that file. I will add it in some of my combination mods soon. If you wish to combine it yourself, you can take a look at my guide (link in my signature).
__________________________________________________ ___________
Installation
To install, download this file (http://www.mediafire.com/?nuxoevm1zwm) 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.1.0 (01 Sep 2009 23:00 GMT-5):
- Initial release.
_____________________
This is officially modification 035 in the Modification Repository (http://forums.heroesofnewerth.com/showthread.php?t=7391)!
Check out other mods by users by clicking here (http://forums.heroesofnewerth.com/showthread.php?t=7391)!
Tehwildcard
09-01-2009, 11:00 PM
SUCKS
edit: first
Eccentrikit
09-01-2009, 11:01 PM
Edit: MaxGhost told me to edit my post...
HeavySoul
09-02-2009, 02:51 AM
Is there a way to build this so it would work with a Ctrl-click (or some other modifier) but not without? That would make it still functional to navigate using the minimap but eliminate accidental clicks.
Really, if it is possible, I think the ability to scale the minimap to user specs would be sufficient. A bit smaller and random clicks would be a moot point.
Thanks for your efforts!
MaxGhost
09-02-2009, 07:18 AM
Is there a way to build this so it would work with a Ctrl-click (or some other modifier) but not without? That would make it still functional to navigate using the minimap but eliminate accidental clicks.
Really, if it is possible, I think the ability to scale the minimap to user specs would be sufficient. A bit smaller and random clicks would be a moot point.
Thanks for your efforts!
Nope... right now it's not possible to make things work on keypress like I would want it to. This is pretty much the best way to do it for now.
abgeschmatzt
09-02-2009, 07:22 AM
thanks.. saved my ass many times :)
Trilles
09-02-2009, 03:41 PM
Realy good job Max ! again =D
Azpitt
09-02-2009, 06:09 PM
Once again Max, I love you.
HeavySoul
09-06-2009, 05:53 PM
Thanks MaxGhost for thinking about it. I'm hoping they add more keypress functionality in general - might at least make a mod of my autocast suggestion possible...
ForsakenSoul
09-09-2009, 05:09 PM
i wrote a little thing about how to not cause the accidental right-clicking to not happen and the best part it requires not mods (for those people who like the other mods that use the same file)
http://forums.heroesofnewerth.com/showthread.php?t=20107
Hope this helps
ForsakenSoul of West Gate Guards
MaxGhost
09-09-2009, 05:23 PM
i wrote a little thing about how to not cause the accidental right-clicking to not happen and the best part it requires not mods (for those people who like the other mods that use the same file)
http://forums.heroesofnewerth.com/showthread.php?t=20107
Hope this helps
ForsakenSoul of West Gate Guards
...
Not using right-click is kinda inconvenient.
ForsakenSoul
09-09-2009, 05:34 PM
Well the only reason i tried that (not to dis your mod its nice) is i like to be able to use right-click on the minimap but dont want to turn around everytime i run. which your mod disables rightclick in total obviously and i still love the run back function when i need it. which its more inconvient to have to toggle the thing off constantly. Btw it still allows you to right-click just 2 keys can move you.
MaxGhost
09-09-2009, 05:59 PM
Well the only reason i tried that (not to dis your mod its nice) is i like to be able to use right-click on the minimap but dont want to turn around everytime i run. which your mod disables rightclick in total obviously and i still love the run back function when i need it. which its more inconvient to have to toggle the thing off constantly. Btw it still allows you to right-click just 2 keys can move you.
Adding a hotkey to it IS possible, but it would only work with single-keys and it can't use ALT or CTRL or SHIFT...
Jager
09-17-2009, 08:10 PM
Great mod! Needs to be aded to the game by the devs imo. It seems to have the images the wrong way round for me though, I can right-click on the minimap when the red slash is over the mouse, and can't when it's gone.
Stefan1200
09-23-2009, 03:24 PM
I wish this mod would make possible to click through. But I think this is not possible?
MaxGhost
09-23-2009, 04:19 PM
I wish this mod would make possible to click through. But I think this is not possible?
I don't think so... I could try to see if it is, but I'm not sure.
Decency
09-25-2009, 10:51 AM
If you A+Left Click on the minimap, will that still function? I can't tell from the description.
MaxGhost
09-25-2009, 04:06 PM
If you A+Left Click on the minimap, will that still function? I can't tell from the description.
It disables right-click only, so it probably will... just don't use 'a' to run O_o
okabat
09-25-2009, 06:57 PM
MaxGhost is their anyway we can use a command to simply disable rightclick? Because the current Combo used (http://forums.heroesofnewerth.com/showthread.php?t=24940) or even Barts UI isn't compatible :( :(
MaxGhost
09-25-2009, 08:04 PM
MaxGhost is their anyway we can use a command to simply disable rightclick? Because the current Combo used (http://forums.heroesofnewerth.com/showthread.php?t=24940) or even Barts UI isn't compatible :( :(
There's no command to do it, has to be done in xml code.
Combine it with that yourself... guide in my signature.
okabat
09-26-2009, 08:50 AM
tried, failed.
MaxGhost
09-26-2009, 09:59 AM
tried, failed.
... Try harder.
Decency
09-26-2009, 02:30 PM
It disables right-click only, so it probably will... just don't use 'a' to run O_o
The point was that I do that frequently to give my guy direction, whereas I almost never intentionally right click on the minimap. I was hoping that it would.
MaxGhost
09-26-2009, 03:32 PM
The point was that I do that frequently to give my guy direction, whereas I almost never intentionally right click on the minimap. I was hoping that it would.
It is possible to disable all minimap clicking too... but then you wouldn't be able to drag the camera on the minimap or move it.
okabat
09-26-2009, 03:55 PM
It is possible to disable all minimap clicking too... but then you wouldn't be able to drag the camera on the minimap or move it.
how so?
MaxGhost
09-26-2009, 04:03 PM
how so?
Because there's two events on the minimap. onclick, and onrightclick. Clicking and dragging the camera triggers onclick, and rightclicking to move your hero around triggers onrightclick.
okabat
09-26-2009, 06:25 PM
It is possible to disable all minimap clicking too... but then you wouldn't be able to drag the camera on the minimap or move it.
You'd be able to move the camera by moving the mouse to the edge of the screen though right? If thats the case i'd like to test it, I could raise the mouse move speed then being more acurate with movements.
baiNey
10-06-2009, 06:46 PM
Hey Max. Do you see a chance of you converting this mod into a honmod file for use with Honmod Manager?
MaxGhost
10-06-2009, 06:58 PM
Probably.
snarkq
10-09-2009, 11:09 PM
Cheers mate, thanks for pointing this out. My friends and I thank you!
MaxGhost
10-09-2009, 11:59 PM
I uploaded a .honmod version to the repository, but I haven't updated this thread yet, cause I'm too lazy. You can get it from there.
haschisch
10-10-2009, 02:42 AM
will you ever do an version that works flawlessly with bard ui?
imho this is the only thing missing in bard ui, maybe you two could work together or sth.
MaxGhost
10-10-2009, 02:59 AM
will you ever do an version that works flawlessly with bard ui?
imho this is the only thing missing in bard ui, maybe you two could work together or sth.
It does work flawlessly with bard ui? Use the .honmod version with the hon mod manager.
___HunteR___
10-10-2009, 03:54 AM
Wow, this is one of the most fantastic ideas i have seen since starting this game ;)
GeForceFX
10-12-2009, 04:36 AM
It doesn't work with tiny ui. :/ Says:
"Tiny UI" caused a problem:
Could not find string with "<!-- Mini Map -->" as sought by D:\Games\Heroes of Newerth\game\mods\tinyui.honmod/mod.xml
But if I disable Minimap right-click toggle then everything works just fine. T.T
MaxGhost
10-12-2009, 09:12 AM
Yep. They're incompatible for now. Sorry!
okabat
10-15-2009, 10:49 PM
All good MaxGhost. Keep up the good work.
MaxGhost
10-15-2009, 10:51 PM
All good MaxGhost. Keep up the good work.
I'm pretty much just waiting on TinyUI to be updated and fix this incompatibility.
okabat
10-19-2009, 11:11 PM
So it just doesn't work with tinyUI and does with Bards/BartersUI?
MaxGhost
10-19-2009, 11:28 PM
So it just doesn't work with tinyUI and does with Bards/BartersUI?
Yes, for now. FreshM hasn't updated TinyUI in a looong time, lets hope he does soon.
okabat
10-30-2009, 04:07 PM
All good, no update as yet?
MaxGhost
10-30-2009, 05:31 PM
All good, no update as yet?
Nothing to do with this, no.
PopTurds
10-30-2009, 08:10 PM
Thanks for the quick response MaxGhost.
Zaraki
10-31-2009, 01:19 AM
Possible suggestion: I would still like to be able to use the minimap to tell my hero where to go, but I don't want it to be via right click. So instead, could it be changed so that right clicking on the minimap doesn't do anything, but left clicking moves the hero to the spot clicked? Further, by holding left click for like 1 second moves the game screen to the point on the map clicked on the minimap?
MaxGhost
10-31-2009, 01:30 AM
Possible suggestion: I would still like to be able to use the minimap to tell my hero where to go, but I don't want it to be via right click. So instead, could it be changed so that right clicking on the minimap doesn't do anything, but left clicking moves the hero to the spot clicked? Further, by holding left click for like 1 second moves the game screen to the point on the map clicked on the minimap?
Former is very much possible, later, I don't know. I don't personally use this mod, so I'll let people who want these features code it themselves.
Zaraki
10-31-2009, 01:31 AM
gotcha, thanks.
st3vo
11-02-2009, 12:24 AM
Is there a certain script this follows? if so can it be typed into the console?
I'm wondering this because i think it would be great to bind the toggle to the ~ key.
MaxGhost
11-02-2009, 12:27 AM
No. If you're cool, you can bind the button itself to a hotkey by editing the mod itself, but there's no bind for this. It's custom code that I wrote myself that makes it happen.
st3vo
11-02-2009, 12:37 AM
ive done very basic things in the files. on a scale of 0-10 of skill im sitting at a 1.5
So if someone could add this for me OR teach me how to do it (which you prolly dont want to) then that would be great.
MaxGhost
11-02-2009, 12:43 AM
Find this in the mod.xml file in the .honmod
<button
onload="CreateBool('MaxGhost_rc_toggle', true);"
texture="/ui/elements/button_roundhl.tga"
onclick="If(MaxGhost_rc_toggle, Split(Set('MaxGhost_rc_toggle', !MaxGhost_rc_toggle), Trigger('MaxGhostTextureWatch', '/ui/MaxGhost/clickoff.tga')), Split(Set('MaxGhost_rc_toggle', !MaxGhost_rc_toggle), Trigger('MaxGhostTextureWatch', '/ui/MaxGhost/clickon.tga')));"
/>
Add this after the onclick:
hotkey="yourhotkeygoeshere"
onhotkey="If(MaxGhost_rc_toggle, Split(Set('MaxGhost_rc_toggle', !MaxGhost_rc_toggle), Trigger('MaxGhostTextureWatch', '/ui/MaxGhost/clickoff.tga')), Split(Set('MaxGhost_rc_toggle', !MaxGhost_rc_toggle), Trigger('MaxGhostTextureWatch', '/ui/MaxGhost/clickon.tga')));"
Now I'm going to bed. Good luck!
st3vo
11-02-2009, 01:14 AM
I did just that and it works fantastic. thank you... now to remove this annoying button. I'll eventually figure it out
Zaraki
11-03-2009, 05:47 PM
hmmm, if you do what st3vo did, will that make it compatible with TinyUI, especially if you remove the button?
MaxGhost
11-03-2009, 05:52 PM
hmmm, if you do what st3vo did, will that make it compatible with TinyUI, especially if you remove the button?
If you remove the button, it might.
Zaraki
11-03-2009, 05:55 PM
hmm, might have to test once i get home.
hzzzln
11-11-2009, 08:37 AM
uhm. its a nice mod but... can you make it that its default to not being able to right click minimap? ive got it installed but i always forget to click the tiny little button to disable rightclicking. when i remember to click it... its usually to late.
id love to see this being compatible with tinyui.
MaxGhost
11-11-2009, 07:15 PM
I'm pretty much done supporting this mod cause I don't use it myself.
Your xml script bugs tooltips and buttons; and I'm too lazy to fix that:P
MaxGhost
11-27-2009, 12:09 PM
If it's tooltips and buttons, it's not this mod. I guarantee that. Like I already said 3 times in this thread, I'm not supporting this anymore.
OmegaTwiddl1
12-06-2009, 04:25 AM
GENIUS.
Montis
12-07-2009, 02:16 PM
is it possible to just make the clickable area smaller like this?
http://forums.heroesofnewerth.com/attachment.php?attachmentid=2278&stc=1&d=1260213327
Zaraki
12-07-2009, 02:47 PM
probably, but MaxGhost is not longer updating this mod.
MaxGhost
12-07-2009, 03:50 PM
probably, but MaxGhost is not longer updating this mod.
This.
Montis
12-08-2009, 05:22 AM
ok that's cool.
so I made my own mod (http://forums.heroesofnewerth.com/showthread.php?t=52990) doing this thing :)