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

dialog:: DIALOG_WIDE

This commit is contained in:
Zeno Rogue 2022-11-03 19:31:06 +01:00
parent 3ab4915ff4
commit 0ff46ff143
2 changed files with 4 additions and 1 deletions

View File

@ -405,6 +405,8 @@ EX namespace dialog {
bool autoval = cmode & sm::AUTO_VALUES;
rightwidth = 0;
if(!autoval) rightwidth = textwidth(dfsize, "MMMMMMMM") + dfsize/2;
if(cmode & sm::DIALOG_WIDE)
innerwidth = textwidth(dfsize, "MMMMM") * 7;
for(int i=0; i<N; i++) {
if(items[i].type == diListStart)
@ -1396,7 +1398,7 @@ EX namespace dialog {
void handleKeyFile(int sym, int uni);
EX void drawFileDialog() {
cmode = sm::NUMBER | dialogflags;
cmode = sm::NUMBER | dialogflags | sm::DIALOG_WIDE;
gamescreen();
init(filecaption);

View File

@ -5733,6 +5733,7 @@ namespace sm {
static const int NARROW_LINES = (1<<24); // do make the lines narrower if we needed to reduce width
static const int EDIT_BEFORE_WALLS = (1<<25); // mouseover targets before walls
static const int EDIT_INSIDE_WALLS = (1<<26); // mouseover targets inside walls
static const int DIALOG_WIDE = (1<<27); // make dialogs wide
}
#endif