town wandring monsters cancel btn

This commit is contained in:
2025-05-19 08:30:32 -05:00
parent 4b28b89a87
commit 5ad8bc00fe
2 changed files with 4 additions and 3 deletions

View File

@@ -987,6 +987,7 @@ void edit_town_wand() {
cDialog wand_dlg(*ResMgr::dialogs.get("edit-town-wandering"));
wand_dlg["okay"].attachClickHandler(save_town_wand);
wand_dlg["cancel"].attachClickHandler(std::bind(&cDialog::toast, &wand_dlg, false));
auto check_monst = std::bind(check_range_msg, _1, _2, _3, 0, 255, "Wandering monsters", "0 means no monster");
// Just go through and attach the same focus handler to ALL text fields.
// There's 16 of them, so this is kinda the easiest way to do it.