Hi, How do I make a Dialog box appear ontop of the menu buttons instead of it being underneath them. I try to bring up a UI dialog on the part of the screen with the menu buttons and it shows up underneath the buttons so i cant see it. Is this doable with triggers or is this a UI SC2Layout file thing? I asked in triggers got no response so i assume its UI layout related.
As far as I'm aware, dialog items are always behind the sc2layout stuff. That said, dialog items and layout files were changed during the 1.5 patch and I haven't fully tested them out yet.
Why exactly would you want a dialog item in front of the menu? Is it just the visual effect? If that's the case, you can create a sc2layout frame in front of the menu. I'm not an expert on these files, but I made it work in a previous map of mine. This is a copy of the layout file for that part:
<Frametype="Image"name="InfoPanelBorder"><Anchorside="Left"relative="$parent/InfoPanel"pos="Min"offset="-15"/><Anchorside="Right"relative="$parent/InfoPanel"pos="Max"offset="100"/><Anchorside="Top"relative="$parent/InfoPanel"pos="Min"offset="-30"/><Anchorside="Bottom"relative="$parent/InfoPanel"pos="Max"offset="20"/><Textureval="MiddleBar.dds"/><!-- the image used--><TextureTypeval="Normal"/><RenderPriorityval="499"/><!-- This changes the priority of the render. For me, I put it BEHIND the menu. You would want to change this --></Frame>
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Because the menu appears ontop of dialog items. This was not a problem back when you had the menu buttons in the upper left, but then they moved them to the bottom right where i had my UI dialog.
This is what i would need to change, i found a trigger for render priority but it didnt change anything.
I believe the only way would be to have your dialog interface built into the GameUI via SC2Layout files. It would actually be fairly simple.
Locate the menu buttons in the layout files (subtree of GameUI). Add a new frame just below menu buttons, as a sibling. With menu buttons and this new frame being siblings, you could specify the render priority of each and have your dialog menu appear on top.
The new frame should be type frame. You don't have to actually write the entire layout of your dialog interface in the layout files. Instead, use Hookup Standard Dialog Item to get this new frame you created as a trigger dialog item. Then create the rest of your dialog interface in this dialog item using Create Dialog Item In Panel.
I'm pretty sure that's the only way, so if it's beyond you, either learn it piece by piece or change your plans. :P
Hi, How do I make a Dialog box appear ontop of the menu buttons instead of it being underneath them. I try to bring up a UI dialog on the part of the screen with the menu buttons and it shows up underneath the buttons so i cant see it. Is this doable with triggers or is this a UI SC2Layout file thing? I asked in triggers got no response so i assume its UI layout related.
Thanks.
@lemmy734: Go
As far as I'm aware, dialog items are always behind the sc2layout stuff. That said, dialog items and layout files were changed during the 1.5 patch and I haven't fully tested them out yet.
Why exactly would you want a dialog item in front of the menu? Is it just the visual effect? If that's the case, you can create a sc2layout frame in front of the menu. I'm not an expert on these files, but I made it work in a previous map of mine. This is a copy of the layout file for that part:
@zeldarules28: Go
Because the menu appears ontop of dialog items. This was not a problem back when you had the menu buttons in the upper left, but then they moved them to the bottom right where i had my UI dialog.
This is what i would need to change, i found a trigger for render priority but it didnt change anything.
@lemmy734: Go
I believe the only way would be to have your dialog interface built into the GameUI via SC2Layout files. It would actually be fairly simple.
Locate the menu buttons in the layout files (subtree of GameUI). Add a new frame just below menu buttons, as a sibling. With menu buttons and this new frame being siblings, you could specify the render priority of each and have your dialog menu appear on top.
The new frame should be type frame. You don't have to actually write the entire layout of your dialog interface in the layout files. Instead, use Hookup Standard Dialog Item to get this new frame you created as a trigger dialog item. Then create the rest of your dialog interface in this dialog item using Create Dialog Item In Panel.
I'm pretty sure that's the only way, so if it's beyond you, either learn it piece by piece or change your plans. :P
@MasterWrath: Go
Thanks
Seeing as the location change of the menu is your actual problem, wouldn't moving the menu items back to their old location fix your problem?