Hi Helral. Good tutorial. Been using the old method for a while now, and is time to port over to this new method as Blizz will disable old way in the future.
A question I have is how do one change a given template? An example would be I'd like to resize the 3 minimap buttons:
What I use to hide those buttons: (just took it from the SC2Layout file that is listed at the tutorial)
And adjusted it to contain your changes. (except for the width/height 33 one)
This is great, however there is one detail that should be mentioned.
I changed the hero panel in one of my maps, and it worked great on single player, but when I tried it on multiplayer, all of our sc2 clients crashed. I simply removed the file with the hero panel changes and I think the problems solved.
All other modifications seem to work the same in multiplayer and single player. Thanks again for the great tutorial and I hope this helps.
Could you perhaps post the file which caused the crash here, then I can see if I can find out what caused the crash, and if there is a way to avoid it.
EDIT:
try setting anchors for this one to make it smaller:
<Frame type='Frame' name='GameUI/UIContainer/FullscreenUpperContainer/TriggerContainer' file='GameUI'>
@Helral: Go
Here's the file that worked on single player only.
edit: I was moving the armor/damage buttons anchor to bottom/bottom right. It seemed to work great for awhile but I noticed it would dc everybody in multiplayer... not exactly a desirable outcome.
I'm experiencing an issue with the new SC2Layout override method. All adjusted frames/buttons/panels disappear after a cinematic mode is on and off. There are still there because mousing over the infopanel for example still yields tooltip descriptions, it's just that they are not visible. If anyone know how to fix this, please do tell.
ahh ok I was wondering why that ui mod had strange results on multiplayer. Thanks helral
edit: I tried removing the Visibility value, and changing it to 'true', it now seems to crash 100% of the time.
removing it removed the problem for me :S
I'll test some with your layout file and let you know the result.
I'm experiencing an issue with the new SC2Layout override method. All adjusted frames/buttons/panels disappear after a cinematic mode is on and off. There are still there because mousing over the infopanel for example still yields tooltip descriptions, it's just that they are not visible. If anyone know how to fix this, please do tell.
did you hide any of the Stubs? (CommandStub/MinimapStub/InfoStub)
Is it possible to add an attribute to the hero panel or a button to the command buttons, rather than moving things around?
I've tried both and nothing seems to work.
Hi there, I want to change the command card to have a width of 8 buttons and possibly change the height also. I want the commandcard to stay in the normal position just stretch further into the middle of the screen.
I'm trying to get my head around all this but I've never tried writing in this script. Would anyone be able to help me? The command card code on the 2nd page was a bit confusing for me as I don't really know what I'm looking at. I can import and use the layout files fine.
It will be much easier to scale the command buttons or to hide the console frames and
scale the command panel. If you want to stretch the right-side model in which the portrait
and the command panel reside you'll need to go through scaling and moving anything to the
left of it, which is a lot!
Is it possible to add an attribute to the hero panel or a button to the command buttons, rather than moving things around? I've tried both and nothing seems to work.
..doesn't work. I have 6 attributes and only 5 of those are visible. BTW, I double checked that it's not the container's size.
well if the game doesn't support showing 6 then you can't get 6 shown....
Okay I've read though all 4 pages of post and have tried everything I can think of to get my Info Panel to the Left Side of the Screen without offsetting it.
The code below is what I'm using currently. (Does not work)
First Picture is what my Layout creates. Second Picture is where I want my InfoPanel (left side), HeroPanel (bottom left) and UnitWireFrame (top left).
@Helral: Go
Thankyou very much! you've been great help.
Hi Helral. Good tutorial. Been using the old method for a while now, and is time to port over to this new method as Blizz will disable old way in the future.
A question I have is how do one change a given template? An example would be I'd like to resize the 3 minimap buttons:
<Frame type="Button" name="GameUI/UIContainer/ConsoleUIContainer/MinimapPanel/MinimapButton" file="GameUI"> <Width val="33"/> <Height val="33"/> </Frame>
<Frame type="Image" name="GameUI/UIContainer/ConsoleUIContainer/MinimapPanel/MinimapButton/NormalImage" file="GameUI"> <Width val="37"/> <Height val="37"/> </Frame>
<Frame type="Image" name="GameUI/UIContainer/ConsoleUIContainer/MinimapPanel/MinimapButton/HoverImage" file="GameUI"> <Width val="37"/> <Height val="37"/> </Frame>
Which doesn't work...
@SphereOfSilence: Go
Bump. Anyone?
What I use to hide those buttons: (just took it from the SC2Layout file that is listed at the tutorial)
And adjusted it to contain your changes. (except for the width/height 33 one)
update:
added a movie tutorial
This is great, however there is one detail that should be mentioned.
I changed the hero panel in one of my maps, and it worked great on single player, but when I tried it on multiplayer, all of our sc2 clients crashed. I simply removed the file with the hero panel changes and I think the problems solved. All other modifications seem to work the same in multiplayer and single player. Thanks again for the great tutorial and I hope this helps.
@Sharicasmi: Go
Could you perhaps post the file which caused the crash here, then I can see if I can find out what caused the crash, and if there is a way to avoid it.
Is there a way to move the render of dialogs created near an UI component?
I would like the command panel is completely visible and not obscured by the dialog.
@Doubotis: Go
what do you mean?
EDIT:
try setting anchors for this one to make it smaller:
<Frame type='Frame' name='GameUI/UIContainer/FullscreenUpperContainer/TriggerContainer' file='GameUI'>
@Helral: Go
Thanks Helral! :)
@Helral: Go Here's the file that worked on single player only.
edit: I was moving the armor/damage buttons anchor to bottom/bottom right. It seemed to work great for awhile but I noticed it would dc everybody in multiplayer... not exactly a desirable outcome.
@Sharicasmi: Go
<Visibilty val='false'/> in that file is the cause of the crashes.
I'm experiencing an issue with the new SC2Layout override method. All adjusted frames/buttons/panels disappear after a cinematic mode is on and off. There are still there because mousing over the infopanel for example still yields tooltip descriptions, it's just that they are not visible. If anyone know how to fix this, please do tell.
@Helral: Go
ahh ok I was wondering why that ui mod had strange results on multiplayer. Thanks helral
removing it removed the problem for me :S
I'll test some with your layout file and let you know the result.
EDIT
the result:
that bit of code causes the crash. to be exact the relative="$parent/$parent". it doesn't crash with relative="$parent".
did you hide any of the Stubs? (CommandStub/MinimapStub/InfoStub)
Is it possible to add an attribute to the hero panel or a button to the command buttons, rather than moving things around? I've tried both and nothing seems to work.
For example:
..doesn't work. I have 6 attributes and only 5 of those are visible. BTW, I double checked that it's not the container's size.
Hi there, I want to change the command card to have a width of 8 buttons and possibly change the height also. I want the commandcard to stay in the normal position just stretch further into the middle of the screen.
I'm trying to get my head around all this but I've never tried writing in this script. Would anyone be able to help me? The command card code on the 2nd page was a bit confusing for me as I don't really know what I'm looking at. I can import and use the layout files fine.
Thanks
It will be much easier to scale the command buttons or to hide the console frames and scale the command panel. If you want to stretch the right-side model in which the portrait and the command panel reside you'll need to go through scaling and moving anything to the left of it, which is a lot!
well if the game doesn't support showing 6 then you can't get 6 shown....
Okay I've read though all 4 pages of post and have tried everything I can think of to get my Info Panel to the Left Side of the Screen without offsetting it. The code below is what I'm using currently. (Does not work)
I have my full SC2 layout file is attached.
First Picture is what my Layout creates. Second Picture is where I want my InfoPanel (left side), HeroPanel (bottom left) and UnitWireFrame (top left).