fix portrait bullshi on windows resize
This commit is contained in:
parent
be9e08c37b
commit
f72cb160ed
1 changed files with 19 additions and 3 deletions
|
|
@ -78,13 +78,29 @@ function InitComponent(GUIController MyC, GUIComponent MyO)
|
|||
{
|
||||
super(UT2k4MainPage).InitComponent(MyC, MyO);
|
||||
|
||||
i_Portrait.WinTop = PlayerPortraitBG.ActualTop() + 30;
|
||||
i_Portrait.WinHeight = PlayerPortraitBG.ActualHeight() - 36;
|
||||
|
||||
FixPortrait();
|
||||
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
|
||||
event Opened(GUIComponent Sender)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue