public TileSelector(Int32 width = DEFAULT_SIZE, Int32 height = DEFAULT_SIZE) : base() { Width = width; Height = height; VMainBox = new VAutoSizeBox(false); HMidleBox = new HAutoSizeBox(); MultiBox = new MultiBox(Alignment.Vertical, Height, Width); MultiBox.SetSize(Width); MultiBox.OnVPointerChange += new PointerChangeEventHandler(MultiBox_OnVPointerChange); MultiBox.OnHPointerChange += new PointerChangeEventHandler(MultiBox_OnHPointerChange); VScrollBar = new VScrollBar(); VScrollBar.Scrolled += new ScrollEventHandler(VScrollBar_Scrolled); HScrollBar = new HScrollBar(); HScrollBar.Scrolled += new ScrollEventHandler(HScrollBar_Scrolled); AddWidget(VMainBox); VMainBox.AddItem(HMidleBox, 0, HAlignment.Right); HMidleBox.AddItem(MultiBox); HMidleBox.AddItem(VScrollBar); VMainBox.AddItem(HScrollBar); }
public ScrollableWindowedWidget(String title) : base(title) { VScrollBar = new VScrollBar(); AddWidget(VScrollBar); HScrollBar = new HScrollBar(); AddWidget(HScrollBar); //Refresh(); }
public MapBox(Vector2f size) : base() { Margins = Border.GetBoxBorderWidth(); Size = size; VScrollBar = new VScrollBar(); AddWidget(VScrollBar); HScrollBar = new HScrollBar(); AddWidget(HScrollBar); MapIsUpdated = false; }