1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

dialog:: automatically move list_skip

This commit is contained in:
Zeno Rogue 2022-10-21 11:45:00 +02:00
parent 40ca8b8553
commit 3408c1119f

View File

@ -658,6 +658,11 @@ EX namespace dialog {
draw_list_slider(dcenter + fwidth / 2 - dfsize/2, list_starts_at);
if(mousex >= dcenter + fwidth /2 - dfsize && mousey >= list_starts_at && mousey < list_ends_at)
getcstat = PSEUDOKEY_LIST_SLIDER, inslider = true, slider_x = mousey;
if(list_left > 0) {
list_skip -= list_left;
list_skip -= list_more_skip;
if(list_skip < 0) list_skip = 0;
}
continue;
}