SC2Mapster Forums

Resources > Tutorials

[Dialogs] Really Great Looking Dialogs, Part 1

    #42 Sep 03, 2012 at 05:41 UTC - 0 likes

    I have to say thanks for this tutorial. It really helped me understand everything. I went through it with no problem besides that the images weren't aligned with the buttons but I was able to fix that myself. Now I've implemented this into a brand new dialog with 30 buttons 10 for each race and to display different buttons for each team depending on race.

    Liked!
    Thanks a lot!
    -Projekton

    Last edited Sep 03, 2012 by Projekton

    http://www.sc2pod.com/achievement.php?id=13914

    #43 Jan 07, 2013 at 17:51 UTC - 0 likes

    This may be a necro but i need some help with this, it may be an update in the editor or i messed something up but here goes. I've checked over this whole tutorial and his sample map for hours and cannot figure out why my dialog box gets cut in half or in a third when testing this. I've tried editing almost everything and even running his sample map and still have the same problem. My code is 100% replica of his in the sample map so this is why i am confused.

    I did change the button layout to 6 across instead of 2 rows, but even with the default value its still cut in the same place.

    http://tinypic.com/view.php?pic=29os7pj&s=6

    Last edited Jan 07, 2013 by kevdudex1
    #44 Mar 17, 2013 at 17:05 UTC - 0 likes

    @kevdudex1: Go

    I'm in the exact same boat! Been 3 hours over here. I changed some things as I went... so I figured I screwed something up. But then I downloaded the test map and it's broken too. Now I'm sad...

    I'm hoping to salvage some of the work, but I have no idea what to do. My top 3 buttons show up fine, but my fourth button (which should be underneath button 1, specifically as the first button on row 2). Instead, the fourth button shows up in column 4 but in row 2...

    UPDATE:

    Sometimes I really hate blizzard... this is so strange.

    So the problem in my map is that the x variable does not revert back to 40 (cDialog Border) after each iteration of the first For each integer Loop. Here's the part that is mind blowing:

    Debug - Display (Text(x)) as debug output using Type 01, and Do display it in the game window Variable - Set x = 40.0 Debug - Display (Text(x)) as debug output using Type 01, and Do display it in the game window

    This actually displays "0" "0". The "Set x = 40" does not set x equal to 40!

    Oddly, the modify variable x statement does actually work.

    UPDATE 2:

    I got mine to work, though I'm scared of this trigger now. Instead of setting x = cDialog Border at the start of the first loop (which again somehow doesn't work), I used this statement at the end of the first loop so that it resets before the second loop:

    Variable - Modify x: + ((x * -1) + cDialog Border)

    UPDATE 3:

    Okay... now I feel shame. It turns out I had an old global variable called 'x' and got them confused. That solves my problem. I don't know why the original map doesn't work still though.

    Last edited Mar 18, 2013 by darwinkilledgod
    #45 Mar 27, 2013 at 03:19 UTC - 0 likes

    43 posts and made an excellent tutorial and he only has 4 reputation? Come an people..

    Thanks a lot for the tutorial, I don't understand anything so far, but give me a week or two and my brain might accept all the information in here, don't blame me for being a slow learner, I'm old, and got adhd! ;P

    Ready, set..... GO, time to learn, brb !!

    BTW: Can you upload a map that doesn't look like this when you test it?

    Last edited Mar 27, 2013 by redbean87

    Lyandria

    #46 Apr 05, 2013 at 17:14 UTC - 0 likes

    The typo is here:
    Dialog Height = (+ (cDialog Extra, (cButton Gap * nRows), (cButton Gap * (nRows - 1)))) <Integer>
    It should be:
    Dialog Height = (+ (cDialog Extra, (cButton Size * nRows), (cButton Gap * (nRows - 1)))) <Integer>

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