mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Add InkType::kEraseInk
This commit is contained in:
parent
b7d03ded07
commit
b879be9c6d
@ -19,14 +19,17 @@
|
||||
#ifndef SETTINGS_INK_TYPE_H_INCLUDED
|
||||
#define SETTINGS_INK_TYPE_H_INCLUDED
|
||||
|
||||
// If you change this enumeration, you should change update the
|
||||
// ContextBar::InkTypeField() UI widget
|
||||
// If you change this enumeration, you should update the
|
||||
// ContextBar::InkTypeField() UI widget. Also, remember that these
|
||||
// indexes are loaded/saved from/to the user configuration file, so
|
||||
// you shouldn't change them.
|
||||
enum InkType {
|
||||
kDefaultInk,
|
||||
kOpaqueInk,
|
||||
kMergeInk,
|
||||
kShadingInk,
|
||||
kReplaceInk,
|
||||
kEraseInk,
|
||||
kSelectionInk,
|
||||
kBlurInk,
|
||||
kJumbleInk,
|
||||
|
@ -251,6 +251,7 @@ public:
|
||||
addItem("Merge");
|
||||
addItem("Shading");
|
||||
addItem("Replace");
|
||||
addItem("Erase");
|
||||
addItem("Selection");
|
||||
addItem("Blur");
|
||||
addItem("Jumble");
|
||||
|
@ -271,6 +271,9 @@ private:
|
||||
else
|
||||
id = WellKnownInks::ReplaceFgWithBg;
|
||||
break;
|
||||
case kEraseInk:
|
||||
id = WellKnownInks::Eraser;
|
||||
break;
|
||||
case kSelectionInk:
|
||||
id = WellKnownInks::Selection;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user