-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add request of board and display of board dialog
- Loading branch information
1 parent
10491f9
commit 2205483
Showing
10 changed files
with
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using EOLib.IO.Map; | ||
|
||
namespace EOLib.IO.Extensions | ||
{ | ||
public static class TileSpecExtensions | ||
{ | ||
public static bool IsBoard(this TileSpec tileSpec) | ||
{ | ||
return tileSpec == TileSpec.Board1 || | ||
tileSpec == TileSpec.Board2 || | ||
tileSpec == TileSpec.Board3 || | ||
tileSpec == TileSpec.Board4 || | ||
tileSpec == TileSpec.Board5 || | ||
tileSpec == TileSpec.Board6 || | ||
tileSpec == TileSpec.Board7 || | ||
tileSpec == TileSpec.Board8; | ||
} | ||
} | ||
} |
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
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,14 @@ | ||
using EndlessClient.Dialogs.Services; | ||
using EOLib.Graphics; | ||
|
||
namespace EndlessClient.Dialogs | ||
{ | ||
public class BoardDialog : ScrollingListDialog | ||
{ | ||
public BoardDialog(INativeGraphicsManager nativeGraphicsManager, | ||
IEODialogButtonService dialogButtonService) | ||
: base(nativeGraphicsManager, dialogButtonService, ScrollingListDialogSize.MediumWithHeader) | ||
{ | ||
} | ||
} | ||
} |
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,30 @@ | ||
using AutomaticTypeMapper; | ||
using EndlessClient.Dialogs.Services; | ||
using EOLib.Graphics; | ||
|
||
namespace EndlessClient.Dialogs.Factories | ||
{ | ||
[AutoMappedType] | ||
public class BoardDialogFactory : IBoardDialogFactory | ||
{ | ||
private readonly INativeGraphicsManager _nativeGraphicsManager; | ||
private readonly IEODialogButtonService _eoDialogButtonService; | ||
|
||
public BoardDialogFactory(INativeGraphicsManager nativeGraphicsManager, | ||
IEODialogButtonService eoDialogButtonService) | ||
{ | ||
_nativeGraphicsManager = nativeGraphicsManager; | ||
_eoDialogButtonService = eoDialogButtonService; | ||
} | ||
|
||
public BoardDialog Create() | ||
{ | ||
return new BoardDialog(_nativeGraphicsManager, _eoDialogButtonService); | ||
} | ||
} | ||
|
||
public interface IBoardDialogFactory | ||
{ | ||
BoardDialog Create(); | ||
} | ||
} |
Oops, something went wrong.