SC2Mapster Forums

Development > Triggers

Need help with dialog progress bar

  • 6 posts
    #1 Jan 11, 2013 at 19:53 UTC - 0 likes

    Let me start off by saying im not very familiar with dialogs, but i've played around with it that i know how to get a dialog progress bar working. The problem is when i set the progress bar to a custom image, and i try to get the progress to fill up - it wont. So i go ahead and create another dialog image to scale which works, except it goes flat at the end like an actualy bar, instead of staying within the image of the actual bar (the bar isnt a square, its diagnal on both ends)

    What am i doing wrong?

    Tug Defense! Official Video of the game: http://youtu.be/MldTkicuMK8

    Official Forums of the game: http://www.TugDefense.com

    #2 Jan 11, 2013 at 23:34 UTC - 0 likes

    For progress bars you have to use the set maximum value and the minimum value and then for it to fill you have to set the current value in relation to that. ex create dialog dialog blah blah blah create a progress bar for dialog dialog set last created dialog item size to size x, size y set minimum value to 0 set maximum value to 100 set current value to 1*number of game seconds

    I'm going to attach an example map in a little bit when i'm finished to help you understand better. Also included in the map is my own example of a progress bar which i think look better that i just create an image with and then scale it according to their progress.

    Name Size MD5
    Progress_bar_demo_map.SC2Map 13.4 KiB 29342fc5a064...
    #3 Jan 11, 2013 at 23:57 UTC - 0 likes

    there you go

    #4 Jan 14, 2013 at 22:39 UTC - 0 likes

    Hey man, thanks a lot I really appriciate it. Unfortunately this doesn't solve my problem. My problem was in custom image bars being filled without having the progression extending outside of the box, if that makes sense.

    #5 Jan 15, 2013 at 21:23 UTC - 0 likes

    let me see if i after looking at this i have it right. Essentially you have a custom image that is a diamond. and when you set the custom image for the bar it makes the diamond a square. as for progression outside of the box. Huh O.O i have no idea what you mean, if you could post an example of it that would help me figure it out. or you could send me a pm with it if you don't feel comfortable posting it.

    #6 Jan 16, 2013 at 07:18 UTC - 0 likes

    @willuwontu: Go

    Thanks i figured out what i needed to do, or at least an alternative.

    In the long run, i didnt end up using any progression bars but made a custom bar in photoshop and split it into 15 different images as it fills up. I then triggered it to use the appropriate photo with the bar filled to the amount.

  • 6 posts

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