SC2Mapster Wiki
Advertisement

RangeFrame[ | ]

RangeFrame is a type of Frame that detects its own size. It can be used to determine proximity of two other frames.

It has 4 moddable integer properties called LowerWidth, UpperWidth, LowerHeight and UpperHeight, and then has 4 read only boolean properties that code sets depending on whether the frame is above or below the 4 integer properties you set... they are called Underwidth, OverWidth, UnderHeight and OverHeight


Example[ | ]

 <Frame type="RangeFrame" name="AvailableClockSpace">
   <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
   <Anchor side="Left" relative="$parent/$parent/$parent/$parent/ScreenNavigationHero/ReplayButton/Label" pos="Max" offset="20"/>
   <Anchor side="Right" relative="$parent/TileList/StandardGlueClock" pos="Max" offset="0"/>
   <Height val="100"/>
   <LowerWidth val="130"/>

   <StateGroup name="Crowding">
       <State name="Spacious">
           <When type="Property" frame="$this" UnderWidth="false"/>
           <Action type="SendEvent" frame="$parent/TileList/StandardGlueClock" event="ShowClock"/>
       </State>
       <State name="Crowded">
           <When type="Property" frame="$this" UnderWidth="true"/>
           <Action type="SendEvent" frame="$parent/TileList/StandardGlueClock" event="HideClock"/>
       </State>
   </StateGroup>
 </Frame>
Advertisement