Author Topic: Text Offset Not Working  (Read 737 times)

I made a new GUI button profile. I tried using the textOffset feature, but no matter what I set it to, it does nothing. Is there any way to fix this or offset it a different way?

I think badspot said that it was broken. If it is a print on your screen, you can use <just:right> or <just:left> to change it's positions.

I think badspot said that it was broken. If it is a print on your screen, you can use <just:right> or <just:left> to change it's positions.
I can't use <just:whatever> because I want it to be in a specific spot.

Then the only way to do it is create a guitextctrl for the text and using a mouseeventctrl for the button thing

This is the best I could come up with as a replacement.
Code: [Select]
package This
{
function GuiBitmapButtonCtrl::setText(%obj, %text)
{
if(%obj.profile $= "ArcadeButtonLargeProfile")
{
if(getSubStr(%text, 0, 10) !$= "          ")
{
%text = "          " @ %text;
}
}

parent::setText(%obj, %text);
}

function GuiEditorInspectFields::apply(%obj, %name)
{
if(InspectStaticprofile0_27.getValue() $= "ArcadeButtonLargeProfile")
{
if(getSubStr(InspectStatictext0_11.getValue(), 0, 10) !$= "          ")
{
InspectStatictext0_11.setText("          " @ InspectStatictext0_11.getValue());
}
}

parent::apply(%obj, %name);
}
};
activatePackage(This);
« Last Edit: May 31, 2013, 07:25:16 AM by jes00 »