Skip to content

Commit a9acdcc

Browse files
committed
fix tree node labels rendering their "button" backgrounds
1 parent a2354d2 commit a9acdcc

File tree

1 file changed

+4
-1
lines changed
  • Intersect.Client.Framework/Gwen/Control

1 file changed

+4
-1
lines changed

Intersect.Client.Framework/Gwen/Control/Button.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ public virtual void Toggle()
266266
/// <param name="skin">Skin to use.</param>
267267
protected override void Render(Skin.Base skin)
268268
{
269-
skin.DrawButton(this);
269+
if (ShouldDrawBackground)
270+
{
271+
skin.DrawButton(this);
272+
}
270273

271274
base.Render(skin);
272275
}

0 commit comments

Comments
 (0)