• 0

    posted a message on Moving and re-sizing the minimap [Triggers or SC2Layouts]

    Found the solution! Turns out, the way I got it to work was purely with the Anchor tag, using the offset to determine the size! Also, I fudged up and used the name="MinimapPanelTemplate! Here's the corrected .SC2Layout:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
    	<Frame type="MinimapPanel" name="GameUI/UIContainer/ConsoleUIContainer/MinimapPanel" template="MinimapPanel/MinimapPanelTemplate" file="GameUI">
    		<Anchor side="Top" relative="$parent" pos="Max" offset="-340"/>
    		<Anchor side="Right" relative="$parent" pos="Min" offset="370"/>
    		<Anchor side="Bottom" relative="$parent" pos="Max" offset="0"/>
    		<Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
    	</Frame>
    </Desc>
    

    So, in case this Thread is ever searched for, and sought out, I'll write a brief tutorial: (Note: Remove 'Comments' from the code before using it. These are placed in the code by me for commenting on lines.) Open Notepad, and Paste these crucial lines of code:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
    	<Frame type="MinimapPanel" name="GameUI/UIContainer/ConsoleUIContainer/MinimapPanel" template="MinimapPanel/MinimapPanelTemplate" file="GameUI">
    
             //this is where code goes//
    
    	</Frame>
    </Desc>
    

    Now, the part 'where the code goes' is where I put my settings for placement and size.

    		<Anchor side="Top" relative="$parent" pos="Max" offset="-340"/>
    			//side="Top" means set the Top side of the minimap to this position//
    			//relative="$parent" means, I think, what the location is relevant to (parent being the Minimap's containing frame)//
    			//pos="Max"; position at the max size value (in this case, pos='Max' means the bottom, Min would mean top)//
    			//offset="-340"; put the top 340 pixels upward from the 'pos' spot (being the bottom). If I used positive 340, it would move down offscreen//
    
    		<Anchor side="Right" relative="$parent" pos="Min" offset="370"/>
    			//side="Right"; set settings for the right size//
    			//relative="$parent"; relative to it's parent container//
    			//pos="Min"; min = Left side of parent, max = right side of parent//
    			//offset="370"; move right edge of minimap 370 pixels to right. Equivalent to the width, sort of.
    
    		<Anchor side="Bottom" relative="$parent" pos="Max" offset="0"/>
    			//max=put at bottom; offset=0, want bottom edge right on bottom of screen
    		<Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
    			//min=put at left most edge; offset=0;
    

    As I am typing this, two explosions just went off just miles away from where I am, in Boston at the Boston Marathon.

    Posted in: UI Development
  • 0

    posted a message on Moving and re-sizing the minimap [Triggers or SC2Layouts]

    I'd like to re-size the minimap, place it down at the bottom-left most corner with no offset, and re-size it to a specific pixel x pixel size. I'd like to get it to rest in the bottom left most corner with 0 distance from the bottom and left edges. The code I've tried using (SC2Layout), that has been imported and added to the Custom Layout Files list is as follows:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="MinimapPanel" name="MinimapPanelTemplate">
            <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
            <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
    		<Width val="100" />
    		<Height val="100" />
            <Frame type="Minimap" name="Minimap">
    			<Width val="100" />
    			<Height val="100" />
            </Frame>
         </Frame>
    </Desc>
    

    It seems to have no effect, however.. is there something I'm missing, or doing incorrectly? Thanks.

    Posted in: UI Development
  • 0

    posted a message on Change cursor via Trigger

    Is there any way to manually inside a trigger change the cursor icon? I'd like to, at a point change a player's mouse cursor to a custom image, and then afterward change it back to the default one (for a trigger based ability).

    Posted in: Triggers
  • 0

    posted a message on Custom Mover - Special Hellion Jump

    Hi, I'm trying to develop a mover (based around the Launch Missile effect) which launches the target unit in a special fashion (illustrated below).

    Hellion Jump

    Point 1 -> Hellion jumps straight up in the air, pointing upwards (also firing its weapon at the ground behind it) Point 2 Hellion pauses for a brief period (or perhaps not pauses, but simply slows down at the apex) Point -> 3, Hellion Flies down and creates an impact doing AoE damage (again, firing its weapon behind it)

    I'm not sure what types of mover settings I should be looking at. As far as the AoE explosion at the end, I'm not particularly worried about programming that myself. I'm just confused as to creating movers, specifying motions and speeds, heights, etc..

    I have perused around the forum reading all the tutorials I could find, but none of them were specific about the Mover parameters for me to comprehend their uses.

    Can anyone with experience give me a hand?

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