Esempio n. 1
0
 public override void Update(StateManage SM, Form GM)
 {
     // scriptMachine_.Execute(SLM_);
     if (isTransBack_)
     {
         if (modified_)
         {
             string   filename = "./Config/config.conf";
             string[] strs     = File.ReadAllLines(filename);
             if (Const.CheckBoxList.Information != null)
             {
                 strs[0] = Const.CheckBoxList.Information[0];
                 strs[1] = Const.CheckBoxList.Information[1];
             }
             if (Const.Slider.Information != null)
             {
                 strs[2] = Const.Slider.Information;
             }
             File.WriteAllLines(filename, strs, System.Text.Encoding.GetEncoding("UTF-8"));
             ((GameForm)GM).ReloadConfig();
             // Console.WriteLine("SettingState.Update modified_");
         }
         isTransBack_ = false;
         // Control = false;
         SM.Pop();
     }
 }
Esempio n. 2
0
 public override void Update(StateManage SM, Form GF)
 {
     scriptMachine_.Execute(GML_);
     // test
     if (isTransSetting_)
     {
         isTransSetting_ = false;
         SM.Push(new SettingState(GF, Const.Window.WIDTH, Const.Window.HEIGHT));
         // SM.Pop();
     }
 }
Esempio n. 3
0
 public override void Update(StateManage SM, Form GF)
 {
     // scriptMachine_.Execute(TLM_);
     if (isTransGameState_)
     {
         isTransGameState_ = false;
         // Control = false;
         SM.Push(new NovelState(GF, Const.Window.WIDTH, Const.Window.HEIGHT, "Script/start.fnms"));
     }
     else if (isTransSettingState_)
     {
         isTransSettingState_ = false;
         // Control = false;
         SM.Push(new SettingState(GF, Const.Window.WIDTH, Const.Window.HEIGHT));
     }
 }
Esempio n. 4
0
 public virtual void Update(StateManage SM, Form GF)
 {
 }