1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 10:27:45 +00:00

dialog:: abstracted string editing

This commit is contained in:
Zeno Rogue
2018-11-07 00:50:03 +01:00
parent ade8bda5f9
commit 7e80be5a87
4 changed files with 89 additions and 43 deletions

View File

@@ -1741,7 +1741,7 @@ namespace dialog {
extern vector<item> items;
extern reaction_t reaction, extra_options;
extern reaction_t reaction, extra_options, reaction_final;
item& lastItem();
extern color_t *palette;
@@ -1797,6 +1797,11 @@ namespace dialog {
void addHelp();
void addBack();
void add_action(reaction_t action);
string view_edited_string();
void start_editing(string& s);
bool handle_edit_string(int sym, int uni);
void edit_string(string& s, string title, string help);
}
void checkStunKill(cell *dest);