mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Enforce readonly private members where possible.
This commit is contained in:
@ -26,13 +26,13 @@ namespace osu.Game.Screens.Menu
|
||||
/// </summary>
|
||||
public class Button : Container, IStateful<ButtonState>
|
||||
{
|
||||
private Container iconText;
|
||||
private Container box;
|
||||
private Box boxHoverLayer;
|
||||
private TextAwesome icon;
|
||||
private string internalName;
|
||||
private Action clickAction;
|
||||
private Key triggerKey;
|
||||
private readonly Container iconText;
|
||||
private readonly Container box;
|
||||
private readonly Box boxHoverLayer;
|
||||
private readonly TextAwesome icon;
|
||||
private readonly string internalName;
|
||||
private readonly Action clickAction;
|
||||
private readonly Key triggerKey;
|
||||
private SampleChannel sampleClick;
|
||||
|
||||
protected override bool InternalContains(Vector2 screenSpacePos) => box.Contains(screenSpacePos);
|
||||
|
Reference in New Issue
Block a user