39 lines
811 B
Ucode
Raw Normal View History

2017-10-19 21:00:49 -05: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 23:12:58 +03:00
if (MS_TMPUI(G.UIController)!=None)
2017-10-19 21:00:49 -05:00
return;
T = new(G)class'MS_TMPUI';
T.RealUI = G.UIController;
T.UIManager = T.RealUI.UIManager;
G.UIController = T;
}
2020-11-29 00:54:57 +03:00
2017-10-19 21:00:49 -05: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 23:12:58 +03:00
if (T==None)
2017-10-19 21:00:49 -05: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
}