UI/Frame Types/AspectRatioFrame

From SC2Mapster Wiki
Jump to: navigation, search

the frame changes visbility depending on wether the aspect ration falls between MaxVisibleAspectRatio and MinVisibleAspectRatio

            <Frame type="AspectRatioFrame" name="Anchor4x3">
                <Anchor side="Top" relative="$parent" pos="Min" offset="224"/>
                <Anchor side="Left" relative="$parent/AnchorFrame" pos="Min" offset="0"/>
                <Width val="938"/>
                <Height val="50"/>
                <CollapseLayout val="true"/>
                <MaxVisibleAspectRatio val="1.51"/>
            </Frame>
            
            <Frame type="AspectRatioFrame" name="Anchor16x10">
                <Anchor side="Top" relative="$parent" pos="Min" offset="224"/>
                <Anchor side="Left" relative="$parent/Anchor4x3" pos="Max" offset="0"/>
                <Width val="1055"/>
                <Height val="50"/>
                <CollapseLayout val="true"/>
                <MinVisibleAspectRatio val="1.51001"/>
            </Frame>