fix portrait bullshi on windows resize
This commit is contained in:
		
							parent
							
								
									be9e08c37b
								
							
						
					
					
						commit
						f72cb160ed
					
				| @ -78,13 +78,29 @@ function InitComponent(GUIController MyC, GUIComponent MyO) | |||||||
| { | { | ||||||
|   super(UT2k4MainPage).InitComponent(MyC, MyO); |   super(UT2k4MainPage).InitComponent(MyC, MyO); | ||||||
| 
 | 
 | ||||||
|   i_Portrait.WinTop = PlayerPortraitBG.ActualTop() + 30; |   FixPortrait(); | ||||||
|   i_Portrait.WinHeight = PlayerPortraitBG.ActualHeight() - 36; |  | ||||||
| 
 |  | ||||||
|   t_ChatBox.FocusInstead = PerkClickLabel; |   t_ChatBox.FocusInstead = PerkClickLabel; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | event ResolutionChanged(int ResX, int ResY) | ||||||
|  | { | ||||||
|  |   super.ResolutionChanged(ResX, ResY); | ||||||
|  |   FixPortrait(); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | // FUCKING TWI, YOUR FUCKING BUGS
 | ||||||
|  | final private function bool FixPortrait() | ||||||
|  | { | ||||||
|  |   i_Portrait.WinTop = PlayerPortraitBG.RelativeTop(i_Portrait.WinTop); // ActualTop() + 30;
 | ||||||
|  |   i_Portrait.WinHeight = PlayerPortraitBG.RelativeHeight(i_Portrait.WinHeight); // ActualHeight() - 36;
 | ||||||
|  |   // log(">>> HideLobbyMenu: FixPortrait() called!!!");
 | ||||||
|  | 
 | ||||||
|  |   return false; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| // Called when the Menu Owner is opened
 | // Called when the Menu Owner is opened
 | ||||||
| event Opened(GUIComponent Sender) | event Opened(GUIComponent Sender) | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user