KF2-Server-Extension/ServerExt/Classes/MS_TMPUI.uc

40 lines
812 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class MS_TMPUI extends UIInteraction;
var UIInteraction RealUI;
var ObjectReferencer Referencer;
static final function Apply()
{
local GameViewportClient G;
local MS_TMPUI T;
G = class'Engine'.Static.GetEngine().GameViewport;
2020-11-28 20:12:58 +00:00
if (MS_TMPUI(G.UIController)!=None)
2017-10-20 02:00:49 +00:00
return;
T = new(G)class'MS_TMPUI';
T.RealUI = G.UIController;
T.UIManager = T.RealUI.UIManager;
G.UIController = T;
}
2020-11-28 21:54:57 +00:00
2017-10-20 02:00:49 +00:00
static final function Remove()
{
local GameViewportClient G;
local MS_TMPUI T;
G = class'Engine'.Static.GetEngine().GameViewport;
T = MS_TMPUI(G.UIController);
2020-11-28 20:12:58 +00:00
if (T==None)
2017-10-20 02:00:49 +00:00
return;
G.UIController = T.RealUI;
}
defaultproperties
{
Begin Object Class=ObjectReferencer Name=MSGameReference
ReferencedObjects.Add(class'MS_Game')
ReferencedObjects.Add(class'MS_PC')
End Object
Referencer=MSGameReference
2023-05-14 02:49:12 +00:00
}