Example #1
0
        public void ExecuteEdit()
        {
            HeroEditorFunctions.EditHero(selectedHero, ClosePage, nameCallback);

            //if (selectedHero == null)
            //    return;

            //Edit(selectedHero);
            //Action<Hero> action = this.editCallback;
            //if (action == null)
            //    return;

            //action(selectedHero);
        }
Example #2
0
        public void ExecuteName()
        {
            HeroEditorFunctions.RenameHero(selectedHero, ClosePage, nameCallback);

            //if (selectedHero == null)
            //    return;

            //if (selectedHero.IsHumanPlayerCharacter) // until I find out how player character names are handled, no name change for main hero :(
            //{
            //    InformationManager.DisplayMessage(new InformationMessage(CannotRenamePlayerText.ToString()));
            //    return;
            //}

            //Name(selectedHero);
            //Action<Hero> action = nameCallback;

            //if (action == null)
            //    return;

            //action(selectedHero);
        }