it doesn't seem possible to adjust the location of that frame. this is probably due to the fact that it is filled with information depending on the amount and which units are selected.
since you've already said on IRC that you've got it hidden, I'll just mention the method you used. (Although most people will probably not need this.)
The method used by Maknyuzz to hide the Unitgroup panel was making the Infopanel at least 3 times as high compared to the distance from the top of the infopanel to the bottom of the screen.
I would like to move the Transmission Portrait, but I was not able to find it at all. Help? ;)
As I said in IRC (but others might not know it yet)
use triggers for the portraits.
Cinematic Portrait function retrieves the portrait at a given side.
and then you can adjust that portrait using the other portrait functions
I have got a problem as well. When rightclicking an item in the inventory you can move it around and the item icon is displayed next to your mouse cursor. For some reason the icon is displayed with an offset of about 500 to the right for me.
And I can't find where to set the position of the icon...
Location of the inventory cusor image:
GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/Cursor
If I switch the $parents with $this, the container collapses, so I am quite sure, I have the correct frame here. But whatever I use as offset, it does not change anything.
I also tried using $parent for all anchors, switching Min and Max, every offset positive and negative in different combinations. I got exactly 2 results: standard container with no change at all, or entirely collapsed container, showing a small part (ca 4*10 pixels or something) of the model.
The thing about inventory panels is that they are repositioned in-game. so basicly the offsets are reset, also the right or left anchor is defined in the inventory ability itself. so you can only adjust the relative value of that. I think you should be able to move it up and down, but not left and right.
Did someone remove the other big SC2Layout thread? If yes, my last questions;
How can you add a tooltip to an UI element (such as a button)?
Is there a way to read/write a value from a SC2Layout-based progressbar or else by using triggers?
Did anyone manage to move the "InfoPaneGroup" frame within the "InfoPanel" (sounds easy but really isn't)?
don't think that that is possible with the sc2layout files :( although you might be able to bind a certain GameUI data to a certain player at some point....
Hey Helral thanks once again for making a high level tutorial for more experienced mapmakers. I will probably have to do something quite similar to your setup on your first screenshot. ie I want minimap and inventory but hide the rest.
well you can just use the SC2Layout files I supplied there, hide the other still unneeded panels with the Trigger: "Hide UI Frame" which I used for:
Thanks for explaining how to move ui panels and frames. I don't fully understand how to find the correct syntax of names for what I need to move. My goal is to move the chat box to the bottom right hand corner. Any tips would greatly be appreciated.
Locate the chatbox in one of the sc2layout files.
Keep following the information upwards of the chatbox and note down the names of the parent elements.
If you find a name ending on Template then look where that Template is used and don't add the name ending on Template to the list.
the end result should start with "GameUI/"
look if the Top or Left anchors are defined * if so then add the remove anchors for the ones that are defined.
Great guide. But I've got a question :). Is it possible to have one unit's abilities contantly onscreen? Almost like a second command card, but for a unit you don't have selected? I could do it with a custom dialog, but that would sort of suck.
not through SC2Layout files. maybe there is another method but I don't know of any.
depends on what you want to achieve with anchoring it left and right.
which of the following do you want to achieve?
I want the panel to stretch so that it fills up the space between the left and right anchor.
* untested: set the left and right anchor, and then set the width to 0 or -1
I want it to be centered in the middle using the already defined width between the left and right anchor.
* Set the left and right anchor.
Use the ingame function "Show/Hide UI Frame" with Hide and Supply Panel.
Then import the attached file into your map and set it as a custom layout file in the data editor.
I've moved the supplybackground away so it isn't visible anymore.
1. How do I remove the black bar at the bottom of my screen?
Go to the Data Editor, data type: Game UI Data.
Select the Default UI Settings and then look for the World Console Bottom. (default value = 200)
Set it to 0. and the black bar at the bottom should be gone.
2. SC2 Crashes when I use my Layout File
There are multiple reasons why SC2 would crash when using a SC2Layout file: if you did not use the override method then the game is probably expecting other information then what you are giving it.
If you did use the override method then check this list:
Are the Element types correctly spelled (case sensitive)
eg. MiniMapPanel instead of MinimapPanel as type can crash the game.
3. How do I remove an Anchor?
You remove anchors by redefining them with an invalid reference. the most simple way to do that is by using one of the following 4 Anchors:
change the relative of the anchors you want to use to $parent.
UI bugs and fixes
The following SC2Layout, Assets.txt files or Information is needed to fix certain UI bugs:
(the file which is linked to the described problem fixes this.)
Hiding supply Icon leaves background of the icon visible: layout file fix
Repositioning, resizing and modifying the command panel.
normally size: 3x5 position: bottom right
tutorial result: 1x15 position: bottom center watch at 720p for readability :)
@Maknyuzz: Go
it doesn't seem possible to adjust the location of that frame. this is probably due to the fact that it is filled with information depending on the amount and which units are selected.
since you've already said on IRC that you've got it hidden, I'll just mention the method you used. (Although most people will probably not need this.)
The method used by Maknyuzz to hide the Unitgroup panel was making the Infopanel at least 3 times as high compared to the distance from the top of the infopanel to the bottom of the screen.
there is an explenation on the wiki about that value and some other as well, might be interesting to read:
SC2Layout: Special Terms or Symbols
As I said in IRC (but others might not know it yet)
use triggers for the portraits.
Cinematic Portrait function retrieves the portrait at a given side.
and then you can adjust that portrait using the other portrait functions
Location of the inventory cusor image:
GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/Cursor
The thing about inventory panels is that they are repositioned in-game. so basicly the offsets are reset, also the right or left anchor is defined in the inventory ability itself. so you can only adjust the relative value of that. I think you should be able to move it up and down, but not left and right.
other thread's last post
@SaucySC: Go
don't think that that is possible with the sc2layout files :( although you might be able to bind a certain GameUI data to a certain player at some point....
well you can just use the SC2Layout files I supplied there, hide the other still unneeded panels with the Trigger: "Hide UI Frame" which I used for:
* if so then add the remove anchors for the ones that are defined.
not through SC2Layout files. maybe there is another method but I don't know of any.
in the latest Patch.Sc2Archive file under "Mods/Corse.SC2Mod/Base.SC2Data/UI/Layout/UI"
@Hookah604: Go
why not just create a new frame which you anchor between them which has the img?
see my minimap panel background in this layout file.
@Hookah604: Go
I ll see if I can figure something out. any panel name which you're toying with.
ps. try the "auto" value.
@Hookah604: Go
depends on what you want to achieve with anchoring it left and right.
which of the following do you want to achieve?
* untested: set the left and right anchor, and then set the width to 0 or -1
* Set the left and right anchor.
@SaucySC: Go
custom layouts just handle the User Interface not input done by the keyboard.
@Kueken531: Go
Use the ingame function "Show/Hide UI Frame" with Hide and Supply Panel.
Then import the attached file into your map and set it as a custom layout file in the data editor.
I've moved the supplybackground away so it isn't visible anymore.
@SaucySC: Go
Answered you in IRC :) adding it to the tutorial.
FAQ
Table of Contents:
1. How do I remove the black bar at the bottom of my screen?
Go to the Data Editor, data type: Game UI Data.
Select the Default UI Settings and then look for the World Console Bottom. (default value = 200)
Set it to 0. and the black bar at the bottom should be gone.
2. SC2 Crashes when I use my Layout File
There are multiple reasons why SC2 would crash when using a SC2Layout file:
if you did not use the override method then the game is probably expecting other information then what you are giving it.
If you did use the override method then check this list:
eg. MiniMapPanel instead of MinimapPanel as type can crash the game.
3. How do I remove an Anchor?
You remove anchors by redefining them with an invalid reference. the most simple way to do that is by using one of the following 4 Anchors:
4. What frame do I adjust to move the background for the Battle Net Friends Button?
The following Frame setup does that:
change the relative of the anchors you want to use to $parent.
UI bugs and fixes
The following SC2Layout, Assets.txt files or Information is needed to fix certain UI bugs:
(the file which is linked to the described problem fixes this.)
The following frames are not completely affected by layout changes:
"Set BattleNet Button Offset".
UI Video Tutorials
Command Panel Tutorial
Repositioning, resizing and modifying the command panel.
normally size: 3x5 position: bottom right
tutorial result: 1x15 position: bottom center
watch at 720p for readability :)
Unlike shown in this tutorial, the method to add the layout has changed as mentioned at this location: How to use custom layour files in your map