This repository has been archived by the owner on Mar 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to user interface classes (#183)
* Improvements to user interface classes - Add `MouseScrollEvent` which fires when the mouse wheel is scrolled - Improve scrollable containers so they don't show scrollbars when not necessary - Add `ProtogameEventArgs` which passes `IGameContext` to click handlers - Add `Icon` property to `ListItem` - Add padding methods to `ISkinLayout` to customize padding of containers * Modify scrollable container to only use render targets as large as needed
- Loading branch information
Showing
10 changed files
with
220 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Protogame | ||
{ | ||
/// <summary> | ||
/// Fired when the mouse wheel is scrolled. | ||
/// </summary> | ||
public class MouseScrollEvent : MouseEvent | ||
{ | ||
/// <summary> | ||
/// The amount the mouse wheel has scrolled by. | ||
/// </summary> | ||
public float ScrollDelta { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.