rott/kf_sources/HideMut/Classes.backup/stub_MainMenu.uc
2026-07-14 20:27:09 +07:00

43 lines
930 B
Ucode

// main menu hacks and co
class stub_MainMenu extends KFMainMenu;
// we set DLC boxes to none, so have to fix this function to prevent log spam
event Opened(GUIComponent Sender)
{
super(GUIMultiComponent).Opened(Sender);
}
function InternalOnOpen()
{
if (bNoInitDelay)
Timer();
else
SetTimer(4.5, false);
Controller.PerformRestore();
// removed old and unused cinematic code
PlayerOwner().ClientSetInitialMusic(MenuSong,MTRAN_Segue);
// NO EULA!!
// Begin Syncing Subscribed Steam Workshop Files (if necessary)
if (PlayerOwner() == none)
{
log("> KFMainMenu -> InternalOnOpen() -> PlayerOwner() WAS NONE!!! PLEASE CHECK ME!");
return;
}
PlayerOwner().SyncSteamWorkshop();
}
// simulated function OpenFavServer()
// {
// Controller.ViewportOwner.Console.ConsoleCommand("OPEN KF-Intro?Game=unrealgame.cinematicgame");
// }
defaultproperties{}