remove the cancel button in case where it would be ignored

This commit is contained in:
2024-12-27 12:59:03 -06:00
committed by Celtic Minstrel
parent 65dbf8dc88
commit 8253088ba4
3 changed files with 13 additions and 7 deletions

View File

@@ -157,3 +157,7 @@ ePicType cPictChoice::getPicChosenType() const {
size_t cPictChoice::getSelected() const {
return cur;
}
void cPictChoice::disableCancel() {
dlg["cancel"].hide();
}

View File

@@ -75,6 +75,8 @@ public:
/// Get the index of the selected icon in the original list.
/// @return The index
size_t getSelected() const;
/// Disallow the player from cancelling without making a choice
void disableCancel();
};
#endif