51 custom_tod(
const std::vector<time_of_day>& times,
int current_time);
std::pair< std::string, std::string > string_pair
The execute function.
int current_tod_
Current ToD index.
std::vector< time_of_day > times_
Available time_of_days.
void set_selected_tod(time_of_day tod)
void update_lawful_bonus()
std::string default_dir()
Object which defines a time of day with associated bonuses, image, sounds etc.
void update_tod_display()
std::function< string_pair(const time_of_day &)> tod_attribute_getter
const time_of_day & get_selected_tod() const
field_integer * color_field_g_
field_integer * color_field_b_
void update_selected_tod_info()
Various uncategorised dialogs.
field_integer * color_field_r_
void select_file(const std::string &default_dir)
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
void do_next_tod()
Callback for the next tod button.
This shows the dialog to modify tod schedules.
Abstract base class for all modal dialogs.
void copy_to_clipboard_callback(tod_attribute_getter getter)
custom_tod(const std::vector< time_of_day > ×, int current_time)
virtual const std::string & window_id() const override
The ID of the window to build.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...
base class of top level items, the only item which needs to store the final canvases to draw on...
Template class to implement the generic field implementation.
void color_slider_callback()