Hi! Thanks for checking the topic. =)
I'm back with yet another question, haha. Hopefully this won't be that complicated, or simply..not possible. Well, I hope it isn't not possible, but..
Okay shutting up and moving on! lol
What I mean to ask, is whether it's possible to open the Menu, Message Log, and Help UI's using only triggers.
If it's possible, I'd like to shove all of them to the right one 'Button', and put one of my own in there with a more natural looking 'F8' instead of..uh.. F13? lol
Hi! Thanks for checking the topic. =) I'm back with yet another question, haha. Hopefully this won't be that complicated, or simply..not possible. Well, I hope it isn't not possible, but.. Okay shutting up and moving on! lol
What I mean to ask, is whether it's possible to open the Menu, Message Log, and Help UI's using only triggers. If it's possible, I'd like to shove all of them to the right one 'Button', and put one of my own in there with a more natural looking 'F8' instead of..uh.. F13? lol
To answer your question: I don't know if that is possible.
Now to give an alternative :)
You can actually shrink the size and change the texts of the Menu buttons. so you could for example make them half-size and change the Message Log to simply Log, and just leave achievements out of the list of buttons.
changing the size of the buttons is done with layout files (see the link in my sig for a tutorial about them)
Changing the texts is done in the text module. just look for the desired text you want to change, and place your own text instead of it there.
Edit: you can even use images for the buttons if you want to instead of text. I will probably make a tutorial about how to do that sometime in the future, but if you want to know how just ask and I'll post it when I have some more time.
Hi Helral. I didn't have time to edit this topic last n- er.. this morning, but I spent several hours reading through your SC2Layout tutorial before I even saw your comment, lol. There weren't any specifically for what I needed, but I wound up getting an error in SC2 saying that I could not "create battle.net interface panels". This is the sc2layout I used.
Is it just a dumb error related to something i did wrong, or can I not even move the positioning of the MenuBar?
What I was hoping to do was unlink the menubar from the achievement bar, since it used to be based on the relative position of the Achievement bar, instead of have actual coordinates. By unlinking it, I could just hide that achievement bar using triggers, then add my own button in it's place.
Idk what the difference between our files is, but I copy-pasted yours instead of the one I wrote, and it worked.
Soooo not complaining! It looks fantastic! Thanks so much for your help!!
I'm putting you in the credits no matter what you say ;D
Hate to be a bother again, but I tried my hand at adding a new button and I got the same error as before >>
This is really quite bothersome, lol...
Hate to be a bother again, but I tried my hand at adding a new button and I got the same error as before >> This is really quite bothersome, lol...
use dialogs to add additional buttons. blizzard simply doesn't allow users to create custom menubar elements. Also you can not (easily) connect SC2Layout generated buttons with triggers, while it is very easy to connect dialog item generated buttons with triggers.
so basicly:
create dialog and position next to menubar
hide dialog background
create button for dialog and position it where you want it.
set button image to be the same as the one used by the menu-buttons.
Ah okay. I had a button created already using triggers, but I figured it would be better to use the SC2Layout if it was possible. At least now I know for sure it isn't. Thanks alot for your help- the UI is now very shiny. =)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi! Thanks for checking the topic. =) I'm back with yet another question, haha. Hopefully this won't be that complicated, or simply..not possible. Well, I hope it isn't not possible, but.. Okay shutting up and moving on! lol
What I mean to ask, is whether it's possible to open the Menu, Message Log, and Help UI's using only triggers. If it's possible, I'd like to shove all of them to the right one 'Button', and put one of my own in there with a more natural looking 'F8' instead of..uh.. F13? lol
To answer your question: I don't know if that is possible.
Now to give an alternative :)
You can actually shrink the size and change the texts of the Menu buttons. so you could for example make them half-size and change the Message Log to simply Log, and just leave achievements out of the list of buttons.
changing the size of the buttons is done with layout files (see the link in my sig for a tutorial about them)
Changing the texts is done in the text module. just look for the desired text you want to change, and place your own text instead of it there.
Edit: you can even use images for the buttons if you want to instead of text. I will probably make a tutorial about how to do that sometime in the future, but if you want to know how just ask and I'll post it when I have some more time.
Hi Helral. I didn't have time to edit this topic last n- er.. this morning, but I spent several hours reading through your SC2Layout tutorial before I even saw your comment, lol. There weren't any specifically for what I needed, but I wound up getting an error in SC2 saying that I could not "create battle.net interface panels". This is the sc2layout I used.
Is it just a dumb error related to something i did wrong, or can I not even move the positioning of the MenuBar? What I was hoping to do was unlink the menubar from the achievement bar, since it used to be based on the relative position of the Achievement bar, instead of have actual coordinates. By unlinking it, I could just hide that achievement bar using triggers, then add my own button in it's place.
@Zetal: Go
drop the template='....' parts of the frame, that is probably causing the error.
I got rid of the template="MenuBar..." in line 6. Is there another? This is the message I've been getting exactly.
"Cannot create frame: MenuBarTemplate. Frames of type: MenuBar are marked as Blizzard Only and cannot be created by users."
@Zetal: Go
the line: <Frame type="MenuBar" name="MenuBarTemplate">
should be: <Frame type="MenuBar" name="MenuBar">
didn't notice that the first time....
I gave that a shot and I still wound up with the same error =( I'm starting to worry whether this is even possible..urrgh.
Updated sc2layout file:
@Zetal: Go
ow... just had time to test it myself ;p here is the last problem fixed:
the first frame line - name="GameUI/UIContainer/ConsoleUIContainer" - should be - name="GameUI/UIContainer/FullscreenUpperContainer"
Also should the Left side anchor not be pos="Min" instead of pos="Max" ? or do you want it offscreen?
Urrrggh this sucks it still won't work for me D= and you tested this yourself? What the heck! lol
What's the name of your file? Could that affect it?
:D
Idk what the difference between our files is, but I copy-pasted yours instead of the one I wrote, and it worked. Soooo not complaining! It looks fantastic! Thanks so much for your help!! I'm putting you in the credits no matter what you say ;D
Hate to be a bother again, but I tried my hand at adding a new button and I got the same error as before >> This is really quite bothersome, lol...
use dialogs to add additional buttons. blizzard simply doesn't allow users to create custom menubar elements. Also you can not (easily) connect SC2Layout generated buttons with triggers, while it is very easy to connect dialog item generated buttons with triggers.
so basicly:
I think that would be it trigger-wise.
Ah okay. I had a button created already using triggers, but I figured it would be better to use the SC2Layout if it was possible. At least now I know for sure it isn't. Thanks alot for your help- the UI is now very shiny. =)