About Store Forum Documentation Contact



Post Reply 
Text padding question
Author Message
Houge Offline
Member

Post: #1
Text padding question
Hi! I'm trying to adjust text padding on Button and Tabs (need to have left align), but it doesn't affect anything.
But works on:
ComboBox, MenuBar.
(This post was last modified: 03-27-2017 07:05 AM by Houge.)
03-25-2017 12:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: [Bug?] Text padding not working
Can you let me know which parameter exactly are you talking about?

I've just tested "Gui Skin \ Button \ Text Padd" in the Gui Skin Editor, and applied this skin to a button in the Gui Editor, and padding works as expected.

Make sure your button actually uses this skin, or it's the default skin of your application (and the button doesn't override the default skin).
03-25-2017 10:35 PM
Find all posts by this user Quote this message in a reply
Houge Offline
Member

Post: #3
RE: [Bug?] Text padding not working
Here is the video:




Scaling works fine, but text doesn't move left or right, only up or down.
What am i doing wrong?
(This post was last modified: 03-26-2017 09:57 AM by Houge.)
03-26-2017 09:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: [Bug?] Text padding not working
You have to control the button alignment in the Gui Editor, in the Button properties (not in the Gui Skin Editor).
Or through code using Button.text_align;
This setting is controlled for each button separately, so you can't change it globally for all buttons.
By default the alignment is centered, so adjusting the padding won't make a difference (because of center alignment).
You will see a difference in padding once you change alignment.
03-26-2017 10:46 PM
Find all posts by this user Quote this message in a reply
Houge Offline
Member

Post: #5
RE: Text padding question
Thanks for clarification, my fault then smile
03-27-2017 07:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply