public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <MarketplaceButton>();

            BootstrapperClientGame.InitEndCallback += GameInitHandler;

            BootstrapperClientGame.ResetCallback += ResetHandler;
        }
Esempio n. 2
0
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <AutomatonButton>();

            AutomatonManager.Init();

            BootstrapperClientGame.InitCallback += GameInitHandler;

            BootstrapperClientGame.ResetCallback += ResetHandler;
        }
Esempio n. 3
0
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <CNEIbutton>();

            EntityViewModelsManager.Init();

            BootstrapperClientGame.InitEndCallback += GameInitHandler;

            BootstrapperClientGame.ResetCallback += ResetHandler;
        }
Esempio n. 4
0
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <AutomatonButton>();

            UpdateChecker.CheckNewReleases(
                AutomatonManager.ModId,
                AutomatonManager.CurrentVersion,
                AutomatonManager.RssFeed);

            AutomatonManager.Init();

            BootstrapperClientGame.InitCallback += GameInitHandler;

            BootstrapperClientGame.ResetCallback += ResetHandler;
        }
Esempio n. 5
0
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <CNEIButton>();

            UpdateChecker.CheckNewReleases(
                EntityViewModelsManager.ModId,
                EntityViewModelsManager.CurrentVersion,
                EntityViewModelsManager.RssFeed);

            EntityViewModelsManager.Init();

            BootstrapperClientGame.InitEndCallback += GameInitHandler;

            BootstrapperClientGame.ResetCallback += ResetHandler;
        }
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <EditorButton>();

            ClientComponentUpdateHelper.UpdateCallback    += this.ClientUpdateCallback;
            BootstrapperClientGame.InitEditorModeCallback += this.InitEditorMode;
            BootstrapperClientGame.ResetCallback          += this.Reset;

            ClientInputContext.Start("Editor quick save/load")
            .HandleButtonDown(
                EditorButton.LoadQuickSavegame,
                EditorToolMap.ClientLoadSavegameQuick)
            .HandleButtonDown(
                EditorButton.MakeQuickSavegame,
                EditorToolMap.ClientSaveSavegameQuick);
        }
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <EditorButton>();

            ClientUpdateHelper.UpdateCallback    += this.ClientUpdateCallback;
            BootstrapperClientGame.InitCallback  += this.Init;
            BootstrapperClientGame.ResetCallback += this.Reset;

            ClientInputContext.Start("Editor quick save/load")
            .HandleButtonDown(
                EditorButton.LoadQuickSavegame,
                EditorToolMap.ClientLoadSavegameQuick)
            .HandleButtonDown(
                EditorButton.MakeQuickSavegame,
                EditorToolMap.ClientSaveSavegameQuick);

            if (Api.Shared.IsDebug)
            {
                return;
            }

            var sessionStorage = Client.Storage.GetSessionStorage("EditorWelcome");

            if (sessionStorage.TryLoad(out bool isWelcomeMessageDisplayed) &&
                isWelcomeMessageDisplayed)
            {
                return;
            }

            DialogWindow.ShowDialog(
                "Welcome to CryoFall Editor!",
                new FormattedTextBlock()
            {
                Content = EditorWelcomeMessage, TextAlignment = TextAlignment.Left
            },
                closeByEscapeKey: true,
                okAction: () => { sessionStorage.Save(true, writeToLog: false); });
        }
 public override void ClientInitialize()
 {
     ClientInputManager.RegisterButtonsEnum <ManufacturerShortcutsButton>();
 }