コード例 #1
0
ファイル: MainWindow.cs プロジェクト: punytroll/buttonoffice
 private void _OnBuildStairsButtonCheckedChanged(Object Sender, EventArgs EventArguments)
 {
     _EntityPrototype = null;
     if (_BuildStairsButton.Checked == true)
     {
         _EntityPrototype = new EntityPrototype();
         _EntityPrototype.BackgroundColor = Data.StairsBackgroundColor;
         _EntityPrototype.BorderColor     = Data.StairsBorderColor;
         _EntityPrototype.SetGameFunction(_Game.BuildStairs);
         _EntityPrototype.SetHeight(Data.StairsBlockHeight);
         _EntityPrototype.SetWidth(Data.StairsBlockWidth);
     }
 }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: punytroll/buttonoffice
 private void _OnHireWorkerButtonCheckedChanged(Object Sender, EventArgs EventArguments)
 {
     _EntityPrototype = null;
     if (_HireWorkerButton.Checked == true)
     {
         _EntityPrototype = new EntityPrototype();
         _EntityPrototype.SnapToBlocksHorizontally = false;
         _EntityPrototype.BackgroundColor          = Data.WorkerBackgroundColor;
         _EntityPrototype.BorderColor = Data.WorkerBorderColor;
         _EntityPrototype.SetGameFunction(_Game.HireWorker);
         _EntityPrototype.SetHeight(Data.PersonHeightMean);
         _EntityPrototype.SetWidth(Data.PersonWidthMean);
     }
 }
コード例 #3
0
ファイル: MainWindow.cs プロジェクト: punytroll/buttonoffice
 private void _OnPlaceCatButtonCheckedChanged(Object Sender, EventArgs EventArguments)
 {
     _EntityPrototype = null;
     if (_PlaceCatButton.Checked == true)
     {
         _EntityPrototype = new EntityPrototype();
         _EntityPrototype.SnapToBlocksHorizontally = false;
         _EntityPrototype.BackgroundColor          = Data.CatBackgroundColor;
         _EntityPrototype.BorderColor = Data.CatBorderColor;
         _EntityPrototype.DrawType    = DrawType.Ellipse;
         _EntityPrototype.SetGameFunction(_Game.PlaceCat);
         _EntityPrototype.SetHeight(Data.CatHeight);
         _EntityPrototype.SetWidth(Data.CatWidth);
     }
 }