• 0

    posted a message on Change unit panel

    @xxxNEARBYxxx: Go

    Quote from Helral: Go

    Now you can position the content using relative="$parent/$parent" so the items inside position themselves relative to their parent's parent frame, instead of their parent frame.

    @Overspeedo: Go

    not as far as I know without remaking it manually using selfmade/cut-up images with dialogs.

    Posted in: UI Development
  • 0

    posted a message on Change unit panel

    @xxxNEARBYxxx: Go

    the code below set the frame to have the same size as it's parent frame.

    <frame ...>
      <Anchor side='left' pos='min' offset='0' relative='$parent'/>
      <Anchor side='top' pos='min' offset='0' relative='$parent'/>
      <Anchor side='right' pos='max' offset='0' relative='$parent'/>
      <Anchor side='bottom' pos='max' offset='0' relative='$parent'/>
    </frame>
    

    that is assuming it has no width/height value set.
    otherwise it centers itself accordingly.

    Edit:
    to use this for a frame which has a width/height set use at least the following values:
    Height: 1200, Width 2000
    Now you can position the content using relative="$parent/$parent" so the items inside position themselves relative to their parent's parent frame, instead of their parent frame.

    Posted in: UI Development
  • 0

    posted a message on Change unit panel

    @xxxNEARBYxxx: Go

    you can set the unit info panel to be the entire screen and the move the parts of it to where you want them to be.

    Posted in: UI Development
  • 0

    posted a message on Move Resource To Center Of Screen

    @composure19d: Go

    you can find the frame definitions here: SC2 Layout Frame Overview

    <Frame type='ResourcePanel' name='GameUI/UIContainer/FullscreenUpperContainer/ResourcePanel' file='GameUI'>
      <Anchor side='left' pos='min' relative='$parent/$parent/ConsoleUIContainer/CommandPanel' offset='0'/>
      <Anchor side='right' pos='max' relative='$this' offset='0'/>
      <Anchor side='top' pos='min' relative='$this' offset='0'/>
      <Anchor side='bottom' pos='min' relative='$parent/$parent/ConsoleUIContainer/CommandPanel' offset='0'/>
    </Frame>
    

    the code above should position the resourcepanel directly above the commandcard.
    the rest of the positioning job is really trial and error. just keep adjusting till it is where you want it :).

    ps I assumed you meant above the commandcard with above the hotkeys.

    Posted in: UI Development
  • 0

    posted a message on Portrait and properties stay visible

    @xxxNEARBYxxx: Go

    Updated the post above with the pos setting. I forgot about that property.

    Posted in: UI Development
  • 0

    posted a message on Portrait and properties stay visible

    @xxxNEARBYxxx: Go

    the portrait frame should be move able using this frame:

    <Frame type='PortraitPanel' name='GameUI/UIContainer/ConsolePanel/PortraitPanel' file='GameUI'>
      <Anchor side='left' offset='0px' relative='$parent' pos='mid'/>
      <Anchor side='right' offset='0px' relative='$parent' pos='mid'/>
      <Anchor side='top' offset='0px' relative='$this' pos='min'/>
      <Anchor side='bottom' offset='0px' relative='$parent' pos='max'/>
    </Frame>
    

    also this site helps with getting the correct frame notations: SC2 Layout Frame Overview

    Edit: updated the code section, forgot to add the pos value

    Posted in: UI Development
  • 0

    posted a message on Portrait and properties stay visible

    @xxxNEARBYxxx: Go

    Do you mean like in this screenshot?

    http://www.sc2mapster.com/media/attachments/26/719/Screenshot2012-04-25_20_31_37.jpg

    bottom left corner has unit info panel information and bottom center has command panel contents.
    You can reposition, resize a lot of frames and content of frames. (See my tutorial for more info)

    I can give ya a few pointers on where to look, and what frame definitions you need to use if you need it.

    Posted in: UI Development
  • 0

    posted a message on can you change the colour of a list box?

    just to be sure did you set it to "FF0000" or " #FF0000", because the color red is #FF0000 not FF0000.

    Posted in: UI Development
  • 0

    posted a message on list box font size

    @finiteturtles: Go

    You're running into the "Text that does not fit is not shown." feature.

    Have your tried increasing the size of the list box so that the text can fit inside?

    Posted in: UI Development
  • 0

    posted a message on Changing what appears in Info Panel

    @Kildare88: Go

    this is not possible using sc2layout files, but you can probably do it using dialogs.

    Posted in: UI Development
  • 0

    posted a message on Problem with info panel

    @tatatatate: Go

    finally had some time to check in the sc2editor. I haven't got time to run tests but there is a unit flag named "Individual subgroups" which might do the trick. guess I remembered the other thing wrong.

    Posted in: UI Development
  • 0

    posted a message on Problem with info panel

    @tatatatate: Go

    there is a datafield which manages whether or not the units are of the same type. If I remember correctly leaving this field blank will cause them to always be seen as different unit types even though they're the same unit type. I don't know the name of this data field right away, but it is listed at the unit data.

    Posted in: UI Development
  • 0

    posted a message on Majesty-like building placement.

    don't expect people to answer within an hour of posting a question.

    Now as to your problem:
    There are some solutions for this.
    You can for example use a hidden unit with the building buttons to create the building templates as you want.
    or you can use a mouse click event and the corresponding actions to retrieve the click location and then place the required actor at that spot.

    Posted in: UI Development
  • 0

    posted a message on Unclickable command card

    @ShadowDancer93: Go

    Have you tried disabling the other sc2layout files and checking them one by one to see which of them causes this problem. I think there is another thread here with someone else having the same problem. The solution might be posted there.

    Posted in: UI Development
  • 0

    posted a message on Moving Control Group Panel

    @IrkumeeLegion: Go

    The parent frame of its parent frame.

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