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

Consistently name every hookset with prefix hooks_. NFC.

I'm sure this causes massive merge-conflicts in the non-public code,
but I think it'd be a good idea, if only to avoid confusion between
e.g. `clearMemory` and the-variable-formerly-known-as `clearmemory`.
This commit is contained in:
Arthur O'Dwyer
2020-04-11 14:40:12 -04:00
parent 84881f0e04
commit 934e3d9a42
20 changed files with 32 additions and 32 deletions

View File

@@ -377,13 +377,13 @@ EX namespace ss {
string slidechars = "abcdefghijklmnopqrsvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789!@#$%^&*(";
EX hookset<int(bool)> *extra_slideshows;
EX hookset<int(bool)> *hooks_extra_slideshows;
EX void slideshow_menu() {
dialog::init(XLAT("slideshows"), forecolor, 150, 100);
dialog::addBoolItem(XLAT("Guided Tour"), wts == default_slides, 't');
dialog::add_action([] { wts = default_slides; popScreen(); });
callhooks(extra_slideshows, true);
callhooks(hooks_extra_slideshows, true);
dialog::addBack();
dialog::display();
}
@@ -438,7 +438,7 @@ EX namespace ss {
}
dialog::addBreak(50);
bool b = false;
if(callhandlers(0, extra_slideshows, b)) {
if(callhandlers(0, hooks_extra_slideshows, b)) {
dialog::addItem(XLAT("change slideshow"), '1');
dialog::add_action_push(slideshow_menu);
}