private void Setup() { _swatchtexture = Skin.Renderer.CreateTexture(GameResources.swatch); _btnblue = AddButton(LineType.Blue); _btnred = AddButton(LineType.Red); _btngreem = AddButton(LineType.Scenery); }
private SwatchColorButton AddButton(LineType lineType) { var ret = new SwatchColorButton(this, lineType) { Dock = Dock.Left, Margin = Margin.One }; ret.SetImage(_swatchtexture); return(ret); }