-
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.
Re-implement textinputdialog. Implement Add logic for friend/ignore l…
…ists.
- Loading branch information
1 parent
2b9e91a
commit 883eeb7
Showing
7 changed files
with
215 additions
and
72 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,48 @@ | ||
using AutomaticTypeMapper; | ||
using EndlessClient.Content; | ||
using EndlessClient.Dialogs.Services; | ||
using EndlessClient.GameExecution; | ||
using EndlessClient.Input; | ||
using EOLib.Graphics; | ||
|
||
namespace EndlessClient.Dialogs.Factories | ||
{ | ||
[AutoMappedType] | ||
public class TextInputDialogFactory : ITextInputDialogFactory | ||
{ | ||
private readonly IGameStateProvider _gameStateProvider; | ||
private readonly INativeGraphicsManager _nativeGraphicsManager; | ||
private readonly IEODialogButtonService _eoDialogButtonService; | ||
private readonly IKeyboardDispatcherRepository _keyboardDispatcherRepository; | ||
private readonly IContentManagerProvider _contentManagerProvider; | ||
|
||
public TextInputDialogFactory(IGameStateProvider gameStateProvider, | ||
INativeGraphicsManager nativeGraphicsManager, | ||
IEODialogButtonService eoDialogButtonService, | ||
IKeyboardDispatcherRepository keyboardDispatcherRepository, | ||
IContentManagerProvider contentManagerProvider) | ||
{ | ||
_gameStateProvider = gameStateProvider; | ||
_nativeGraphicsManager = nativeGraphicsManager; | ||
_eoDialogButtonService = eoDialogButtonService; | ||
_keyboardDispatcherRepository = keyboardDispatcherRepository; | ||
_contentManagerProvider = contentManagerProvider; | ||
} | ||
|
||
public TextInputDialog Create(string prompt, int maxInputChars = 12) | ||
{ | ||
return new TextInputDialog(_gameStateProvider, | ||
_nativeGraphicsManager, | ||
_eoDialogButtonService, | ||
_keyboardDispatcherRepository, | ||
_contentManagerProvider, | ||
prompt, | ||
maxInputChars); | ||
} | ||
} | ||
|
||
public interface ITextInputDialogFactory | ||
{ | ||
TextInputDialog Create(string prompt, int maxInputChars = 12); | ||
} | ||
} |
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.