Exemplo n.º 1
0
 public void UpdateEditingMode()
 {
     if (editStyleCombo.changed)
     {
         editorParams.ChangeEditingMode((EditingMode)editStyleCombo.GetSelectedCycleObject());
     }
 }
Exemplo n.º 2
0
 private void UpdateSnapPress()
 {
     if (snapCombo.changed)
     {
         editorParams.snap = (float)snapCombo.GetSelectedCycleObject();
     }
 }
Exemplo n.º 3
0
 private void UpdateShadowSidePress()
 {
     if (editStyleCombo.changed)
     {
         editorParams.shadowSide = (ShadowSide)editStyleCombo.GetSelectedCycleObject();
         SetSampleShadow();
     }
 }
Exemplo n.º 4
0
 private void UpdateCombos()
 {
     compressedBuilding.usingWidth  = (int)widthCombo.GetSelectedCycleObject();
     compressedBuilding.usingHeight = (int)heightCombo.GetSelectedCycleObject();
     compressedBuilding.isActive    = (bool)activeCombo.GetSelectedCycleObject();
     compressedBuilding.hasFence    = (bool)hasFenceCombo.GetSelectedCycleObject();
     compressedBuilding.elevation   = (int)elevationCombo.GetSelectedCycleObject();
     compressedBuilding.inTileShift = (int)inTileShiftCombo.GetSelectedCycleObject();
 }