• 0

    posted a message on UI - Hiding Chat?

    @Fullachain: Go

    looks correct, did you include the fiile that has this at Custom UI Layout field in the data editor?

    Posted in: UI Development
  • 0

    posted a message on Timer and "friend amount" buttons
    Quote from xxxNEARBYxxx: Go

    yup, but if I use trigger it gives no result, my button still stand at the old position... need to move it right-bottom

    Are you testing single player or multiplayer?

    Posted in: UI Development
  • 0

    posted a message on UI - Hiding Chat?

    @Fullachain: Go

    add the following anchors to the element you want to move offscreen:

    <Anchor side='Top' pos='Max' relative='$parent' offset='500'/>
    <Anchor side='Left' pos='Max' relative='$parent' offset='500'/>
    <Anchor side='Bottom' pos='Max' relative='$this' offset='0'/>
    <Anchor side='Right' pos='Max' relative='$this' offset='0'/>
    
    Posted in: UI Development
  • 0

    posted a message on Timer and "friend amount" buttons

    @xxxNEARBYxxx: Go

    because blizzard does not allow the bnets friend button to be hidden.
    To enforce this they set it to trigger movement only.

    also if you're testing single player then you might want to move the background image, cause that is NOT moved by using the trigger.
    Moving Battle Net Friends Background

    Posted in: UI Development
  • 0

    posted a message on UI - Hiding Chat?

    @Fullachain: Go

    setting visible to false does not always work. you can move it offscreen by adjusting it's anchors.

    Posted in: UI Development
  • 0

    posted a message on Trigger error. Help with dialog detection and ending a repeat.

    @taylordcraig: Go

    did you try adding the following condition to your if statements before the is visible:
    (Last created dialog) != No Dialog

    don't know if this will work correctly for destroyed dialogs.

    Posted in: Triggers
  • 0

    posted a message on Trigger Based On Unit Proximity

    @DaBernMon: Go

    items on the ground are units.

    Here is an example of counting marines 2 spaces away from the triggering unit.
    Variable - MarineGroup = (Marine units in (Region((Position of (Triggering unit)), (((Unit type of (Triggering unit)) Radius) + 2.0))) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)
    Variable - Set marines in range = (Number of Living units in (MarineGroup))

    Variable "MarineGroup" is of the type Unit Group.
    Variable "marines in range" is of the type int.

    so basicly after setting the needed variables with this you can do:
    (This next bit is manually written and not copy/paste from the trigger editor)

    if 
      Conditions
        And 
          (marines in range>0)
          ....
    Then
      Actions
        remove (random unit from unit group (marinegroup)) from the game
        remove .... 
        Create 1 UpgradedMarine
    

    Edit:
    If you want to keep track of how many ingredients are ingame and where then what jcraigk says is better.

    Posted in: Triggers
  • 0

    posted a message on Timer and "friend amount" buttons
    Quote from xxxNEARBYxxx: Go
    <Frame type="MissionTimePanel" name="GameUI/UIContainer/ConsoleUIContainer/MissionTimePanel" file="GameUI">
     <Anchor side="Right" relative="$parent" pos="Max" offset="0"/>
     <Anchor side="Top" relative="$parent" pos="Max" offset="0"/>
    </Frame>
    

    Why my timer still in the middle? I need top-right position =(

    you forgot to reset the left and bottom anchors:

     <Anchor side="Left" relative="$this" pos="Max" offset="0"/>
     <Anchor side="Bottom" relative="$this" pos="Max" offset="0"/>
    

    also use <<code XML>>> as the formatting tag on these forums, since the sc2layouts are xml.

    Posted in: UI Development
  • 0

    posted a message on Basic UI Help

    @SupaCats: Go

    Map init:

    Dialog - Create Dialog
    Dialog - Hide Dialog Background
    Dialog Item - Create Dialog Item Button for last created Dialog
    Dialog Item - do stuff for the button
    Set Variable OnScreenButton = Last Created Dialog Item
    Dialog - Show Last Created Dialog for all players

    Other Trigger:
    Event: User clicks dialog item
    Condition: Used dialog item == OnScreenButton
    Actions: do what needs to be done when the button is clicked.

    This is basically what you need to do.

    If you need more help, it might help posting what you tried that doesn't work as wanted.
    Then I (or someone else) can prolly post the mistake you made with the trigger(s).
    This way you learn from your mistakes :)

    Posted in: UI Development
  • 0

    posted a message on Minimap size

    @xxxNEARBYxxx: Go

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>    
      <Frame type="Frame" name="GameUI/UIContainer/ConsoleUIContainer" file="GameUI">
        <Frame type="MinimapPanel" name="MinimapPanel">
          <Anchor side="Left" relative="$this" pos="Min" offset="0"/>
          <Anchor side="Bottom" relative="$this" pos="Max" offset="0"/>
          <Anchor side="Top" relative="$parent" pos="Min" offset="20"/>
          <Anchor side="Right" relative="$parent" pos="Max" offset="-25"/>
          <!-- Minimap Panel size -->
          <Width val="291"/>
          <Height val="286"/>
          <Frame type="Minimap" name="Minimap">
            <Anchor side="Top" relative="$parent" pos="Mid" offset="0"/>
            <Anchor side="Bottom" relative="$parent" pos="Mid" offset="0"/>
            <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
            <!-- Minimap size -->
            <Width val="291"/>
            <Height val="286"/>
          </Frame>
        </Frame>
      </Frame>
    </Desc>
    
    Posted in: UI Development
  • 0

    posted a message on Basic UI Help

    @SupaCats: Go

    you can create dialogs without background, and place buttons on it. Or you can create screen buttons to do that job.

    it is not much different from creating a dialog menu with buttons.

    Posted in: UI Development
  • 0

    posted a message on Command buttons panel

    @xxxNEARBYxxx: Go

    been busy a bit, but anyway here is the code which does the job:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
      <Frame type="CommandPanel" name="GameUI/UIContainer/ConsoleUIContainer/CommandPanel" file="GameUI">
        <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
        <Anchor side="Right" relative="$parent" pos="Max" offset="0"/>
        <Width val="800"/>
        <Height val="82"/>
        <Frame type="CommandButton" name="CommandButton00">
          <Anchor side="Top" relative="$parent" pos="Min" offset="1"/>
          <Anchor side="Left" relative="$parent" pos="Max" offset="1"/>
        </Frame>
        <Frame type="CommandButton" name="CommandButton05">
          <Anchor side="Top" relative="$parent" pos="Min" offset="1"/>
          <Anchor side="Left" relative="$parent" pos="Min" offset="1"/>
        </Frame>
        <Frame type="CommandButton" name="CommandButton10">
          <Anchor side="Top" relative="$parent/CommandButton09" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton09" pos="Max" offset="1"/>
        </Frame>
      </Frame>
    </Desc>
    

    This places the first 5 buttons outside the commandpanel, and causes them to be hidden. the rest is displayed as: [05][06][07][08][09][10][11][12][13][14]

    the width is a guess, and not entirely accurate.

    Posted in: UI Development
  • 0

    posted a message on Hide hotkeys

    @xxxNEARBYxxx: Go

    What error do you receive?

    Posted in: UI Development
  • 0

    posted a message on Basic UI Help

    @SupaCats: Go

    Do you just want a dialog setup like this:

    ___________________________________________
    |                 Dialog                  |
    |  _________________   _________________  |
    |  |               |   |               |  |
    |  |   Button 1    |   |   Button 2    |  |
    |  |_______________|   |_______________|  |
    |  _________________   _________________  |
    |  |               |   |               |  |
    |  |   Button 3    |   |   Button 4    |  |
    |  |_______________|   |_______________|  |
    |_________________________________________|
    
    

    Ascii image because I didn't want to create a paint one ;p

    Posted in: UI Development
  • 0

    posted a message on Minimap size

    @xxxNEARBYxxx: Go

    you reduced the minimappanel size and not the minimap size? (Those are 2 different elements. The Minimap is listed as a child of the MinimapPanel)

    Posted in: UI Development
  • To post a comment, please or register a new account.