Complete the Modern main menu and persistent mod library (by Codex)
This commit is contained in:
1 parent
ab4a962a39
commit
6bcd95d668
21 files changed
+2043
-248
No files matched your search
@@ -0,0 +1,42 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
struct FrontProgress {
|
||||
std::mutex mutex;
|
||||
std::string text;
|
||||
};
|
||||
struct FrontResult {
|
||||
std::optional<ModImportPlan> plan;
|
||||
std::string selected, feedback;
|
||||
bool activate = false;
|
||||
};
|
||||
ModSnapshot front_snapshot_;
|
||||
std::string front_tab_ = "installed", front_dialog_, front_name_,
|
||||
front_name_error_, front_feedback_, front_error_,
|
||||
front_return_focus_;
|
||||
std::optional<ModImportPlan> front_plan_;
|
||||
std::optional<UiModEntry> front_target_;
|
||||
std::string front_selection_token_;
|
||||
std::future<FrontResult> front_job_;
|
||||
std::shared_ptr<FrontProgress> front_progress_;
|
||||
bool front_busy_ = false, front_external_override_ = false;
|
||||
float front_list_scroll_ = 0;
|
||||
bool front_restore_scroll_ = false, front_reveal_selection_ = false;
|
||||
fs::path front_library_root() const;
|
||||
const UiModEntry *front_selected() const;
|
||||
std::string front_source_name(const UiModEntry &) const;
|
||||
std::string front_size(uint64_t) const;
|
||||
std::string front_modal();
|
||||
std::string front_mod_details();
|
||||
void front_start(std::function<FrontResult()>);
|
||||
void front_poll();
|
||||
void front_pick(const std::string &);
|
||||
void front_validate_name();
|
||||
void front_select(const std::string &);
|
||||
void front_after_render();
|
||||
void front_invalidate_world();
|
||||
bool front_action(const std::string &, Rml::Element *);
|
||||
bool front_event(Rml::Event &);
|
||||
bool front_change(Rml::Element *);
|
||||
|
||||
Json front_snapshot_view() const;
|
||||
|
||||
bool front_select_name_ = false;
|
||||
Reference in new issue
Block a user