Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -47,9 +47,7 @@ namespace Server.Gumps
|
|||
|
||||
public class BaseImageTileButtonsGump : Gump
|
||||
{
|
||||
private ImageTileButtonInfo[] m_Buttons;
|
||||
|
||||
protected ImageTileButtonInfo[] Buttons => m_Buttons;
|
||||
protected ImageTileButtonInfo[] Buttons { get; }
|
||||
|
||||
protected virtual int XItems => 2;
|
||||
protected virtual int YItems => 5;
|
||||
|
|
@ -59,7 +57,7 @@ namespace Server.Gumps
|
|||
}
|
||||
public BaseImageTileButtonsGump( TextDefinition header, ImageTileButtonInfo[] buttons ) : base( 10, 10 ) //Coords are 0, o on OSI, intentional difference
|
||||
{
|
||||
m_Buttons = buttons;
|
||||
Buttons = buttons;
|
||||
AddPage( 0 );
|
||||
|
||||
int x = XItems * 250;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue