mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	dialog:: DIALOG_WIDE
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue