Create a Button
Its so simple, but i am to silly.
i want simply create a button in lua using that: Code:
local button = CreateFrame("Button", "only_for_testing", mainframe) |
here is my quick'n'dirty solution, but......its not realy fine.
Code:
local fo = button:CreateFontString() PS: I see, the button has not the size (200x50) it should have, so the text is in the middle, but the button is not right, wtf ! |
I don't recall ever having font alignment problems on my buttons but what I always did was use a pre-defined font type on it which may have been set up correctly.
After creating the button and setting the buttons features I would then do the following: Code:
button:SetDisabledFontObject(GameFontDisable) |
So, i have it all right, I must scale the texture of the Button.
here is the working script for all other having this problem: Code:
local button = CreateFrame("Button", nil, mainframe) |
Cool, glad you got it all sorted.
|
All times are GMT -6. The time now is 06:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI