mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42: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) { | ||||
|         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(xthis && mousepressed)  | ||||
|           I.color = I.colorc; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue