v0.5.7 - Bugfix #25
john32b
announced in
Announcements
Replies: 1 comment
-
The code for that gif uses the djFlixel helper object StepTimer to trigger ticks for the '...' label, here is the abbreviated code: m.createPage("main","Main Menu").add(
"-|New Game | link | n_game | D
-|Connect | link | connect
-|Options | link | @options
-|Quit | link | id_quit | ?pop=Really?:Yes:No")
.par({ pos:'screen,c,c', y:10, x:20, slots:10});
// ...
// ...
m.onItemEvent = (a, item) -> {
if (a == fire && item.ID=="connect")
{
var ST = new StepTimer(true, (tick, done)->{
if (!done) {
var dots = StringTools.lpad('', '.', tick % 4);
m.item_update(null, "connect", (it)->{
it.label = "connecting" + dots;
it.disabled = true;
});
}
else{
m.item_update(null,"connect", (it)->{
it.label = "Connected!";
});
m.item_update(null,"n_game", (it)->{
it.disabled = false;
});
}
});
ST.start(0, 13, -0.25); // negative time : Tick every 0.25 seconds
}
};
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem: Centered Items when changing in size would not revert back to center.
This is now working for both focused and unfocused items.
Beta Was this translation helpful? Give feedback.
All reactions