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