loc: style editor, feedback tweaks

This commit is contained in:
goat 2021-09-28 03:54:45 +02:00
parent 886c088dec
commit 71165b599b
No known key found for this signature in database
GPG key ID: F18F057873895461
4 changed files with 26 additions and 7 deletions

View file

@ -1,7 +1,8 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Numerics;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
using Dalamud.Interface.Windowing;
using ImGuiNET;
@ -12,6 +13,9 @@ namespace Dalamud.CorePlugin
/// </summary>
internal class PluginWindow : Window, IDisposable
{
private Vector4 bgCol = ImGuiColors.HealerGreen;
private Vector4 textCol = ImGuiColors.DalamudWhite;
/// <summary>
/// Initializes a new instance of the <see cref="PluginWindow"/> class.
/// </summary>
@ -37,6 +41,21 @@ namespace Dalamud.CorePlugin
/// <inheritdoc/>
public override void Draw()
{
ImGui.ColorPicker4("bg", ref this.bgCol);
ImGui.ColorPicker4("text", ref this.textCol);
ImGui.PushStyleColor(ImGuiCol.ChildBg, this.bgCol);
ImGui.PushStyleColor(ImGuiCol.Text, this.textCol);
if (ImGui.BeginChild("##changelog", new Vector2(-1, 100), true, ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.AlwaysAutoResize))
{
ImGui.Text("Changelog:");
ImGuiHelpers.ScaledDummy(2);
ImGui.TextWrapped("* ASIhif ai fdh adhsfuoadf\n* IUHoiaudsfh adsof hioaudshfuio husiodfh\n* A iiaojfdpasd ijopadfnklafwjenalkfjensgdlkjnasasdfbhnj");
}
ImGui.EndChild();
ImGui.PopStyleColor(2);
}
}
}