feat: add click count needed before dev menu opens

This commit is contained in:
goaaats 2021-12-08 22:52:18 +01:00
parent 193c299466
commit ba0d64d3e6
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -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)