mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
feat: add click count needed before dev menu opens
This commit is contained in:
parent
193c299466
commit
ba0d64d3e6
1 changed files with 9 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ namespace Dalamud.Interface.Internal
|
|||
|
||||
private readonly TextureWrap logoTexture;
|
||||
|
||||
private uint devButtonClickCnt = 0;
|
||||
private ulong frameCount = 0;
|
||||
|
||||
#if DEBUG
|
||||
|
|
@ -378,7 +379,14 @@ namespace Dalamud.Interface.Internal
|
|||
{
|
||||
var cursor = ImGui.GetCursorPos();
|
||||
if (ImGui.Button("###devMenuOpener", imageSize))
|
||||
this.isImGuiDrawDevMenu = true;
|
||||
{
|
||||
if (this.devButtonClickCnt > 20)
|
||||
{
|
||||
this.isImGuiDrawDevMenu = true;
|
||||
}
|
||||
|
||||
this.devButtonClickCnt++;
|
||||
}
|
||||
/*
|
||||
#if !DEBUG
|
||||
if (config.DoDalamudTest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue