mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
loc: style editor, feedback tweaks
This commit is contained in:
parent
886c088dec
commit
71165b599b
4 changed files with 26 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue