UI Modding

Status
Not open for further replies.
Level 4
Joined
May 13, 2010
Messages
66
Hey guise,

I'm trying to move the command card around. Not the graphics, just the black bit where the buttons are placed. Now, the file to edit would seem to be the one in C:/Program Files/StarCraft II/Mods/Core.SC2Mod
In that MPQ, it's in Base.SC2Data/UI/Layout/UI/GameUI.SC2Layout

I can edit that file fine, my question is, how do I let a map or mod use it so that the changes apply to just one map or mod, and not to the entire game?

Cheers
 
Level 8
Joined
May 31, 2009
Messages
439
I don't think that is possible. If you want to create a custom command card, use "Create dialog item from template", however hotkeys won't work for such a command card.

As M0rt said, it won't be possible through the data editor. Does anyone know if the keyboard trigger permits you to press any button now? Or is it still just the arrow keys?

Cause if you can set it up as any button you want, then you could definitely set up a trigger for it.
 
Level 4
Joined
May 13, 2010
Messages
66
I don't think that is possible. If you want to create a custom command card, use "Create dialog item from template", however hotkeys won't work for such a command card.

I want the hotkeys to work for abilities and spells, so that's why I tried modding it.

Why wouldn't it be possible? I can import the file into a map fine, either via MPQ editing or the editor's Importer module, I just can't get the changes to apply.
 
Level 8
Joined
May 31, 2009
Messages
439
Wait wait wait! I jsut had a CRAZY IDEA!

What if you would just "hide" the UI, but place the abilities on it anyways, so the hotkeys keep functioning. Just attribute a certain button on-screen to one of the buttons on the hidden command card.

If you're trying to make them be able to move their abilities around, just make the switch between abilities on the hidden command card.

Do you understand what I'm trying to say? Cause while I'm explaining, I have a feeling I'm not making much sense here.

Anyways, this way you won't have to set up a hotkey to every "on-screen" button, but rather the ones that are already set up in the data editor.
 
Level 4
Joined
May 13, 2010
Messages
66
Here's an even crazier idea:
Create custom buttons that fill the entire command card with a design of your choosing.
HOLY CRAP, CAN I GET A /FACEDESK?

You DO realise that you can't use hotkeys with dialog buttons? And that if you trigger it, it generates a lot of network traffic?

I think I have worked out a workaround, but I'll have to test it first to see if it'll work.
 
Level 4
Joined
May 13, 2010
Messages
66
Uhh.. you don't need custom UI for custom buttons.
And nobody said anything about hotkeys.
I'm simply saying create a bunch of buttons with the design you want and assign them
to the empty slots in the command card. Problem solved.

Wouldn't they still be in the same area as the standard command card? I want them moved across to (roughly) the middle of the screen.

EDIT
Nevermind, you mean "Dialog - Create a Image for dialog (Last created dialog) using the template "CommandPanel/CommandPanelTemplate"". At least, I think you do :p

EDIT2 But to do that you'd probably have to hide the game UI which disables the command card hotkeys anyway.
 
Level 4
Joined
May 13, 2010
Messages
66
Do you want an "Effin crazy idea"?

Alpha out all UI textures, and all the icons you are going to use, and simply create a dialog with the buttons you want to use. Hotkeys will still work.

This is something like what I decided to do, except that you can only alpha out the modeled UI section, not the black bits where the command card buttons are. But I'll put an image or something else over the top of that.
 
Status
Not open for further replies.
Top