-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] FlxUIButton resets sprite to the default when resize and UpOverDown are used. #228
Comments
Should it calling it for static graphics just tell it to set the
|
No, loadGraphicUpOverDown doesn't load a static graphic from what I understand. It loads a graphic which switches when you hover over, or click, the button. |
Sorry, I meant that the graphic frames are static rather than pieced together like slice9. When calling If you can provide any graphic examples of the expected behavior it would be appreciated. |
I do picture rescaling each piece of the graphic to the specified size. I can try to create an example later, but basically I'm trying to create an arrow button using the built-in Flixel graphic, but the button is too small as is and I would like to make it larger. Trying to use the scaling function replaces the graphic with a square button which is clearly not intentional. |
Expected behavior: the UI button should display the provided graphic
FlxUIAssets.IMG_BUTTON_ARROW_UP
at the specified size.Actual behavior: the UI button resets its graphic to
FlxUIAssets.SLICE9_BUTTON
before performing aloadGraphicSlice9
operation to create the button of the desired size.The text was updated successfully, but these errors were encountered: