Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
Add Icon and Toggled properties to UI Button (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed May 26, 2017
1 parent c510ef6 commit 4a88a18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Protogame/UserInterface/Control/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public Button()

public string Text { get; set; }

public IAssetReference<TextureAsset> Icon { get; set; }

public bool Toggled { get; set; }

public virtual void Render(IRenderContext context, ISkinLayout skinLayout, ISkinDelegator skinDelegator, Rectangle layout)
{
skinDelegator.Render(context, layout, this);
Expand Down

0 comments on commit 4a88a18

Please sign in to comment.