mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 21:57:22 +01:00
more potential crash fixes + gpose fix
This commit is contained in:
parent
eed44f090d
commit
6457a1fe9a
9 changed files with 94 additions and 61 deletions
|
|
@ -86,8 +86,8 @@ public class CompactUi : WindowMediatorSubscriberBase, IDisposable
|
|||
|
||||
Mediator.Subscribe<SwitchToMainUiMessage>(this, (_) => IsOpen = true);
|
||||
Mediator.Subscribe<SwitchToIntroUiMessage>(this, (_) => IsOpen = false);
|
||||
Mediator.Subscribe<GposeStartMessage>(this, (_) => UiShared_GposeStart());
|
||||
Mediator.Subscribe<GposeEndMessage>(this, (_) => UiShared_GposeEnd());
|
||||
Mediator.Subscribe<CutsceneStartMessage>(this, (_) => UiShared_GposeStart());
|
||||
Mediator.Subscribe<CutsceneEndMessage>(this, (_) => UiShared_GposeEnd());
|
||||
|
||||
SizeConstraints = new WindowSizeConstraints()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ public class SettingsUi : WindowMediatorSubscriberBase, IDisposable
|
|||
|
||||
Mediator.Subscribe<OpenSettingsUiMessage>(this, (_) => Toggle());
|
||||
Mediator.Subscribe<SwitchToIntroUiMessage>(this, (_) => IsOpen = false);
|
||||
Mediator.Subscribe<GposeStartMessage>(this, (_) => UiShared_GposeStart());
|
||||
Mediator.Subscribe<GposeEndMessage>(this, (_) => UiShared_GposeEnd());
|
||||
Mediator.Subscribe<CutsceneStartMessage>(this, (_) => UiShared_GposeStart());
|
||||
Mediator.Subscribe<CutsceneEndMessage>(this, (_) => UiShared_GposeEnd());
|
||||
Mediator.Subscribe<CharacterDataCreatedMessage>(this, (msg) => LastCreatedCharacterData = ((CharacterDataCreatedMessage)msg).CharacterData.ToAPI());
|
||||
|
||||
windowSystem.AddWindow(this);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public partial class UiShared : MediatorSubscriberBase
|
|||
public bool EditTrackerPosition { get; set; }
|
||||
public ImFontPtr UidFont { get; private set; }
|
||||
public bool UidFontBuilt { get; private set; }
|
||||
public bool IsInGpose => _dalamudUtil.IsInGpose;
|
||||
public bool IsInGpose => _dalamudUtil.IsInCutscene;
|
||||
public static bool CtrlPressed() => (GetKeyState(0xA2) & 0x8000) != 0 || (GetKeyState(0xA3) & 0x8000) != 0;
|
||||
public static bool ShiftPressed() => (GetKeyState(0xA1) & 0x8000) != 0 || (GetKeyState(0xA0) & 0x8000) != 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue