49 upscroll_button->enable(
false);
51 downscroll_button->enable(
false);
53 palette_menu_button->set_overlay(
"");
54 palette_menu_button->enable(
false);
63 virtual const std::vector<item_group>&
get_groups()
const override {
static const std::vector<item_group> empty;
return empty; }
68 items.erase(items.begin() +
i);
72 virtual std::size_t
num_items()
override {
return 0;}
73 virtual std::size_t
start_num()
override {
return 0;}
76 virtual void swap()
override {}
Sort-of-Singleton that many classes, both GUI and non-GUI, use to access the game data.
std::shared_ptr< gui::button > find_action_button(const std::string &id)
Retrieves a pointer to a theme UI button.
std::shared_ptr< gui::button > find_menu_button(const std::string &id)
virtual void expand_palette_groups_menu(std::vector< config > &items, int i) override
Menu expanding for palette group list.
virtual bool can_scroll_down() override
virtual void next_group() override
virtual void swap() override
For tools which support fg and bg items, exchange the two items.
virtual std::size_t start_num() override
empty_palette(display &gui)
virtual void set_start_item(std::size_t) override
virtual bool scroll_down() override
Scroll the editor-palette down one step if possible.
virtual std::size_t num_items() override
virtual bool mouse_click()
std::vector< gui::widget > * get_widgets()
virtual const std::vector< item_group > & get_groups() const override
virtual bool can_scroll_up() override
virtual bool supports_swap() override
Whether the hotkey system should the enable GUI button connected to swap().
virtual void adjust_size(const SDL_Rect &) override
virtual void set_group(std::size_t) override
virtual bool scroll_up() override
Scroll the editor-palette up one step if possible.
virtual void prev_group() override
Manage the empty-palette in the editor.