mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
feat: Add advanced button component (#2742)
New button with support for multiple states: <img width="278" alt="image" src="https://github.com/flame-engine/flame/assets/18004353/041c1105-8991-4976-b1a2-0553c149ec4e">
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:examples/commons/commons.dart';
|
||||
import 'package:examples/stories/input/advanced_button_example.dart';
|
||||
import 'package:examples/stories/input/double_tap_callbacks_example.dart';
|
||||
import 'package:examples/stories/input/draggables_example.dart';
|
||||
import 'package:examples/stories/input/gesture_hitboxes_example.dart';
|
||||
@ -129,5 +130,11 @@ void addInputStories(Dashbook dashbook) {
|
||||
(_) => GameWidget(game: JoystickAdvancedExample()),
|
||||
codeLink: baseLink('input/joystick_advanced_example.dart'),
|
||||
info: JoystickAdvancedExample.description,
|
||||
)
|
||||
..add(
|
||||
'Advanced Button',
|
||||
(_) => GameWidget(game: AdvancedButtonExample()),
|
||||
codeLink: baseLink('input/advanced_button_example.dart'),
|
||||
info: AdvancedButtonExample.description,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user