'plain' button shown in the inventory screen

This commit is contained in:
Zeno Rogue
2021-06-01 13:07:56 +02:00
parent 8f28497f26
commit bc0eed4cf0
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1011,6 +1011,8 @@ EX namespace dialog {
getcstat = '0'; getcstat = '0';
if(i&2) if(displayfrZH(xr*72, i0, 1, vid.fsize, IFM("F1 - ") + XLAT("help"), dialogcolor, 8)) if(i&2) if(displayfrZH(xr*72, i0, 1, vid.fsize, IFM("F1 - ") + XLAT("help"), dialogcolor, 8))
getcstat = SDLK_F1; 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) { EX bool handlePageButtons(int uni) {
+1 -1
View File
@@ -613,7 +613,7 @@ EX namespace inv {
} }
} }
dialog::displayPageButtons(3, 0); dialog::displayPageButtons(7, 0);
mouseovers = ""; mouseovers = "";
keyhandler = [] (int sym, int uni) { keyhandler = [] (int sym, int uni) {
if(plain) dialog::handleNavigation(sym, uni); if(plain) dialog::handleNavigation(sym, uni);