igroglaz / Tangaria

Tangaria – free open-source multiplayer roguelike game based loosely on Tolkien’s lore and powered by PWMAngband. ~~~~~~~~~~~~~~~~~~~~~~~~~
https://tangaria.com
39 stars 6 forks source link

SDL: always on top flag #37

Open igroglaz opened 3 years ago

igroglaz commented 3 years ago

will be fun to be able to make certain windows 'always on top'. Then it will be possible to overlap ui in better way.. cause now when you play - main window will be always on top of others

s88100 commented 3 years ago

/src/client/main-sdl.c :L987 BringToTop() /src/client/main-sdl.c :L3983

/* Term 0 is at the top */
Zorder[i] = ANGBAND_TERM_MAX - i - 1;

but Term-0 (Main window) displays 'tiles' on top of windows.

igroglaz commented 3 years ago

it's fine that Term-0 (Main window) displays 'tiles' on top of windows. With such flag we will put whole window on top which will make everything more beautiful

s88100 commented 3 years ago

if put window on top, the tiles are updated on top of window.

s88100 commented 3 years ago

window update /src/client/main-sdl.c AcceptChanges()

ResizeWin(&windows[SelectedTerm], windows[SelectedTerm].width, windows[SelectedTerm].height);
sdl_BlitAll();

or

ResizeWin(&windows[0], windows[0].width, windows[0].height);
do_cmd_redraw();