you cannot catch mouse click events with SC2Layout files, SC2Layout files are pure for changing the actual UI, and reusing existing elements.
You could ofcourse try to make a screen button with the same look and feel as a menu button on the menu bar, and then position it next to the menu.
Helral's Lair
Meow meoow meeow. I'm ze evil SC2MapsterKitten.
current projects:
- UI support for other projects
- Helrals Random Dungeon Map (progressing very slowly)
- monitoring wiki and UI development forum
soulzek PremiumLooking for an example of how you would add another one of these to the ingame menu bar. I know it has to do with sc2layout files and I am somewhat familiar with the process (thanks to using custom fonts), but is there a tutorial that explains how to do this exactly? I've looked around and most sc2layout tutorials explain how to reposition and hide some stuff, but none of them cover handling a button click to invoke my own custom dialog with the menu bar button is clicked.
I am new to the SC2 Editor, but I have years of C programming experience (relevant to galaxy script).
Send me a message if you need help with programming concepts or galaxy script syntax.
Do not ask me how to do something specifically related to SC2 as I am not fluent with the galaxy API yet.