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; }
 
   71     virtual std::size_t 
num_items()
 override {
return 0;}
 
   72     virtual std::size_t 
start_num()
 override {
return 0;}
 
   75     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 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 expand_palette_groups_menu(std::vector< config > &) override
Menu expanding for palette group list.
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 void adjust_size(const rect &) override
virtual bool supports_swap() override
Whether the hotkey system should the enable GUI button connected to swap().
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.
An abstract description of a rectangle with integer coordinates.