fix: make table work properly
This commit is contained in:
parent
30c4a2abb1
commit
6134ac0c55
|
@ -1,4 +1,5 @@
|
|||
using ImGuiNET;
|
||||
using System.Numerics;
|
||||
using ImGuiNET;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using Lumina.Text;
|
||||
|
||||
|
@ -39,6 +40,8 @@ internal class PluginUi : IDisposable {
|
|||
return;
|
||||
}
|
||||
|
||||
ImGui.SetNextWindowSize(new Vector2(780, 450), ImGuiCond.FirstUseEver);
|
||||
|
||||
if (!ImGui.Begin(this.Plugin.Name, ref this._visible)) {
|
||||
ImGui.End();
|
||||
return;
|
||||
|
@ -75,8 +78,7 @@ internal class PluginUi : IDisposable {
|
|||
ImGui.SetNextItemWidth(-1);
|
||||
ImGui.InputTextWithHint("##search", hint, ref this._searchText, 64);
|
||||
|
||||
if (ImGui.BeginChild("##titles")) {
|
||||
if (ImGui.BeginTable("##titles-table", 3)) {
|
||||
if (ImGui.BeginTable("##titles-table", 3, ImGuiTableFlags.ScrollY, ImGui.GetContentRegionAvail())) {
|
||||
ImGui.TableSetupColumn("Title", ImGuiTableColumnFlags.WidthFixed);
|
||||
ImGui.TableSetupColumn("Achievement", ImGuiTableColumnFlags.WidthFixed);
|
||||
ImGui.TableSetupColumn("Category", ImGuiTableColumnFlags.WidthStretch);
|
||||
|
@ -109,9 +111,6 @@ internal class PluginUi : IDisposable {
|
|||
ImGui.EndTable();
|
||||
}
|
||||
|
||||
ImGui.EndChild();
|
||||
}
|
||||
|
||||
ImGui.End();
|
||||
}
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- <Dalamud>$(AppData)\XIVLauncher\addon\Hooks\dev</Dalamud>-->
|
||||
<Dalamud>/home/ascclemens/dalamud</Dalamud>
|
||||
<Dalamud>$(AppData)\XIVLauncher\addon\Hooks\dev</Dalamud>
|
||||
<!-- <Dalamud>$(DALAMUD_HOME)</Dalamud>-->
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(IsCI)' == 'true'">
|
||||
|
|
Loading…
Reference in New Issue