60 std::string new_content;
62 std::lock_guard lg{
state.lock_console_strings };
63 new_content =
state.console_command_result;
64 state.console_command_result.clear();
66 if(new_content.size() > 0) {
74 base_data.data.text.font_handle, 0, text::alignment::left,
75 text::is_black_from_font_id(base_data.data.text.font_handle) ? text::text_color::black : text::text_color::white, false });
95 if(
name ==
"console_list") {
96 auto ptr = make_element_by_type<console_list>(
state,
id);
97 console_output_list = ptr.
get();
99 }
else if(
name ==
"console_edit") {
100 auto ptr = make_element_by_type<console_edit>(
state,
id);
101 edit_box = ptr.
get();
109 if(payload.holds_type<std::string>()) {
110 auto entry = any_cast<std::string>(payload);
111 console_output_list->
raw_text += entry +
"\\n";
124 console_output_list->
raw_text.clear();
std::string down_history() noexcept
void edit_box_update(sys::state &state, std::string_view s) noexcept override
void edit_box_tab(sys::state &state, std::string_view s) noexcept override
void edit_box_enter(sys::state &state, std::string_view s) noexcept override
void edit_box_down(sys::state &state) noexcept override
std::string navigate_history(int16_t step) noexcept
void edit_box_up(sys::state &state) noexcept override
std::vector< std::string > command_history
void add_to_history(sys::state &state, std::string s) noexcept
void edit_box_back_slash(sys::state &state) noexcept override
std::string up_history() noexcept
void edit_box_esc(sys::state &state) noexcept override
void edit_box_backtick(sys::state &state) noexcept override
void render(sys::state &state, int32_t x, int32_t y) noexcept override
void on_update(sys::state &state) noexcept override
static void show_toggle(sys::state &state)
void on_visible(sys::state &state) noexcept override
void clear_list(sys::state &state) noexcept
void on_create(sys::state &state) noexcept override
void on_hide(sys::state &state) noexcept override
message_result get(sys::state &state, Cyto::Any &payload) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_on_update(sys::state &state) noexcept override
virtual message_result get(sys::state &state, Cyto::Any &payload) noexcept
void set_visible(sys::state &state, bool vis)
text::layout internal_layout
void calibrate_scrollbar(sys::state &state) noexcept
message_result get(sys::state &state, Cyto::Any &payload) noexcept override
multiline_text_element_base * delegate
void on_create(sys::state &state) noexcept override
layout_box open_layout_box(layout_base &dest, int32_t indent)
void add_unparsed_text_to_layout_box(sys::state &state, layout_base &dest, layout_box &box, std::string_view sv, substitution_map const &mp)
endless_layout create_endless_layout(sys::state &state, layout &dest, layout_parameters const ¶ms)
void close_layout_box(columnar_layout &dest, layout_box &box)
std::string format_fif_value(sys::state &state, int64_t data, int32_t type)
void initialize_console_fif_environment(sys::state &state)
element_base * edit_target