forked from C1rdec/Poe-Lurker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
601 additions
and
256 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1 +1 @@ | ||
32375850;4000228;13804588;32387855;32436516;11533714;33504923 | ||
32375850;4000228;13804588;32387855;32436516;11533714;33504923;35049341 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,61 @@ | ||
namespace Lurker.UI.ViewModels | ||
{ | ||
using Caliburn.Micro; | ||
using Lurker; | ||
using Lurker.Helpers; | ||
using Lurker.Models; | ||
using Lurker.Services; | ||
|
||
public class HideoutViewModel : PoeOverlayBase | ||
{ | ||
#region Fields | ||
|
||
private static readonly int DefaultSize = 60; | ||
PoeKeyboardHelper _keyboardHelper; | ||
|
||
#endregion | ||
|
||
#region Constructors | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="HideoutViewModel"/> class. | ||
/// </summary> | ||
/// <param name="windowManager">The window manager.</param> | ||
/// <param name="dockingHelper">The docking helper.</param> | ||
/// <param name="processLurker"></param> | ||
/// <param name="settingsService"></param> | ||
public HideoutViewModel(IWindowManager windowManager, DockingHelper dockingHelper, ProcessLurker processLurker, SettingsService settingsService, PoeKeyboardHelper keyboardHelper) | ||
: base(windowManager, dockingHelper, processLurker, settingsService) | ||
{ | ||
this._keyboardHelper = keyboardHelper; | ||
} | ||
|
||
#endregion | ||
|
||
/// <summary> | ||
/// Joins the hideout. | ||
/// </summary> | ||
public void JoinHideout() | ||
{ | ||
this._keyboardHelper.JoinHideout(); | ||
} | ||
|
||
/// <summary> | ||
/// Sets the window position. | ||
/// </summary> | ||
/// <param name="windowInformation"></param> | ||
protected override void SetWindowPosition(PoeWindowInformation windowInformation) | ||
{ | ||
var value = DefaultSize * windowInformation.Height / 1080; | ||
var margin = PoeApplicationContext.WindowStyle == WindowStyle.Windowed ? 10 : 0; | ||
|
||
Execute.OnUIThread(() => | ||
{ | ||
this._view.Height = value; | ||
this._view.Width = value; | ||
this._view.Left = windowInformation.Position.Left + margin; | ||
this._view.Top = windowInformation.Position.Bottom - value - margin; | ||
}); | ||
} | ||
} | ||
} |
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.