Commit a0b9db1
Add a modal Dialog component (#245)
* Create src/Dialog.ts and test
* Add stories
* Center the anchor
* Fix buttons, colors
* Fix buttons in Sprite stories
* Rename to DialogSolidColors, remove the logs
* Use Texture.WHITE as default backdrop, make dialog buttons optional, add 2 stories
* Modify createBunnyBackdrop to display a scrolling grid of bunnies
* Remove NineSliceDifferentSizes story, move createBunnyBackdrop and give it a scrollSpeed param
* Add new backdrop.ts file and JSdoc comments
* Use scroll box for the letter grid
* Fix checkbox hit area by adding fill()
* Reduce the height
* Add getters, rename properties - to match the established style of the other components
* Add disable animations property
* Update user stories
* Drop disableAnimations and use animations like FancyButton
* Update the ConfirmDialog story to use FancyButtons
* Make the FancyButtons in the ConfirmDialog story fancier
* make padding to be applied horizontally
* make padding do not effect content margings
* use closeOnBackdropClick setting in all stories if present
* fix defaultButtonHoverColor & defaultButtonPressedColor can be 0
* refactor Dialog buttons
* Fix the closeOnBackdropClick bug when dialog body is clicked
* Remove the animated bunny backdrop
* Remove the solid colors dialog
* Fix letter alignment
* Add margin between buttons
* Add spacing between non-fancy buttons
* fix rest of the issues and update content implementation
* fix issue
* Fix warnings
* Fix closing the 'Use Sprite' dialogs
* fix story
* add onClose event
* update docs
* fix issues
* fix lint
---------
Co-authored-by: Dmytro Soldatov <cyberdexx@gmail.com>1 parent 9cd5a27 commit a0b9db1
File tree
13 files changed
+1975
-2
lines changed- src
- stories
- assets
- dialog
- scrollBox
- utils
- tests/components
13 files changed
+1975
-2
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Loading
0 commit comments