1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00

vpush2 with extra parameter

This commit is contained in:
Zeno Rogue 2024-08-21 19:22:49 +02:00
parent 9151efb300
commit a25a476835

View File

@ -1892,6 +1892,11 @@ EX namespace dialog {
dialog::v.push_back(make_pair(s, color));
}
EX void vpush2(color_t color, const string& name, const string& extra) {
if(!hasInfix(extra)) return;
dialog::v.push_back(make_pair(name, color));
}
EX string editchecker(int sym, int uni) {
if(uni >= 32 && uni < 127) return string("") + char(uni);
return "";