About Store Forum Documentation Contact



Post Reply 
Problem with Gui.tds_button
Author Message
fatcoder Offline
Member

Post: #1
Problem with Gui.tds_button
When setting a custom TextDS for Gui.tds_button, it doesn't appear to be scalled correctly on the button.

For example, try adding the following line of code to the Buttons tutorial in the Init() method.

Code:
Gui.tds_button = *TextDSs("../Data/Gui/Text/white.txds");

The text comes out so small on the button that it cannot be read. If you use that same text on any other control it is fine. If just seems to be a problem with buttons.
01-16-2012 04:09 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Problem with Gui.tds_button
Button's scale tds_button by the height of the button
01-18-2012 06:41 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #3
RE: Problem with Gui.tds_button
Thanks. I figured that out through trial and error. I still think there is something wrong with it though. In order for the text to be scaled correctly on the button, you need to set the text to a massive size in the Text Editor. So big in fact that the text goes off the screen in the Text Editor. Try it out and you'll see what I mean.
01-18-2012 10:49 PM
Find all posts by this user Quote this message in a reply
Post Reply