Added palette selector
This commit is contained in:
parent
b465f73e09
commit
c0474690f7
3 changed files with 168 additions and 51 deletions
|
|
@ -121,7 +121,7 @@ void TreeListing::layout(const Clay_ElementId& id, const Data& newDisplayData) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, LayoutElement::Callbacks {
|
}, LayoutElement::Callbacks {
|
||||||
.mouseButton = [&, i] (LayoutElement* l, const InputManager::MouseButtonCallbackArgs& button) {
|
.onClick = [&, i] (LayoutElement* l, const InputManager::MouseButtonCallbackArgs& button) {
|
||||||
if(l->mouseHovering && button.button == InputManager::MouseButton::LEFT && button.down) {
|
if(l->mouseHovering && button.button == InputManager::MouseButton::LEFT && button.down) {
|
||||||
gui.set_post_callback_func([&, i, button, l]{
|
gui.set_post_callback_func([&, i, button, l]{
|
||||||
auto& objIndex = flattenedIndexList[i].objIndex;
|
auto& objIndex = flattenedIndexList[i].objIndex;
|
||||||
|
|
@ -143,7 +143,7 @@ void TreeListing::layout(const Clay_ElementId& id, const Data& newDisplayData) {
|
||||||
if(d.onSelectChange) d.onSelectChange();
|
if(d.onSelectChange) d.onSelectChange();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(button.clicks == 2 && d.onDoubleClick) d.onDoubleClick(objIndex);
|
if(button.clicks >= 2 && d.onDoubleClick && wasSelected) d.onDoubleClick(objIndex);
|
||||||
if(!wasSelected) {
|
if(!wasSelected) {
|
||||||
d.selectedIndices->clear();
|
d.selectedIndices->clear();
|
||||||
d.selectedIndices->emplace(objIndex);
|
d.selectedIndices->emplace(objIndex);
|
||||||
|
|
@ -154,13 +154,13 @@ void TreeListing::layout(const Clay_ElementId& id, const Data& newDisplayData) {
|
||||||
dragFromTop = button.pos.y() - l->get_bb().value().min.y() < ENTRY_HEIGHT * 0.5f;
|
dragFromTop = button.pos.y() - l->get_bb().value().min.y() < ENTRY_HEIGHT * 0.5f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(button.clicks == 2)
|
else if(button.clicks >= 2)
|
||||||
if(d.onDoubleClick) d.onDoubleClick(objIndex);
|
if(d.onDoubleClick) d.onDoubleClick(objIndex);
|
||||||
});
|
});
|
||||||
gui.set_to_layout();
|
gui.set_to_layout();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
.mouseMotion = [&, i] (LayoutElement* l, const InputManager::MouseMotionCallbackArgs& motion) {
|
.onMotion = [&, i] (LayoutElement* l, const InputManager::MouseMotionCallbackArgs& motion) {
|
||||||
if(isDragging && l->mouseHovering) {
|
if(isDragging && l->mouseHovering) {
|
||||||
size_t newDragIndexEnd = i;
|
size_t newDragIndexEnd = i;
|
||||||
bool newDragFromTop = motion.pos.y() - l->get_bb().value().min.y() < ENTRY_HEIGHT * 0.5f;
|
bool newDragFromTop = motion.pos.y() - l->get_bb().value().min.y() < ENTRY_HEIGHT * 0.5f;
|
||||||
|
|
@ -176,7 +176,7 @@ void TreeListing::layout(const Clay_ElementId& id, const Data& newDisplayData) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, LayoutElement::Callbacks {
|
}, LayoutElement::Callbacks {
|
||||||
.mouseButton = [&] (LayoutElement* l, const InputManager::MouseButtonCallbackArgs& button) {
|
.onClick = [&] (LayoutElement* l, const InputManager::MouseButtonCallbackArgs& button) {
|
||||||
if(button.button == InputManager::MouseButton::LEFT && !button.down) {
|
if(button.button == InputManager::MouseButton::LEFT && !button.down) {
|
||||||
if(isDragging) {
|
if(isDragging) {
|
||||||
gui.set_to_layout();
|
gui.set_to_layout();
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
#include "../GUIStuff/Elements/GridScrollArea.hpp"
|
#include "../GUIStuff/Elements/GridScrollArea.hpp"
|
||||||
#include "../GUIStuff/Elements/DropDown.hpp"
|
#include "../GUIStuff/Elements/DropDown.hpp"
|
||||||
#include "../GUIStuff/Elements/ColorPicker.hpp"
|
#include "../GUIStuff/Elements/ColorPicker.hpp"
|
||||||
|
#include "../GUIStuff/Elements/TreeListing.hpp"
|
||||||
#include "../GUIStuff/ElementHelpers/ButtonHelpers.hpp"
|
#include "../GUIStuff/ElementHelpers/ButtonHelpers.hpp"
|
||||||
#include "../GUIStuff/ElementHelpers/LayoutHelpers.hpp"
|
#include "../GUIStuff/ElementHelpers/LayoutHelpers.hpp"
|
||||||
#include "../GUIStuff/ElementHelpers/TextLabelHelpers.hpp"
|
#include "../GUIStuff/ElementHelpers/TextLabelHelpers.hpp"
|
||||||
|
|
@ -123,7 +124,7 @@ void PhoneDrawingProgramScreen::bottom_toolbar() {
|
||||||
break;
|
break;
|
||||||
case SettingsMenuPopup::FG_COLOR:
|
case SettingsMenuPopup::FG_COLOR:
|
||||||
case SettingsMenuPopup::BG_COLOR:
|
case SettingsMenuPopup::BG_COLOR:
|
||||||
if(!colorPickerPopupData.extraSettingsOpen) {
|
if(colorPickerPopupData.screenType == ColorPickerPopupData::ScreenType::NORMAL) {
|
||||||
CLAY_AUTO_ID({
|
CLAY_AUTO_ID({
|
||||||
.layout = {
|
.layout = {
|
||||||
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_FIT(0) },
|
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_FIT(0) },
|
||||||
|
|
@ -245,16 +246,17 @@ void PhoneDrawingProgramScreen::tool_settings_popup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhoneDrawingProgramScreen::reset_color_picker_popup_data() {
|
void PhoneDrawingProgramScreen::reset_color_picker_popup_data() {
|
||||||
colorPickerPopupData.extraSettingsOpen = false;
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::NORMAL;
|
||||||
colorPickerPopupData.addingPalette = false;
|
|
||||||
colorPickerPopupData.newPaletteStr.clear();
|
colorPickerPopupData.newPaletteStr.clear();
|
||||||
|
colorPickerPopupData.paletteListSelection.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhoneDrawingProgramScreen::color_settings_popup(Vector4f* color) {
|
void PhoneDrawingProgramScreen::color_settings_popup(Vector4f* color) {
|
||||||
auto& gui = main.g.gui;
|
auto& gui = main.g.gui;
|
||||||
auto& palette = main.conf.palettes[colorPickerPopupData.selectedPalette];
|
auto& palette = main.conf.palettes[colorPickerPopupData.selectedPalette];
|
||||||
|
|
||||||
bool extraColorButtons = colorPickerPopupData.extraSettingsOpen && colorPickerPopupData.selectedPalette != 0;
|
bool extraSettingsOpen = colorPickerPopupData.screenType == ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
bool extraColorButtons = extraSettingsOpen && colorPickerPopupData.selectedPalette != 0;
|
||||||
auto paletteColorPickerGrid = [&] {
|
auto paletteColorPickerGrid = [&] {
|
||||||
gui.element<GridScrollArea>("color selector grid", GridScrollArea::Options{
|
gui.element<GridScrollArea>("color selector grid", GridScrollArea::Options{
|
||||||
.entryWidth = BIG_BUTTON_SIZE,
|
.entryWidth = BIG_BUTTON_SIZE,
|
||||||
|
|
@ -297,9 +299,12 @@ void PhoneDrawingProgramScreen::color_settings_popup(Vector4f* color) {
|
||||||
case 2:
|
case 2:
|
||||||
svg_icon_button(gui, "extra color settings", "data/icons/RemixIcon/more-fill.svg", {
|
svg_icon_button(gui, "extra color settings", "data/icons/RemixIcon/more-fill.svg", {
|
||||||
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
||||||
.isSelected = colorPickerPopupData.extraSettingsOpen,
|
.isSelected = extraSettingsOpen,
|
||||||
.onClick = [&] {
|
.onClick = [&] {
|
||||||
colorPickerPopupData.extraSettingsOpen = !colorPickerPopupData.extraSettingsOpen;
|
if(colorPickerPopupData.screenType == ColorPickerPopupData::ScreenType::NORMAL)
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
else
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::NORMAL;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
@ -308,9 +313,12 @@ void PhoneDrawingProgramScreen::color_settings_popup(Vector4f* color) {
|
||||||
else {
|
else {
|
||||||
svg_icon_button(gui, "extra color settings", "data/icons/RemixIcon/more-fill.svg", {
|
svg_icon_button(gui, "extra color settings", "data/icons/RemixIcon/more-fill.svg", {
|
||||||
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
||||||
.isSelected = colorPickerPopupData.extraSettingsOpen,
|
.isSelected = extraSettingsOpen,
|
||||||
.onClick = [&] {
|
.onClick = [&] {
|
||||||
colorPickerPopupData.extraSettingsOpen = !colorPickerPopupData.extraSettingsOpen;
|
if(colorPickerPopupData.screenType == ColorPickerPopupData::ScreenType::NORMAL)
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
else
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::NORMAL;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -342,31 +350,129 @@ void PhoneDrawingProgramScreen::color_settings_popup(Vector4f* color) {
|
||||||
for(auto& p : main.conf.palettes)
|
for(auto& p : main.conf.palettes)
|
||||||
paletteNames.emplace_back(p.name);
|
paletteNames.emplace_back(p.name);
|
||||||
gui.element<DropDown<size_t>>("paletteselector", &colorPickerPopupData.selectedPalette, paletteNames);
|
gui.element<DropDown<size_t>>("paletteselector", &colorPickerPopupData.selectedPalette, paletteNames);
|
||||||
svg_icon_button(gui, "paletteadd", "data/icons/plus.svg", {
|
svg_icon_button(gui, "paletteadd", "data/icons/RemixIcon/more-fill.svg", {
|
||||||
.onClick = [&] {
|
.onClick = [&] {
|
||||||
colorPickerPopupData.addingPalette = !colorPickerPopupData.addingPalette;
|
reset_color_picker_popup_data();
|
||||||
}
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::PALETTES;
|
||||||
});
|
|
||||||
svg_icon_button(gui, "paletteremove", "data/icons/close.svg", {
|
|
||||||
.onClick = [&] {
|
|
||||||
main.conf.palettes.erase(main.conf.palettes.begin() + colorPickerPopupData.selectedPalette);
|
|
||||||
colorPickerPopupData.selectedPalette = 0;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(colorPickerPopupData.addingPalette) {
|
};
|
||||||
input_text_field(gui, "paletteinputname", "Name", &colorPickerPopupData.newPaletteStr);
|
|
||||||
text_button(gui, "addpalettebutton", "Create", {
|
auto paletteGUI = [&] {
|
||||||
.wide = true,
|
CLAY_AUTO_ID({
|
||||||
.onClick = [&] {
|
.layout = {
|
||||||
|
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0)},
|
||||||
|
.childGap = gui.io.theme->childGap1,
|
||||||
|
.childAlignment = {.x = CLAY_ALIGN_X_CENTER, .y = CLAY_ALIGN_Y_TOP},
|
||||||
|
.layoutDirection = CLAY_TOP_TO_BOTTOM
|
||||||
|
}
|
||||||
|
}) {
|
||||||
|
CLAY_AUTO_ID({
|
||||||
|
.layout = {
|
||||||
|
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0)},
|
||||||
|
.childGap = gui.io.theme->childGap1,
|
||||||
|
.childAlignment = {.x = CLAY_ALIGN_X_LEFT, .y = CLAY_ALIGN_Y_CENTER},
|
||||||
|
.layoutDirection = CLAY_LEFT_TO_RIGHT
|
||||||
|
}
|
||||||
|
}) {
|
||||||
|
svg_icon_button(gui, "palette back", "data/icons/RemixIcon/arrow-left-s-line.svg", {
|
||||||
|
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
||||||
|
.onClick = [&] {
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
text_label(gui, "Palettes");
|
||||||
|
}
|
||||||
|
|
||||||
|
gui.element<TreeListing>("palette list", TreeListing::Data{
|
||||||
|
.selectedIndices = &colorPickerPopupData.paletteListSelection,
|
||||||
|
.dirInfo = [&](const TreeListingObjIndexList& objIndex) {
|
||||||
|
std::optional<TreeListing::DirectoryInfo> d;
|
||||||
|
if(objIndex.empty()) {
|
||||||
|
d = TreeListing::DirectoryInfo();
|
||||||
|
d.value().isOpen = true;
|
||||||
|
d.value().dirSize = main.conf.palettes.size();
|
||||||
|
}
|
||||||
|
return d;
|
||||||
|
},
|
||||||
|
.drawNonDirectoryObjIconGUI = [&](const TreeListingObjIndexList& objIndex) {},
|
||||||
|
.drawObjGUI = [&](const TreeListingObjIndexList& objIndex) {
|
||||||
|
CLAY_AUTO_ID({
|
||||||
|
.layout = {
|
||||||
|
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0)},
|
||||||
|
.childAlignment = {.x = CLAY_ALIGN_X_LEFT, .y = CLAY_ALIGN_Y_CENTER}
|
||||||
|
}
|
||||||
|
}) {
|
||||||
|
text_label(gui, main.conf.palettes[objIndex.back()].name);
|
||||||
|
}
|
||||||
|
gui.set_z_index_keep_clipping_region(gui.get_z_index() + 1, [&] {
|
||||||
|
svg_icon_button(gui, "edit button", "data/icons/pencil.svg", {
|
||||||
|
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
||||||
|
.size = TreeListing::ENTRY_HEIGHT,
|
||||||
|
.onClick = [&, objIndex] {
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
colorPickerPopupData.selectedPalette = objIndex.back();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
if(objIndex.back() != 0) {
|
||||||
|
gui.set_z_index_keep_clipping_region(gui.get_z_index() + 1, [&] {
|
||||||
|
svg_icon_button(gui, "delete button", "data/icons/trash.svg", {
|
||||||
|
.drawType = SelectableButton::DrawType::TRANSPARENT_ALL,
|
||||||
|
.size = TreeListing::ENTRY_HEIGHT,
|
||||||
|
.onClick = [&, objIndex] {
|
||||||
|
colorPickerPopupData.selectedPalette = 0;
|
||||||
|
main.conf.palettes.erase(main.conf.palettes.begin() + objIndex.back());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
.onDoubleClick = [&](const TreeListingObjIndexList& objIndex) {
|
||||||
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
colorPickerPopupData.selectedPalette = objIndex.back();
|
||||||
|
},
|
||||||
|
.moveObj = [&](const std::vector<TreeListingObjIndexList>& objIndices, const TreeListingObjIndexList& newObjIndex) {
|
||||||
|
if(newObjIndex.back() == 0)
|
||||||
|
return;
|
||||||
|
std::deque<GlobalConfig::Palette> movedPalettes;
|
||||||
|
size_t moveIndex = newObjIndex.back();
|
||||||
|
for(auto& p : objIndices | std::views::reverse) {
|
||||||
|
if(p.back() != 0) {
|
||||||
|
if(moveIndex > p.back())
|
||||||
|
moveIndex--;
|
||||||
|
movedPalettes.emplace_front(main.conf.palettes[p.back()]);
|
||||||
|
main.conf.palettes.erase(main.conf.palettes.begin() + p.back());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
main.conf.palettes.insert(main.conf.palettes.begin() + moveIndex, movedPalettes.begin(), movedPalettes.end());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
CLAY_AUTO_ID({
|
||||||
|
.layout = {
|
||||||
|
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0)},
|
||||||
|
.childGap = gui.io.theme->childGap1,
|
||||||
|
.childAlignment = {.x = CLAY_ALIGN_X_LEFT, .y = CLAY_ALIGN_Y_CENTER},
|
||||||
|
.layoutDirection = CLAY_LEFT_TO_RIGHT
|
||||||
|
}
|
||||||
|
}) {
|
||||||
|
auto addPaletteFunc = [&] {
|
||||||
if(!colorPickerPopupData.newPaletteStr.empty()) {
|
if(!colorPickerPopupData.newPaletteStr.empty()) {
|
||||||
main.conf.palettes.emplace_back();
|
main.conf.palettes.emplace_back();
|
||||||
main.conf.palettes.back().name = colorPickerPopupData.newPaletteStr;
|
main.conf.palettes.back().name = colorPickerPopupData.newPaletteStr;
|
||||||
colorPickerPopupData.selectedPalette = main.conf.palettes.size() - 1;
|
colorPickerPopupData.selectedPalette = main.conf.palettes.size() - 1;
|
||||||
colorPickerPopupData.addingPalette = false;
|
colorPickerPopupData.screenType = ColorPickerPopupData::ScreenType::EXTRA;
|
||||||
|
gui.set_to_layout();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
});
|
input_text_field(gui, "paletteinputname", "Name", &colorPickerPopupData.newPaletteStr, {
|
||||||
|
.onEnter = addPaletteFunc
|
||||||
|
});
|
||||||
|
svg_icon_button(gui, "paletteadd", "data/icons/plus.svg", {
|
||||||
|
.onClick = addPaletteFunc
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -381,28 +487,34 @@ void PhoneDrawingProgramScreen::color_settings_popup(Vector4f* color) {
|
||||||
.backgroundColor = convert_vec4<Clay_Color>(gui.io.theme->backColor1),
|
.backgroundColor = convert_vec4<Clay_Color>(gui.io.theme->backColor1),
|
||||||
.cornerRadius = CLAY_CORNER_RADIUS(gui.io.theme->windowCorners1)
|
.cornerRadius = CLAY_CORNER_RADIUS(gui.io.theme->windowCorners1)
|
||||||
}) {
|
}) {
|
||||||
if(colorPickerPopupData.extraSettingsOpen) {
|
switch(colorPickerPopupData.screenType) {
|
||||||
CLAY_AUTO_ID({
|
case ColorPickerPopupData::ScreenType::NORMAL:
|
||||||
.layout = {
|
|
||||||
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0)},
|
|
||||||
.childGap = gui.io.theme->childGap1,
|
|
||||||
.layoutDirection = CLAY_TOP_TO_BOTTOM
|
|
||||||
},
|
|
||||||
}) {
|
|
||||||
paletteColorPickerGrid();
|
paletteColorPickerGrid();
|
||||||
}
|
break;
|
||||||
CLAY_AUTO_ID({
|
case ColorPickerPopupData::ScreenType::EXTRA:
|
||||||
.layout = {
|
CLAY_AUTO_ID({
|
||||||
.sizing = {.width = CLAY_SIZING_FIT(0), .height = CLAY_SIZING_FIT(0)},
|
.layout = {
|
||||||
.childGap = gui.io.theme->childGap1,
|
.sizing = {.width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0)},
|
||||||
.layoutDirection = CLAY_TOP_TO_BOTTOM
|
.childGap = gui.io.theme->childGap1,
|
||||||
},
|
.layoutDirection = CLAY_TOP_TO_BOTTOM
|
||||||
}) {
|
},
|
||||||
paletteColorPickerExtras();
|
}) {
|
||||||
}
|
paletteColorPickerGrid();
|
||||||
|
}
|
||||||
|
CLAY_AUTO_ID({
|
||||||
|
.layout = {
|
||||||
|
.sizing = {.width = CLAY_SIZING_FIT(0), .height = CLAY_SIZING_FIT(0)},
|
||||||
|
.childGap = gui.io.theme->childGap1,
|
||||||
|
.layoutDirection = CLAY_TOP_TO_BOTTOM
|
||||||
|
},
|
||||||
|
}) {
|
||||||
|
paletteColorPickerExtras();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ColorPickerPopupData::ScreenType::PALETTES:
|
||||||
|
paletteGUI();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
paletteColorPickerGrid();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "DrawingProgramScreen.hpp"
|
#include "DrawingProgramScreen.hpp"
|
||||||
#include "../Toolbar.hpp"
|
#include "../Toolbar.hpp"
|
||||||
|
#include "../GUIStuff/Elements/TreeListing.hpp"
|
||||||
|
|
||||||
class PhoneDrawingProgramScreen : public DrawingProgramScreen {
|
class PhoneDrawingProgramScreen : public DrawingProgramScreen {
|
||||||
public:
|
public:
|
||||||
|
|
@ -25,10 +26,14 @@ class PhoneDrawingProgramScreen : public DrawingProgramScreen {
|
||||||
BG_COLOR
|
BG_COLOR
|
||||||
} settingsMenuPopup = SettingsMenuPopup::NONE;
|
} settingsMenuPopup = SettingsMenuPopup::NONE;
|
||||||
struct ColorPickerPopupData {
|
struct ColorPickerPopupData {
|
||||||
bool extraSettingsOpen = false;
|
enum class ScreenType {
|
||||||
|
NORMAL,
|
||||||
|
EXTRA,
|
||||||
|
PALETTES
|
||||||
|
} screenType = ScreenType::NORMAL;
|
||||||
size_t selectedPalette = 0;
|
size_t selectedPalette = 0;
|
||||||
bool addingPalette = false;
|
|
||||||
std::string newPaletteStr;
|
std::string newPaletteStr;
|
||||||
|
std::set<GUIStuff::TreeListingObjIndexList> paletteListSelection;
|
||||||
} colorPickerPopupData;
|
} colorPickerPopupData;
|
||||||
void reset_color_picker_popup_data();
|
void reset_color_picker_popup_data();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue