Exemplo n.º 1
0
        private void ConfirmReturnToNormal()
        {
            var box = RPGMessageBox.Create("Are you sure you want to return to normal mode?", "Return to normal mode", "Continue Playing GTA:RPG", () => { View.CloseAllMenus(); RPGMethods.ReturnToNormal(); }, () => { View.MenuPosition = new Point(UI.WIDTH - 300, 0); });

            RPGUI.FormatMenu(box);
            View.AddMenu(box);
        }
Exemplo n.º 2
0
        private void StartRPGMode()
        {
            World.DestroyAllCameras();
            Game.Player.CanControlCharacter = true;

            string missing;
            var    statusGood = CheckStatus(out missing);

            if (statusGood || !RPGSettings.ShowPrerequisiteWarning)
            {
                RPG.Initialise();
                Enabled = false;
            }
            else
            {
                var mb = (RPGMessageBox)RPGMessageBox.Create("Missing: " + missing + " View readme for more info.",
                                                             "Play Anyway ( WARNING: Bugs/errors expected))", "Return to normal mode", PlayAnyway, () => { RPGMethods.ReturnToNormal(); RPG.UIHandler.View.CloseAllMenus(); });
                RPGUI.FormatMenu(mb);
                mb.TopColor    = Color.Red;
                mb.HeaderScale = 0.5f;
                RPG.UIHandler.View.AddMenu(mb);
                Enabled = false;
            }
        }