1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +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

@ -1891,6 +1891,11 @@ EX namespace dialog {
if(!hasInfix(s)) return;
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);