feat(debug): add column amount chooser
This commit is contained in:
parent
a40bb26303
commit
9f7a66e150
|
@ -8,6 +8,7 @@ namespace NominaOcculta {
|
|||
|
||||
internal bool Visible;
|
||||
private bool _debug;
|
||||
private int _queueColumns = 2;
|
||||
|
||||
internal PluginUi(Plugin plugin) {
|
||||
this.Plugin = plugin;
|
||||
|
@ -80,9 +81,13 @@ namespace NominaOcculta {
|
|||
ImGui.Separator();
|
||||
|
||||
if (ImGui.TreeNode("Name queue")) {
|
||||
if (ImGui.InputInt("Columns", ref this._queueColumns)) {
|
||||
this._queueColumns = Math.Max(1, this._queueColumns);
|
||||
}
|
||||
|
||||
foreach (var (info, queue) in this.Plugin.NameRepository.ReadOnlyNames) {
|
||||
if (ImGui.CollapsingHeader($"{info}")) {
|
||||
if (ImGui.BeginTable($"{info} table", 2)) {
|
||||
if (ImGui.BeginTable($"{info} table", this._queueColumns)) {
|
||||
foreach (var name in queue) {
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.TextUnformatted(name);
|
||||
|
|
Loading…
Reference in New Issue