flixel-ui icon indicating copy to clipboard operation
flixel-ui copied to clipboard

RPG Interface: saveslot handlers doesn't work

Open as3boyan opened this issue 10 years ago • 2 comments
trafficstars

https://github.com/HaxeFlixel/flixel-demos/blob/master/User%20Interface/RPG%20Interface/source/SaveSlot.hx#L42

If I click on play nothing happens(should be some console output)

as3boyan avatar Feb 05 '15 17:02 as3boyan

flixel-ui: 1.0.2

as3boyan avatar Feb 05 '15 17:02 as3boyan

The workaround for this issue I found is to set button.onUp.callback manually after xml gets loaded,

switch(id)
{
 case "id":
    var button = getAsset("button"); //Cast to FlxUIButton
    button.onUp.callback = function ()
    {
    }
}

Should work fine

Anyway SaveSlot(FlxUI) events should get called too, if you use it in DQ, it should work somehow...

as3boyan avatar Feb 10 '15 18:02 as3boyan