SC2Mapster Forums

Development > UI Development

Custom Menu Bar Button

  • 4 posts
    #1 Nov 02, 2012 at 19:46 UTC - 0 likes

    http://i49.tinypic.com/21jpvrk.jpg

    Looking 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.

    #2 Nov 03, 2012 at 00:35 UTC - 0 likes

    @soulzek: Go

    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.

    UI Tutorials listing

    current projects:

    #3 Nov 03, 2012 at 00:44 UTC - 0 likes

    @soulzek: Go

    Dont waste your time, they have been moved in HoTS.

    So keep in mind in HoTS all those ubttons are now positioned around your Command card.

    Last edited Nov 03, 2012 by Taintedwisp

    my maps will always be Free. and Available to the public at the earliest possible date.

    If you need a tester feel free to ask IShadowWolf.258

    You can also catch me on the IRC most times.

    #4 Nov 03, 2012 at 18:47 UTC - 0 likes

    aw damn, thanks guys

  • 4 posts

You must login to post a comment. Don't have an account? Register to get one!