mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	strict X handling in dialogs
This commit is contained in:
		| @@ -304,6 +304,8 @@ namespace dialog { | |||||||
|         } |         } | ||||||
|       else if(I.type == diItem || I.type == diBigItem) { |       else if(I.type == diItem || I.type == diBigItem) { | ||||||
|         bool xthis = (mousey >= top && mousey < tothei); |         bool xthis = (mousey >= top && mousey < tothei); | ||||||
|  |         if(cmode && sm::DIALOG_STRICT_X) | ||||||
|  |           xthis = xthis && (mousex >= dcenter - dialogwidth/2 && mousex <= dcenter + dialogwidth/2); | ||||||
| #if ISMOBILE | #if ISMOBILE | ||||||
|         if(xthis && mousepressed)  |         if(xthis && mousepressed)  | ||||||
|           I.color = I.colorc; |           I.color = I.colorc; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue