Fixed issue with the multiplayer ui on small screens not being fully to the right side
This commit is contained in:
		
							parent
							
								
									b9489f4bb4
								
							
						
					
					
						commit
						528395d102
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -63,6 +63,11 @@ public class MultiplayerUI : SRSingleton<MultiplayerUI> | ||||||
|     { |     { | ||||||
|         base.Awake(); |         base.Awake(); | ||||||
| 
 | 
 | ||||||
|  |         //set default ui location width adapting numbers for smaller resolutions | ||||||
|  |         float width = 300; | ||||||
|  |         if (Screen.width / 4 < width) width = Screen.width / 4; | ||||||
|  |         windowRect = new Rect(Screen.width - width - 20, 20, width, 500); | ||||||
|  | 
 | ||||||
|         Globals.Username = PlayerPrefs.GetString("SRMP_Username", ""); |         Globals.Username = PlayerPrefs.GetString("SRMP_Username", ""); | ||||||
|         ipaddress = PlayerPrefs.GetString("SRMP_IP", "localhost"); |         ipaddress = PlayerPrefs.GetString("SRMP_IP", "localhost"); | ||||||
|         port = PlayerPrefs.GetString("SRMP_Port", "16500"); |         port = PlayerPrefs.GetString("SRMP_Port", "16500"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Twirlbug
						Twirlbug