1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 21:23:18 +00:00

down arrow in menus now works opposite to the up arrow (rolls around)

This commit is contained in:
Zeno Rogue 2020-09-16 14:23:00 +02:00
parent c6ed4ea736
commit 11b1f6dfb0
2 changed files with 5 additions and 1 deletions

View File

@ -566,8 +566,10 @@ EX namespace dialog {
else if(items[i].body == highlight_text) state = 1;
}
for(int i=0; i<isize(items); i++)
if(isitem(items[i]))
if(isitem(items[i])) {
highlight_text = items[i].body;
break;
}
uni = sym = 0;
}
if(key_actions.count(uni)) {

View File

@ -2226,6 +2226,7 @@ EX void draw_boundary(int w) {
#endif
EX void change_shift(shiftpoint& h, ld by) {
if(!by) return;
h.shift += by;
if((mdinf[pmodel].flags & mf::uses_bandshift) || (sphere && pmodel == mdSpiral)) {
h.h = spin(pconf.model_orientation * degree) * h.h;
@ -2240,6 +2241,7 @@ EX void change_shift(shiftpoint& h, ld by) {
}
EX void change_shift(shiftmatrix& T, ld by) {
if(!by) return;
T.shift += by;
if((mdinf[pmodel].flags & mf::uses_bandshift) || (sphere && pmodel == mdSpiral)) {
T.T = spin(pconf.model_orientation * degree) * T.T;