SC2Mapster Forums

Development > Triggers

Fixing the White Label Bug

  • 17 posts
    #1 Feb 19, 2013 at 15:34 UTC - 0 likes

    Edit every single Create Label function and change Color: White to Color: Automatic by hand.

    In the GUI Trigger Editor goto Edit > Find/Replace > Find.

    Then go to Event/Condition/Action.

    Function Type: Action Function: Create Dialog Item (Label)

    Tick "Local Elements"

    Click on the very first thing in your Trigger List (Left-hand-side pane), then click Find Next.

    This will cycle through all the Create Dialog Item Labels that you need to change from White to Automatic.

    ----

    So basically, keep the Find window open, click Find Next.

    At the bottom of the window click on White, Press A, then press Enter, then press Enter again and then click on the next White.

    Rinse and Repeat, it keeps a tally of how many you have left to go (Eg: Results: 42/142)

    Last edited Feb 19, 2013 by DogmaiSEA
    #2 Feb 19, 2013 at 15:46 UTC - 0 likes

    I prefer my fix:
    http://i.snag.gy/iLNcX.jpg
    1. ctrl + F to search, then replicate the search window's settings. IMPORTANT: you need to chose "Preset" first and then "color". The editor doesn't output that properly.
    2. Use search button until you find a "create dialog label" action.
    3. Press replace.
    4. Iterate step 2 and 3 until you fixed all labels occuring in your triggers.

    Last edited Feb 20, 2013 by Ahli634

    http://img42.imageshack.us/img42/7586/signaturemj.jpg

    #3 Feb 19, 2013 at 20:51 UTC - 0 likes

    Great stufF!

    http://img27.imageshack.us/img27/8882/abasizedr.jpg

    #4 Feb 19, 2013 at 21:09 UTC - 0 likes

    When I change a label to automatic color it seems to just turn text that have color tags black, and text without color tags invisible, am I missing something?

    #5 Feb 19, 2013 at 23:41 UTC - 0 likes

    I am just going in to check the impact of the patch on my map. Can somebody paint a clearer picture for me of what this bug is and what exactly I should be looking for?

    #6 Feb 20, 2013 at 01:25 UTC - 0 likes

    Who and what is this supposed to be affecting? I just fired up starmon and it's working properly, as far as I can tell. The tooltips are all regular colors.

    Send me a PM with any questions or comments.

    Learn about HotS mods, publishing, and regions here

    #7 Feb 20, 2013 at 01:30 UTC - 0 likes

    @zeldarules28: Go

    From testing my map it doesn't seem to affect tooltips. Only labels.

    Current Project: SquadCraft 2
    Project Page
    Feedback Thread
    Latest Video
    Published Regions: SEA, NA, EU, KOR
    Status: Open Beta

    #8 Feb 20, 2013 at 01:33 UTC - 0 likes

    thanks , i was wondering why all my Leaderboard names and stuff were in white (instead of showing the specific unique player colors)

    I changed all the "white" to automatic, and now it works as before the patch

    #9 Feb 20, 2013 at 01:37 UTC - 0 likes

    I noticed that all of my buttons now default the text color to the same color of the button, ignoring the style color of the text. It made my dialogs go from looking pretty nice to terrible, is this problem related?

    #10 Feb 20, 2013 at 03:27 UTC - 0 likes

    probably, the patch messed with my dialogs too :(

    #11 Feb 20, 2013 at 03:31 UTC - 0 likes

    @rtschutter: Go

    Have you tried setting the dialogs to automatic? The problem might affect buttons too.

    #12 Feb 20, 2013 at 05:04 UTC - 0 likes

    I don't even understand how to set the color to 'automatic' all I see is the normal color settings.

    #13 Feb 20, 2013 at 06:21 UTC - 0 likes

    Ah, I thought the button action had a colour option. As a last resort you could always switch to custom buttons using labels for text. I wonder if setting up the buttons first then using the actions that change it's text would work.

    #14 Feb 20, 2013 at 08:03 UTC - 0 likes

    Yeah I will probably have to switch to labels which will be pretty annoying., I liked having the highlight color.

    I made a before/after comparison image and posted it on the bnet forums.

    https://dl.dropbox.com/u/49867307/Overlays/dialogbuttonissue.jpg

    #15 Feb 21, 2013 at 16:19 UTC - 0 likes
    Quote from rtschutter: Go

    https://dl.dropbox.com/u/49867307/Overlays/dialogbuttonissue.jpg

    I hope you don't mind that I use your image here to visualize the problem.

    #16 Feb 22, 2013 at 06:39 UTC - 0 likes

    Don't mind at all, thanks for finding a solution.

    #17 Feb 23, 2013 at 03:44 UTC - 0 likes

    Maybe this is a bad workaround, but I just replaced all of my single-line Create Label actions with the more generic Create Dialog Item (label) and then Move, Size, and Style with separate lines of code. Increases code footprint but fixed my color issues.

    Now in WoL 2.0.4 I'm running into labels truncating my text after a paragraph or so and adding "...", which cuts off lots of text. Not the case in HotS Beta.

  • 17 posts

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