mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +01:00
feat: only enable ContextMenu module when testing
This commit is contained in:
parent
2873dcaae2
commit
9785243eea
1 changed files with 10 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ using System;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
using Dalamud.Configuration.Internal;
|
||||||
using Dalamud.Game.Gui.ContextMenus;
|
using Dalamud.Game.Gui.ContextMenus;
|
||||||
using Dalamud.Game.Gui.Dtr;
|
using Dalamud.Game.Gui.Dtr;
|
||||||
using Dalamud.Game.Gui.FlyText;
|
using Dalamud.Game.Gui.FlyText;
|
||||||
|
|
@ -443,7 +444,15 @@ namespace Dalamud.Game.Gui
|
||||||
Service<ToastGui>.Get().Enable();
|
Service<ToastGui>.Get().Enable();
|
||||||
Service<FlyTextGui>.Get().Enable();
|
Service<FlyTextGui>.Get().Enable();
|
||||||
Service<PartyFinderGui>.Get().Enable();
|
Service<PartyFinderGui>.Get().Enable();
|
||||||
Service<ContextMenu>.Get().Enable();
|
|
||||||
|
// TODO(goat): Remove when stable
|
||||||
|
var config = Service<DalamudConfiguration>.Get();
|
||||||
|
if (config.DalamudBetaKey == DalamudConfiguration.DalamudCurrentBetaKey)
|
||||||
|
{
|
||||||
|
Log.Warning("TAKE CARE!!! You are using Dalamud Testing, so the new context menu feature is enabled.\nThis may cause crashes with unupdated plugins.");
|
||||||
|
Service<ContextMenu>.Get().Enable();
|
||||||
|
}
|
||||||
|
|
||||||
this.setGlobalBgmHook.Enable();
|
this.setGlobalBgmHook.Enable();
|
||||||
this.handleItemHoverHook.Enable();
|
this.handleItemHoverHook.Enable();
|
||||||
this.handleItemOutHook.Enable();
|
this.handleItemOutHook.Enable();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue