MagicWE
MagicWE copied to clipboard
[TODO] BlockPalettes
Description:
Add block palettes and presets
These can be created from a selection or manually entered. Palettes save with the session and can be named. They also allow for use of %
signs to define the relative percentage.
Play together nicely with masks (#218)
TODO list:
- [x] Add palettes
- [x] Parse palettes
- [ ] Save / load palettes
- [x] Add weighted randomization (
%
sign) (Idea:Palette::getBlocks() : \Generator
yields the block - [x] Some kind of serialization
- [ ] UI
- [ ] Palette::swap to replace all palette entries with another, allowing for quicker //rotate and //flip?
Working code here https://github.com/thebigsmileXD/MagicWE2/tree/palette and here https://github.com/thebigsmileXD/MagicWE2/tree/palette-preview
Waiting for feedback. If you have twitter, please check https://twitter.com/XenialDan/status/1419723539654062094 and leave your ideas + feedback there
Current progress