Ejemplo n.º 1
0
        private void HandleDetailsPageActions(int responseID)
        {
            NWPlayer oPC   = GetPC();
            Model    model = GetDialogCustomData <Model>();

            switch (responseID)
            {
            case 1:     // Select Background
                if (model.IsConfirming)
                {
                    _background.SetPlayerBackground(oPC, model.SelectedBackground);
                    EndConversation();
                }
                else
                {
                    model.IsConfirming = true;
                    SetResponseText("DetailsPage", 1, "CONFIRM SELECT BACKGROUND");
                }

                break;

            case 2:     // Back
                model.IsConfirming = false;
                SetResponseText("DetailsPage", 1, "Select Background");
                model.SelectedBackground = null;
                ChangePage("MainPage");
                break;
            }
        }