-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from LemonInTheDark/restore-better
Refactors operation return handling into its own proc so it can recurse. I don't like just packing all my returns into the same type, thought it would be nicer if returns could like "compose" each other IDK if this breaks some optimization, if it does I can undo it Implements StringMap for mapping strings to strings in configs Implements ConfigWrapped, which wraps some other output with a toml config. Implements BitmaskSliceReconstruct, a config mode that will do its damndest to construct a working png and toml file from a cut dmi. It's not perfect, but it is pretty powerful. Knows how to extract prefixes, delays, and the icon size variables.
- Loading branch information
Showing
6 changed files
with
436 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Bitmask restoration! | ||
# Allows for easy mass extraction of template pngs and their configs from a dmi | ||
# Use this if you have a dmi and you want a cutter config you can edit easily | ||
# Of note, while it tries its best it is nowhere near perfect. We don't parity check against the existing dmi | ||
# And we also do not account for overrided states very well | ||
# Always double check (and be aware that dmi is weird so you may get diffs of 1 rgb value when doin this) | ||
mode = "BitmaskSliceReconstruct" | ||
# List of icon states to pull out | ||
extract = ["0", "3", "12", "15", "255"] | ||
|
||
# Map of name -> state that will be encoded into a positions list later | ||
# Lets you extract particular states and use them to fill in for states later | ||
# Useful to carry over odd snowflake states | ||
#[bespoke] | ||
|
||
# Map of key -> value to set on the created config | ||
# Lets you set arbitrary values on the created config, mostly useful for batch processing | ||
#[set] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.