mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 06:17:43 +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 readonly TextureWrap logoTexture;
|
||||||
|
|
||||||
|
private uint devButtonClickCnt = 0;
|
||||||
private ulong frameCount = 0;
|
private ulong frameCount = 0;
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|
@ -378,7 +379,14 @@ namespace Dalamud.Interface.Internal
|
||||||
{
|
{
|
||||||
var cursor = ImGui.GetCursorPos();
|
var cursor = ImGui.GetCursorPos();
|
||||||
if (ImGui.Button("###devMenuOpener", imageSize))
|
if (ImGui.Button("###devMenuOpener", imageSize))
|
||||||
this.isImGuiDrawDevMenu = true;
|
{
|
||||||
|
if (this.devButtonClickCnt > 20)
|
||||||
|
{
|
||||||
|
this.isImGuiDrawDevMenu = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.devButtonClickCnt++;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
if (config.DoDalamudTest)
|
if (config.DoDalamudTest)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue