internal void AddOptionItem(string Text, object obj, GameDelegates.VoidFunction optionFunction) { this.OptionTextList.AddText(Text); this.OptionObjects.Add(obj); this.OptionTextures.Add(this.OptionTexture); this.OptionFunctions.Add(optionFunction); }
internal GameObjectAndBranchName(Person p, GameObject g, List<SimpleText> list, string name, IConfirmationDialog confirmationDialog, GameDelegates.VoidFunction yesFunction, GameDelegates.VoidFunction noFunction) { this.person = p; this.gameObject = g; this.texts.AddRange(list); this.branchName = name; this.iConfirmationDialog = confirmationDialog; this.YesFunction = yesFunction; this.NoFunction = noFunction; }
public void AddYesFunction(GameDelegates.VoidFunction yesFunction) { this.confirmationDialog.YesFunction = yesFunction; }
public void AddNoFunction(GameDelegates.VoidFunction noFunction) { this.confirmationDialog.NoFunction = noFunction; }
internal void ShowMapViewSelector(bool multiSelecting, GameObjectList gameObjectList, GameDelegates.VoidFunction function, MapViewSelectorKind mapViewSelectorKind) { this.Plugins.MapViewSelectorPlugin.SetMultiSelecting(multiSelecting); this.Plugins.MapViewSelectorPlugin.SetGameObjectList(gameObjectList); //if (this.firstTimeMapViewSelector) { //this.firstTimeMapViewSelector = false; this.Plugins.MapViewSelectorPlugin.SetMapPosition(ShowPosition.Center); } this.Plugins.MapViewSelectorPlugin.SetOKFunction(function); this.Plugins.MapViewSelectorPlugin.Kind =mapViewSelectorKind; //this.Plugins.MapViewSelectorPlugin.SetTabList(this.Plugins.TabListPlugin); this.Plugins.MapViewSelectorPlugin.IsShowing = true; }
public void SetCreateFunction(GameDelegates.VoidFunction function) { this.createTroop.CreateFunction = function; }
internal void SetOKFunction(GameDelegates.VoidFunction okfunction) { this.frameContent.OKFunction = okfunction; }
public void SetCloseFunction(GameDelegates.VoidFunction closeFunction) { this.personTextDialog.CloseFunction += closeFunction; }
public void SetEnterFunction(GameDelegates.VoidFunction function) { this.numberInputer.EnterFunction = function; }
public void SetOKFunction(GameDelegates.VoidFunction function) { this.gameFrame.SetOKFunction(function); }
public void AddOption(string Text, object obj, GameDelegates.VoidFunction optionFunciton) { this.optionDialog.AddOptionItem(Text, obj, optionFunciton); }
public void SetReturnObjectFunction(GameDelegates.ObjectFunction returnobjectFunction) { this.optionDialog.ReturnObjectFunction = returnobjectFunction; }
public void SetConfirmationDialog(IConfirmationDialog iConfirmationDialog, GameDelegates.VoidFunction yesFunction, GameDelegates.VoidFunction noFunction) { this.personTextDialog.iConfirmationDialog = iConfirmationDialog; this.personTextDialog.YesFunction = yesFunction; this.personTextDialog.NoFunction = noFunction; this.personTextDialog.HasConfirmationDialog = true; }
public void SetCloseFunction(GameDelegates.VoidFunction closeFunction) { this.tupianwenzi.CloseFunction += closeFunction; }
internal void SetCancelFunction(GameDelegates.VoidFunction cancelfunction) { this.frameContent.CancelFunction = cancelfunction; }
public void SetConfirmationDialog(IConfirmationDialog iConfirmationDialog, GameDelegates.VoidFunction yesFunction, GameDelegates.VoidFunction noFunction) { this.tupianwenzi.iConfirmationDialog = iConfirmationDialog; this.tupianwenzi.YesFunction = yesFunction; this.tupianwenzi.NoFunction = noFunction; this.tupianwenzi.HasConfirmationDialog = true; }
public void SetOKFunction(GameDelegates.VoidFunction function) { this.mapViewSelector.OKFunction = function; }