'plain' button shown in the inventory screen

This commit is contained in:
Zeno Rogue 2021-05-30 13:21:22 +02:00
parent 8f28497f26
commit bc0eed4cf0
2 changed files with 3 additions and 1 deletions

View File

@ -1011,6 +1011,8 @@ EX namespace dialog {
getcstat = '0';
if(i&2) if(displayfrZH(xr*72, i0, 1, vid.fsize, IFM("F1 - ") + XLAT("help"), dialogcolor, 8))
getcstat = SDLK_F1;
if(i&4) if(displayfrZH(xr*8, i0, 1, vid.fsize, IFM("1 - ") + XLAT("plain"), dialogcolor, 8))
getcstat = '1';
}
EX bool handlePageButtons(int uni) {

View File

@ -613,7 +613,7 @@ EX namespace inv {
}
}
dialog::displayPageButtons(3, 0);
dialog::displayPageButtons(7, 0);
mouseovers = "";
keyhandler = [] (int sym, int uni) {
if(plain) dialog::handleNavigation(sym, uni);