a new method has been uncovered by looking at the Aiur Chef MPQ file.
you can "override" the GameUI file, it's more an extend then override though.
create an SC2Layout file.
Give it the following content:
<Desc>
</Desc>
Between the 2 Desc tags (one opens up the element the other closes it) we will place our own changes to the UI. See the following chapter for more information on what to place there.
Import it into the map at the location you want. (eg. CustomLayout)
Then go to the Data Editor -> Game UI Data (Data Type) -> UI - Custom Layout Files field, and add it to the list by browsing to it.
Aiur Chef map Inventory setup
In the Aiur Chef map the inventory appeared always visible and at another location then the old one. This was just an illusion. They did the following:
Create an Inventory Ability with 6 Inventory Container slots
Reposition the openbutton for these Container Slots to the middle of the screen.
they did this as follows:
Create an override UI file.
create a frame that overrides the existing frame:
<Frame type="InventoryPanel" name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel" file="GameUI">
</Frame>
Time for a bit of explanation about what we see above. The frame type matches the InventoryPanel's frame type. The name contains the entire path to the original Inventory location and the file specifies where that this frame is located. (more detailed information about this information will be added to the wiki)
Next they adjusted the Inventory Container and the InventoryButtons which are already added through the template.
i tried that before, but it doesnt work, i guess the index is missing which container has to be shown, but the indexes are not in the templates themself
the UI before the cinematic and after the cinematic shouldn't have changed. if it does then it is bugged. you can still manually re-enable parts of the UI using the Show UI Frame. At least you should be able to since that one sets the Visible=false to Visible=true.
Wow Helral! Great job finding the whole reference for textures! I tried finding them earlier, without any success. Mind telling me where you got them from?
it's located in the patch file at Mods\Core.SC2Mod\Base.SC2Data\GameData\Assets.txt
It probably misses the base information, since I haven't combined the 2 files, and sc2 might do that.
The method I had described here will cause SC2 to crash when a new patch is released
The by blizzard used method is described below in my second post.
Tutorial about the SC2Layout Files Override Method can be found here.
Knowledge from Blizzard's Aiur Chef
The following things were noticable about the UI at that custom map:
GameUIOverride.SC2Layout file from the Aiur Chef map.
Override UI Files
a new method has been uncovered by looking at the Aiur Chef MPQ file.
you can "override" the GameUI file, it's more an extend then override though.
create an SC2Layout file.
Give it the following content:
Between the 2 Desc tags (one opens up the element the other closes it) we will place our own changes to the UI. See the following chapter for more information on what to place there.
Import it into the map at the location you want. (eg. CustomLayout)
Then go to the Data Editor -> Game UI Data (Data Type) -> UI - Custom Layout Files field, and add it to the list by browsing to it.
Aiur Chef map Inventory setup
In the Aiur Chef map the inventory appeared always visible and at another location then the old one.
This was just an illusion. They did the following:
they did this as follows:
<Frame type="InventoryPanel" name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel" file="GameUI">
</Frame> Time for a bit of explanation about what we see above. The frame type matches the InventoryPanel's frame type. The name contains the entire path to the original Inventory location and the file specifies where that this frame is located.
(more detailed information about this information will be added to the wiki)
Next they adjusted the Inventory Container and the InventoryButtons which are already added through the template.
They relocated the entire frame, and only Button05 inside the frame.
These changes would result in the frame being there.
Next they changed the background of the inventory panel and the size by adding these 2 frames to the InventoryPanel:
placeholder 2
Hehe I feel like sticking with dialog based UI stuff. =)
When hiding the elements, i am still searching which one is causing the black image on the bottom
for me <Visible val="false"/> didnt work so i did the <!> which is working but the black image is remaining
@BeLugh: Go
in the data editor go to the game UI data, there set World Console Bottom to 0
cool
i think i solved my problems for now ^^
thank you
@BeLugh: Go
I just noticed I answered wrongly to your question ;)
you encountered the Portrait I assume, you need to move it offscreen or something alike :)
No, the answer was correct
Do you have an idea if its possible to put an item container into a dialog as well?
That would help to make excellent looking inventories!!! ^^
P.S: and always opened that you dont need the item container open/close buttons anymore
@BeLugh: Go
try the "InventoryPanel/InventoryPanelTemplate" Dialog Item Template not sure if it works correctly though ;p
i tried that before, but it doesnt work, i guess the index is missing which container has to be shown, but the indexes are not in the templates themself
Nice tutorial, thanks!
I noticed that when using the following code in combination with your UI files caused most parts of the UI to remain hidden. Looks like an editor bug?
CinematicMode(true, (PlayerGroupAll()), c_transitionDurationImmediate)
CinematicMode(false, (PlayerGroupAll()), c_transitionDurationDefault)
I had this in my map to have a nice transition from a hidden UI to a normal UI. Ofcourse its not neccesary anymore now.
Would love to do something like this too.
@Helral: Go
Hey Move all your documented Information to this page on the WIKI
http://wiki.sc2mapster.com/galaxy/import/layout/
relative="$parent"
Just curious but what is parent?
I've noticed that the whole inventory is relative to it.
Also it seems both GameUI and most of InventoryPanel you can adjust the button's position up down left right
However the inventory window only seems to move up and down not left and right.
Sadly still not found a way to have it auto open.
@Rileyb80: Go
$parent is the parent frame of that frame.
@nexius22: Go
the UI before the cinematic and after the cinematic shouldn't have changed. if it does then it is bugged. you can still manually re-enable parts of the UI using the Show UI Frame. At least you should be able to since that one sets the Visible=false to Visible=true.
@Helral: Go
Wow Helral! Great job finding the whole reference for textures! I tried finding them earlier, without any success. Mind telling me where you got them from?
@petrov1: Go
it's located in the patch file at Mods\Core.SC2Mod\Base.SC2Data\GameData\Assets.txt
It probably misses the base information, since I haven't combined the 2 files, and sc2 might do that.
<Visible val="false"/> doesn't seem to work most of the time. I am currently unable to hide a command panel button with it, like this:
The visible val line seems to have no effect.
Also, when trying to hide entire frames, like the Minimap, that doesn't work either:
Seems odd to me.