mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-23 01:47:39 +00:00
help extensions now can use addSelItem and color
This commit is contained in:
9
help.cpp
9
help.cpp
@@ -928,8 +928,13 @@ void showHelp() {
|
||||
dialog::addHelp(help);
|
||||
}
|
||||
|
||||
for(auto& he: help_extensions)
|
||||
dialog::addItem(he.text, he.key);
|
||||
for(auto& he: help_extensions) {
|
||||
if(he.subtext != "")
|
||||
dialog::addSelItem(he.text, he.subtext, he.key);
|
||||
else
|
||||
dialog::addItem(he.text, he.key);
|
||||
dialog::lastItem().color = he.color;
|
||||
}
|
||||
|
||||
dialog::display();
|
||||
|
||||
|
Reference in New Issue
Block a user