I have not idea for wath is the sintax. Can you help me?button.label.x = 50;
button.label.y = 50;
// as well change other properties like size, color, etc--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/_0qXrlfGmVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at http://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/d8635ec1-ae4f-4c90-a716-a154fc12bad2%40googlegroups.com.
This should do the trick :)button.labelOffset.set(50, 50);
On Thu, Sep 25, 2014 at 8:59 PM, Rabí Hernández Corona <rabi.he...@gmail.com> wrote:
It was the first thing that I've tried. It doesn't return any error, but there's no visible result.
El jueves, 25 de septiembre de 2014 03:45:49 UTC-5, Andrei Regiani escribió:As far as I remember, you can access the label directly: FlxButton.label (FlxText). Example:button.label.x = 50;
button.label.y = 50;
// as well change other properties like size, color, etc
On Thursday, September 25, 2014 9:29:10 AM UTC+3, Rabí Hernández Corona wrote:Hello,
I have a FlxButton with a custom image, and I need to offset the label.I have not idea for wath is the sintax. Can you help me?
--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/_0qXrlfGmVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/haxeflixel.
btn.labelOffsets = [FlxPoint.get(0,10)];
No, it shouldn't, it's not labelOffset but labelOffsets, an Array<Int> that defines the offsets for each button status. You should be able to use button.label.offset as a "global offset" though, that seems more convenient.
x / y position changes to the button label will be overriden by internal logic.
On Thursday, September 25, 2014 8:06:01 PM UTC+2, Andrei Regiani wrote:
This should do the trick :)button.labelOffset.set(50, 50);
On Thu, Sep 25, 2014 at 8:59 PM, Rabí Hernández Corona <rabi.he...@gmail.com> wrote:
It was the first thing that I've tried. It doesn't return any error, but there's no visible result.
El jueves, 25 de septiembre de 2014 03:45:49 UTC-5, Andrei Regiani escribió:As far as I remember, you can access the label directly: FlxButton.label (FlxText). Example:button.label.x = 50;
button.label.y = 50;
// as well change other properties like size, color, etc
On Thursday, September 25, 2014 9:29:10 AM UTC+3, Rabí Hernández Corona wrote:Hello,
I have a FlxButton with a custom image, and I need to offset the label.I have not idea for wath is the sintax. Can you help me?
--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/_0qXrlfGmVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at http://groups.google.com/group/haxeflixel.
var customOffset = 10;button.labelOffsets[FlxButton.NORMAL].x += customOffset;button.labelOffsets[FlxButton.PRESSED].x += customOffset;button.labelOffsets[FlxButton.HIGHLIGHT].x += customOffset;button.label.offset.x -= customOffset;--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/_0qXrlfGmVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at http://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/9b0f8f39-9c5a-4851-8f90-94269750622e%40googlegroups.com.