public AbstractGameViewModel(DialogTypeEnum dialogType, List <PositionTemplate> positionList)
        {
            InternalDialog = new Dialog(dialogType, Redo, Return);
            PauseDialog    = new PauseDialog(RunDialog);

            CreateControl();

            Control.Central.FrameChanged += FrameChanged;
            Control.IniciarJogo(positionList);
        }
Exemple #2
0
        public static DialogPool GetDialogPool(DialogTypeEnum type)
        {
            switch (type)
            {
            case DialogTypeEnum.Greeting:
                return(new WelcomeDialogsPool());

            default:
                throw new NotImplementedException();
            }
        }
Exemple #3
0
 public static void SendLeaveDialogMessage(IPacketReceiver client, DialogTypeEnum dialogType)
 {
     client.Send(new LeaveDialogMessage((sbyte)dialogType));
 }
 protected string GetClientOpenDialogCommand(DialogTypeEnum dialogType)
 {
     return "ToSexyContent.ItemForm.Hyperlink.OpenDialog(this, \"" + DialogOpener1.ClientID + "\", \"" + dialogType + "\", \"" + Attribute.StaticName + "\", " + PortalSettings.Current.PortalId + ", \"" + PortalSettings.Current.HomeDirectory + "\");";
 }
 public static void SendExchangeLeaveMessage(IPacketReceiver client, DialogTypeEnum dialogType, bool success)
 {
     client.Send(new ExchangeLeaveMessage((sbyte)dialogType, success));
 }
 protected string GetClientOpenDialogCommand(DialogTypeEnum dialogType)
 {
     return("ToSexyContent.ItemForm.Hyperlink.OpenDialog(this, \"" + DialogOpener1.ClientID + "\", \"" + dialogType + "\", \"" + Attribute.StaticName + "\", " + PortalSettings.Current.PortalId + ", \"" + PortalSettings.Current.HomeDirectory + "\");");
 }
Exemple #7
0
 public Dialog(DialogTypeEnum type)
 {
     this.Type  = type;
     this.Items = new List <DialogItem>();
 }
Exemple #8
0
 public Dialog(DialogTypeEnum dialogType, Action redoAction, Action returnAction)
 {
     Type         = dialogType;
     RedoAction   = redoAction;
     ReturnAction = returnAction;
 }
Exemple #9
0
 public DialogPool(DialogTypeEnum dialogType)
 {
     this.DialogType = dialogType;
 }
Exemple #10
0
 private UIDialog PushDialog(DialogTypeEnum dialog)
 {
     dialogStack.Push(dialogList[dialog]);
     return dialogStack.Peek();
 }
Exemple #11
0
 public void OpenDialog(DialogTypeEnum dialog, params string [] data)
 {
     PushDialog(dialog).OnDialogOpen(data);
 }
Exemple #12
0
 public void OpenDialog(DialogTypeEnum dialog, object data = null)
 {
     PushDialog(dialog).OnDialogOpen(data);
 }