예제 #1
0
 protected virtual void Update()
 {
     if (lastMode != mode)
     {
         lastMode = mode;
         ApplyMode();
     }
 }
예제 #2
0
 public SplitView(
     Widget view1,
     Widget view2,
     SplitViewMode viewMode,
     float gripSize      = 8f,
     float initialWeight = 0.5f,
     float positionLimit = 20f,
     Color gripColor     = default(Color),
     ValueChanged <float> onWeightChanged = null
     )
 {
     D.assert(view1 != null);
     D.assert(view2 != null);
     this.view1           = view1;
     this.view2           = view2;
     this.viewMode        = viewMode;
     this.gripSize        = gripSize;
     this.gripColor       = gripColor ?? Colors.grey;
     this.initialWeight   = initialWeight;
     this.positionLimit   = positionLimit;
     this.onWeightChanged = onWeightChanged;
 }