• 0

    posted a message on [UI]A sample map for Customized Health Bar

    Explain in more detail: I have my custom health and energy bars made ​​through layouts, but I want also display the number of passengers in transport, as it done in a standard bars for bunkers or medivacs . Can it be done for custom bars?

    Posted in: General Chat
  • 0

    posted a message on [UI]A sample map for Customized Health Bar

    what frame should i use to display custom transport bar for medivacs or bunkers?

    Posted in: General Chat
  • 0

    posted a message on Number of workers on unit.

    Is it possible to get number of workers that gather specified unit with resource?
    There is a number of harvesters u can see when selecting mineral or geyser during game, i just need to get this number.

    Posted in: Triggers
  • 0

    posted a message on Cant set up player attribute properly (Updated)

    My problem is half solved now, but solution is very strange. Ill tell u step by step what i found.

    At first i tried to understand: what data type is my attribute and what function takes my attribute from lobby. Attribute is string type and function is: lv_string1 = GameAttributePlayerValue("1", PlayerGroupLoopCurrent());
    Then i did discovery: this function only works during offline launching in my map. I did many tests but they have not solved the problem. And then i found tip in dependencies menu:"-The optional local file will be used within the editor and during single player testing in game. This will override the Battle.net file." What can be different in my files and battle.net files? My mod used Liberty(Mod), Liberty(Campaign) and Liberty Story(Campaign) standard mods before. I added Liberty Multi(Mod) and GameAttributePlayerValue function started to working in battle.net.

    The problem now is that i receive message when entering dependencies menu: "Conflict standard dependencies exist: Liberty Multi(Mod) can`t be used together with Liberty Story (Campaign). Significant data problems may occur. Use dependencies anyway?"

    Question is: what damage can my map has from this dependencies conflict? may be someone can find solution without using Liberty Multi (Mod)?

    Posted in: Triggers
  • 0

    posted a message on Cant set up player attribute properly (Updated)

    I set up my attribute like this:
    http://s019.radikal.ru/i614/1309/da/c60ce001ed3f.jpg
    After that i could select Random/Alliance/Horde in lobby

    Than i created simple trigger running on map initialization (messages are for testing purposes, Players = players group with all active players):

    Player Group - Pick each player in Players and do (Actions)
        Actions
            General - Switch (Actions) depending on (WAA_Race value for player (Picked player))
                Cases
                    General - If (Alliance)
                        Actions
                            Variable - Set PlayerData[(Picked player)].Race = Alliance
                            UI - Display (Name of player (Picked player)) for (All players) to Subtitle area
                            UI - Display "Alliance" for (All players) to Subtitle area
                    General - If (Horde)
                        Actions
                            Variable - Set PlayerData[(Picked player)].Race = Horde
                            UI - Display (Name of player (Picked player)) for (All players) to Subtitle area
                            UI - Display "Horde" for (All players) to Subtitle area
                    General - If (Random)
                        Actions
                            Variable - Set PlayerData[(Picked player)].Race = Random
                            UI - Display (Name of player (Picked player)) for (All players) to Subtitle area
                            UI - Display "Random" for (All players) to Subtitle area
                Default
                    Variable - Set PlayerData[(Picked player)].Race = Random
                    UI - Display (Name of player (Picked player)) for (All players) to Subtitle area
                    UI - Display "Default" for (All players) to Subtitle area
    

    The problem is switch always falls to Default. No matter what i select in lobby - it always show me Names Default messages. I tried to use if-then else, use numbers instead of Picked Player, check or not check "Locked When Public" option - nothing changes.

    I just want to hook up one attribute and cant do it =(. Help please.

    Posted in: Triggers
  • 0

    posted a message on Selectable custom race: still impossible?
    Quote from GhostNova91: Go

    Has anyone posted on the SC2 forums about this? Would they even change something like this? The whole 4th race idea is kind of thrown out the window if you replace one of them. I guess you could just make a custom "lobby" when the game starts where everyone chooses races.

    I did like this. And even did tons of works in layouts and triggers with interface. I just thought that do it using races will be better.

    Post my question about races on US forum please. May be its just bug and blizz dont know about it. Im on EU.

    Posted in: Data
  • 0

    posted a message on Selectable custom race: still impossible?

    I know i can create new race in data editor. But how can i make it selectable in game lobby for UI changing purposes?

    Posted in: Data
  • 0

    posted a message on access to custom image

    I have simply layout with custom image

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="ConsolePanel" name="GameUI/UIContainer/ConsolePanel" file="GameUI">
            <Frame type="Image" name="BlackBackground1">
                <Anchor side="Bottom" relative="$parent" pos="Max" offset="0"/>
                <Anchor side="Top" relative="$parent" pos="Max" offset="-392"/>
                <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
                <Anchor side="Right" relative="$parent" pos="Min" offset="656"/>
                <Texture val="Assets/Textures/BlackBackground1.dds"/>
                <Visible val="true"/>
            </Frame>
        </Frame>
    </Desc>
    

    How can i get access to "BlackBackground1" to change its texture via triggers?

    Posted in: UI Development
  • 0

    posted a message on Unit name style

    Thank you Ahli634!!! It is exactly what i need.
    Also i can replace all fonts using this method, and don`t need to dig into layouts to do this.

    Posted in: UI Development
  • 0

    posted a message on Tooltip styles

    Is there a way to change text styles in tooltips? I only found way to change command card tooltip, but there is also too much different tooltip frames in UI.

    Posted in: UI Development
  • 0

    posted a message on Unit name style

    Bump. Still need help!!!

    Posted in: UI Development
  • 0

    posted a message on Hide Experience bar
    Quote from MasterWrath: Go

    @Dzuke911: Go It might not be an element that you can hide. Try moving it offscreen instead. Something like move to bottom with a y offset of -200. If that doesn't work, I don't know.

    Thx, now it works almost fine.

    Posted in: UI Development
  • 0

    posted a message on Hide Experience bar

    I created two triggers:

     HookUpExpBar
        Events
            Timer - Elapsed time is 1.0 Game Time seconds
        Local Variables
        Conditions
        Actions
            Dialog - Hooks up an existing Progress Bar in the standard UI called "UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneHero/ExperienceBar"
            Variable - Set ExpBar = (Last created dialog item)
    
     PlayerSelectedUnit
        Events
            Unit Selection - Any Unit is Selected by player Any Player
            Unit Selection - Any Unit is Deselected by player Any Player
        Local Variables
        Conditions
            (Number of Living units in (Selected units for player (Triggering player))) == 1
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    ((Unit type of (Triggering unit)) has Heroic attribute) == True
                Then
                    Dialog - Show ExpBar for (Player group((Triggering player)))
                Else
                    Dialog - Hide ExpBar for (Player group((Triggering player)))
    

    ExpBar is global dialog item variable.

    But experience bar is still showing on non heroic units. Where is mistake? It is showing even if i just create trigger: "Any unit is selected->hide ExpBar", without any conditions.

    Posted in: UI Development
  • 0

    posted a message on Hide Experience bar

    Ok, i can do that, but how to hookup experience bar?

    Posted in: UI Development
  • 0

    posted a message on Hide Experience bar

    Veterancy with hidden flag does not change anything in the unit`s interface.

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