I really have a very simple request but I can't seem to figure this one out. I'm trying to create a simple dialog label inside the dialog but I can't seem to get the text size to increase. No matter what I set the text size to, it's always too small to read in the game. I've edited text before with other things and it changes, and then other times it seems to never change.
I suppose I'm not understanding how the text editing or UI editing part of the editor works. Could someone help me out? Or is this a question for UI development?
You can't modify font size directly in this language actually, what you have to do is Set the Image Style of the Dialog Control (in this case, a label) you're trying to modify.
There are a couple image styles that I've found that work readily
"Header12" (font size 12)
"Header18" (etc.)
For some reason I can't get any more to actually work, perhaps you could though.
As far as I know, you should be able to use almost all of the ones here. Be careful, some of them change the position of your label. If one doesn't work it's possible that it anchored your label to a different part of the screen.
Is this with the UI Feature and edits the Dialog Label text variable?
He means the "Set Dialog Item Style" action. It controls the style the label uses. A used style sets the defailt color, vertical & horizontal alignment, font and a few other things like the text size.
To answer your question in a short way: no.
It's possible to alter the used style in the labels of the default UI, too. You can do that with triggers or with UI xml code in the UI module.
With triggers you need to hook up the element. The path to the element does not include the leading "GameUI/". The rest of the path is just following the tree in the UI module.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I really have a very simple request but I can't seem to figure this one out. I'm trying to create a simple dialog label inside the dialog but I can't seem to get the text size to increase. No matter what I set the text size to, it's always too small to read in the game. I've edited text before with other things and it changes, and then other times it seems to never change.
I suppose I'm not understanding how the text editing or UI editing part of the editor works. Could someone help me out? Or is this a question for UI development?
You can't modify font size directly in this language actually, what you have to do is Set the Image Style of the Dialog Control (in this case, a label) you're trying to modify.
There are a couple image styles that I've found that work readily
"Header12" (font size 12)
"Header18" (etc.)
For some reason I can't get any more to actually work, perhaps you could though.
http://www.sc2mapster.com/wiki/sc2-api/game-files/layout/font-styles-sc2style/
As far as I know, you should be able to use almost all of the ones here. Be careful, some of them change the position of your label. If one doesn't work it's possible that it anchored your label to a different part of the screen.
@unclesatan: Go
Awesome! Thanks so much for the help. Was able to get that working!
Glad I could help!
@unclesatan: Go
Is this with the UI Feature and edits the Dialog Label text variable?
He means the "Set Dialog Item Style" action. It controls the style the label uses. A used style sets the defailt color, vertical & horizontal alignment, font and a few other things like the text size.
To answer your question in a short way: no.
It's possible to alter the used style in the labels of the default UI, too. You can do that with triggers or with UI xml code in the UI module.
With triggers you need to hook up the element. The path to the element does not include the leading "GameUI/". The rest of the path is just following the tree in the UI module.