• 0

    posted a message on [UI] SC2Layout Files: Override method (Aiurchef method)

    I might be wrong but the behavior icons' alignment is hard coded; i.e. cannot be modified through layout modifications. You can however resize the icons but they won't be horizontally aligned. To change the icon size you need to modify the BehaviorIconTemplate element which is defined in BehaviorBar.SC2Layout. Example:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
      <Frame type="BehaviorIcon" name="BehaviorIconTemplate" file="BehaviorBar">
        <Width val="66"/>
        <Height val="66"/>
      </Frame>
    </Desc>
    
    Posted in: Tutorials
  • 0

    posted a message on [Data] Working with Attachments (Beginner Difficulty)

    @aFlyingchicken: Go

    Never realized that the order of site operations matters. You need to put the attach operation first in the list, and then apply any adjustments. Additionally, offsetting by 10 for such a small unit is too much.

    Posted in: Tutorials
  • 0

    posted a message on [UI] SC2Layout Files: Override method (Aiurchef method)

    @gamemore: Go

    Only top-most frame nodes should be formatted with the full path and the filename attributes, the rest frames are relative to their ancestors. In the source it's like:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
      <Frame type="Frame" name="GameUI/UIContainer/ConsoleUIContainer" file="GameUI">
        <Frame type="SomeFrame" name="SomeFrame">
          ....
        </Frame>
      </Frame>
    
      <!-- Another global frame -->
      <Frame type="Frame" name="GameUI/UIContainer/FullscreenLowerContainer" file="GameUI">
        <Frame type="FrameType" name="FrameName">
          ...
        </Frame>
      </Frame>
    </Desc>
    

    This is why it's better to have a single global frame like the UIContainer to start building the tree, instead of multiple global frames; IMO at least.

    Posted in: Tutorials
  • 0

    posted a message on [UI] SC2Layout Files: Override method (Aiurchef method)

    It will be much easier to scale the command buttons or to hide the console frames and scale the command panel. If you want to stretch the right-side model in which the portrait and the command panel reside you'll need to go through scaling and moving anything to the left of it, which is a lot!

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
      <Constant name="CommandButtonGap" val="1"/>
      <Constant name="CommandButtonWidth" val="38"/>
      <Constant name="CommandButtonHeight" val="76"/>
    
      <Frame type="Frame" name="GameUI/UIContainer/ConsoleUIContainer/CommandPanel" file="GameUI">
    
        <Frame type="CommandButton" name="CommandButton00">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent" pos="Min" offset="#CommandButtonGap"/>
          <Anchor side="Left" relative="$parent" pos="Min" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton01">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton00" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton00" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton02">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton01" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton01" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton03">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton02" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton02" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton04">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton03" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton03" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton05">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton00" pos="Max" offset="#CommandButtonGap"/>
          <Anchor side="Left" relative="$parent/CommandButton00" pos="Min" offset="0"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton06">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton05" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton05" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton07">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton06" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton06" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton08">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton07" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton07" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton09">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton08" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton08" pos="Max" offset="#CommandButtonGap"/>
      </Frame>
    
        <Frame type="CommandButton" name="CommandButton10">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton05" pos="Max" offset="#CommandButtonGap"/>
          <Anchor side="Left" relative="$parent/CommandButton05" pos="Min" offset="0"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton11">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton10" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton10" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton12">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton11" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton11" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton13">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton12" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton12" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
    
        <Frame type="CommandButton" name="CommandButton14">
          <Width val="#CommandButtonWidth"/>
          <Height val="#CommandButtonHeight"/>
          <Anchor side="Top" relative="$parent/CommandButton13" pos="Min" offset="0"/>
          <Anchor side="Left" relative="$parent/CommandButton13" pos="Max" offset="#CommandButtonGap"/>
        </Frame>
      </Frame>
    </Desc>
    
    Posted in: Tutorials
  • 0

    posted a message on [UI] SC2Layout Files: Override method (Aiurchef method)

    Is it possible to add an attribute to the hero panel or a button to the command buttons, rather than moving things around? I've tried both and nothing seems to work.

    For example:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
    
      <Frame type="Frame" name="GameUI/UIContainer" file="GameUI">
        <Frame type="Frame" name="ConsoleUIContainer">
          <Frame type="InfoPanel" name="InfoPanel">
            <Frame type="InfoPaneHero" name="InfoPaneHero">
    
              <Frame type="Label" name="AttributeLabel6">
                <Style val="@@InfoPaneHeroAttribute"/>
                <Anchor side="Top" relative="$parent/AttributeLabel5" pos="Max" offset="4"/>
                <Anchor side="Left" relative="$parent/AttributeLabel5" pos="Min" offset="0"/>
              </Frame>
              
            </Frame>
          </Frame>
        </Frame>
      </Frame>
      
    </Desc>
    

    ..doesn't work. I have 6 attributes and only 5 of those are visible. BTW, I double checked that it's not the container's size.

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