Tweak CorePlugin

This commit is contained in:
Raymond 2021-08-09 10:00:41 -04:00
parent 7f4720ceb6
commit 9ba3d85b03
3 changed files with 12 additions and 14 deletions

View file

@ -11,23 +11,22 @@
<NoWarn>IDE0003</NoWarn> <NoWarn>IDE0003</NoWarn>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Label="Build">
<DebugSymbols>true</DebugSymbols> <OutputPath>$(AppData)\XIVLauncher\devPlugins\Dalamud.CorePlugin</OutputPath>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>$(appData)\XIVLauncher\devPlugins\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " Label="Build">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " Label="Build">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>$(appData)\XIVLauncher\devPlugins\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -2,6 +2,7 @@ using System;
using System.IO; using System.IO;
using Dalamud.Interface.Windowing; using Dalamud.Interface.Windowing;
using Dalamud.Logging;
using Dalamud.Plugin; using Dalamud.Plugin;
namespace Dalamud.CorePlugin namespace Dalamud.CorePlugin

View file

@ -11,8 +11,6 @@ namespace Dalamud.CorePlugin
/// </summary> /// </summary>
internal class PluginWindow : Window, IDisposable internal class PluginWindow : Window, IDisposable
{ {
private static readonly ModuleLog Log = new("CorePlugin");
private readonly Dalamud dalamud; private readonly Dalamud dalamud;
/// <summary> /// <summary>
@ -20,13 +18,13 @@ namespace Dalamud.CorePlugin
/// </summary> /// </summary>
/// <param name="dalamud">The Dalamud instance.</param> /// <param name="dalamud">The Dalamud instance.</param>
public PluginWindow(Dalamud dalamud) public PluginWindow(Dalamud dalamud)
: base("CorePlugin", ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoScrollbar) : base("CorePlugin")
{ {
this.dalamud = dalamud; this.dalamud = dalamud;
this.IsOpen = true; this.IsOpen = true;
this.Size = new Vector2(810, 520); this.Size = new Vector2(810, 520);
this.SizeCondition = ImGuiCond.Always; this.SizeCondition = ImGuiCond.FirstUseEver;
} }
/// <inheritdoc/> /// <inheritdoc/>