• 0

    posted a message on Observer Interface Playercolor

    @Ahli634: Go

    I am actually using atm your Gameheart Interface. But I want to switch you RaceIcon with the Name of the Race. And maybe put over it a black colorBox so you only see the first Letter because as far as I know it's not possible to define a string length.

            <!-- Border for resources+supply -->
                <Frame type="PlayerFrame" name="PlayerResourcesImageBorder">
                    <Anchor side="Top" relative="$parent" pos="Min" offset="2"/>
                    <Anchor side="Right" relative="$parent" pos="Max" offset="-2"/>
                    <Anchor side="Bottom" relative="$parent" pos="Max" offset="-2"/>
                    <Anchor side="Left" relative="$parent\PlayerRaceIconPanelToggleControl" pos="Max" offset="4"/>
                    <VersusModePlayerSide val="Left"/>
                    <Frame type="Image" name="Image">
                        <Anchor relative="$parent"/>
                        <IgnoreParentColor val="false"/>
                        <Alpha val="153"/>
                        <Texture val="border_2px.dds"/>
                        <TextureType val="Border"/>
                        <Tiled val="false"/>
                        <RenderPriority val="101"/>
                    </Frame>
     <Frame type="Label" name="Label">
                        <Anchor relative="$parent"/>
                        <IgnoreParentColor val="false"/>
                        <Style val="TEST"/>
                        <Text val="@DOCSTR_0025"/>
                        <Unclipped val="true"/>
                    </Frame>
                </Frame>
    

    Even There it stays white :/

    Posted in: UI Development
  • 0

    posted a message on Observer Interface Playercolor

    @Ahli634: Go

    you mean like this

                <Frame type="PlayerFrame" name="PlayerRF">
                    <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
                    <Anchor side="Right" relative="$parent" pos="Max" offset="-23"/>
                    <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
                    <Anchor side="Bottom" relative="$parent" pos="Max" offset="0"/>
                    
                    <VersusModePlayerSide val="Left"/>
                    <Frame type="Label" name="Label">
                        <Anchor relative="$parent"/>
                        <IgnoreParentColor val="false"/>
                        <Style val="TestSt"/>
                        <Text val="@DOCSTR_0026"/>
                        <Unclipped val="true"/>
                    </Frame>
                </Frame>
    

    not working it stays white

    Posted in: UI Development
  • 0

    posted a message on Observer Interface Playercolor

    Hi, is it possible to set any kind of label the same color as the player? e.g. I've a label with the Value="@DOCSTR_0000000" the text within this variable is ="Test" So if the color of the left player is green. The color of my label should also be green . I tried this way

    <VersusModePlayerSide val="Left"/>
    
    <Frame type="Label" name="Label">
                        <Anchor relative="$parent"/>
                        <IgnoreParentColor val="false"/>
                        <Style val="testSt"/>
                        <Text val="@DOCSTR_0026"/>
                        <Unclipped val="true"/>
                    </Frame>
    

    The color stays white...

    Posted in: UI Development
  • 0

    posted a message on Display Queue labels?

    Hi, I'm working on an Oberserver Interface and I'm wondering howto get the Queue labels visible like GameHeart. Anyone an Idea?

    Posted in: UI Development
  • 0

    posted a message on Change Player 1

    @Fishy013: Go

    Yes you got the idea right and it gets triggered after the bank init. why not ;) ? char select are functions to get the pressed button id and that stuff

    Posted in: Triggers
  • 0

    posted a message on Change Player 1

    ok in my ast post i posted the galaxy code anyhow here is the map again

    Posted in: Triggers
  • 0

    posted a message on Change Player 1

    @Fishy013: Go

    well no i got names and values. so LOL....

    Posted in: Triggers
  • 0

    posted a message on Change Player 1

    @Fishy013: Go

    oh yeah uhm the folder "Vote" is from me and i add this line to the bank initialization "trriger run vote..." + the trigger vote in the folder "warp menu"

    Posted in: Triggers
  • 0

    posted a message on Change Player 1

    Ok so i told my self damn it lets give it a try already today. So with youtube and that stuff i came to this code for Dialogs and player counts. But as soon as i start the map i'll get a blackscreen and it stays that way Because it's too much code i added the map to the attachement. I changed the attribute of PLAYER_USER to none constant

    Posted in: Triggers
  • 0

    posted a message on Change Player 1

    @Fishy013: Go

    thanks i actually already gave up ;) but good to know that something like that would be possible, maybe in the future i'll try it again

    Posted in: Triggers
  • 0

    posted a message on Change Player 1

    hi, I'm wondering if its possible to change the active player 1. I'm trying to modify the curren SC Master Map The idea is that obsevers can vote if they want to play and if the current player accepts the observer gets to play Is somehting like that possible?

    Posted in: Triggers
  • 0

    posted a message on Get PlayerRace?

    @Kueken531: Go

    Well i made this one

            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Race of player 1) == Terran
                            (Race of player 2) == Terran
                Then
                    UI - Show game UI for (All players)
                    UI - Display "Your Enemy Is Terran" for (All players) to Subtitle area
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Race of player 1) == Terran
                            (Race of player 2) == Protoss
                Then
                    UI - Show game UI for (All players)
                    UI - Display "Your Enemy Is Protoss" for (All players) to Subtitle area
                Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Race of player 1) == Terran
                            (Race of player 2) == Zerg
                Then
                    UI - Show game UI for (All players)
                    UI - Display "Your Enemy Is Zerg" for (All players) to Subtitle area
                Else
    

    but no messages displayed

    Posted in: Triggers
  • 0

    posted a message on Get PlayerRace?

    Hi, I'm trying to get the Race of each player. But I'm stucked it found in the functions the Player AttributID I've chosen Race So my Code looks like this. As you see I'm stucked now ;) Is there actually a way to get the player race or am i triying something impossible

            General - For each integer tmpRaceID from 1 to 3 with increment 1, do (Actions)
                Actions
                    Player Group - For each player tmpPlayerID in (Players on team 1) do (Actions)
                        Actions
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    RaceID == Race
                                Then
                                    Variable - Set tmpRaceID = Value
                                Else
    
    Posted in: Triggers
  • 0

    posted a message on IF Building under Counstruction

    Hi, I'm trying to make objectives like "morph to orbital." Now I've to make the conditions to disable the objective but i can'T find any function which allows my to make a comparsion f the player is morphs to a orbital. I only can choose the units which are already on the map any ideas?

    i tried this

    Variable - Set tempInt = (Get the number of units of type orbital command in progress/made by player 1 using mask In Progress)

    But it always stays at 0

    Solved it I had to use the abillity of a unit ;)

    Posted in: Triggers
  • 0

    posted a message on Trade resource

    Hi, I'm looking for the action how to trade resoruce and share control to other players. I Found the set Alliance Aspect and used this code.

            Player - Turn player 1 Resource Trading On towards player 2
            Player - Turn player 1 Shared Control On towards player 2
    

    But it's not working.

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