style: fix spacing
This commit is contained in:
parent
dd1fb416b7
commit
31e2002696
|
@ -34,6 +34,7 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
if (ImGui.IsWindowAppearing()) {
|
if (ImGui.IsWindowAppearing()) {
|
||||||
this._nameInput = this.Ui.Plugin.Functions.ExamineName ?? "Copied glamour";
|
this._nameInput = this.Ui.Plugin.Functions.ExamineName ?? "Copied glamour";
|
||||||
}
|
}
|
||||||
|
|
||||||
HelperUtil.DrawCreatePlateMenu(this.Ui, GetItems, ref this._nameInput);
|
HelperUtil.DrawCreatePlateMenu(this.Ui, GetItems, ref this._nameInput);
|
||||||
|
|
||||||
if (ImGui.Selectable("Try on")) {
|
if (ImGui.Selectable("Try on")) {
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
|
|
||||||
internal static bool DrawCreatePlateMenu(PluginUi ui, Func<Dictionary<PlateSlot, SavedGlamourItem>?> getter, ref string nameInput) {
|
internal static bool DrawCreatePlateMenu(PluginUi ui, Func<Dictionary<PlateSlot, SavedGlamourItem>?> getter, ref string nameInput) {
|
||||||
var ret = false;
|
var ret = false;
|
||||||
|
|
||||||
if (!ImGui.BeginMenu("Create glamour plate")) {
|
if (!ImGui.BeginMenu("Create glamour plate")) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -107,6 +107,7 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.PopTextWrapPos();
|
ImGui.PopTextWrapPos();
|
||||||
|
|
||||||
if (ImGui.IsWindowAppearing()) {
|
if (ImGui.IsWindowAppearing()) {
|
||||||
|
@ -136,7 +137,7 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
|
|
||||||
ImGui.EndChild();
|
ImGui.EndChild();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.EndMenu();
|
ImGui.EndMenu();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -148,12 +149,13 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
};
|
};
|
||||||
|
|
||||||
Configuration.SanitisePlate(plate);
|
Configuration.SanitisePlate(plate);
|
||||||
|
|
||||||
if (idx == -1) {
|
if (idx == -1) {
|
||||||
ui.Plugin.Config.AddPlate(plate);
|
ui.Plugin.Config.AddPlate(plate);
|
||||||
} else {
|
} else {
|
||||||
ui.Plugin.Config.Plates[idx] = plate;
|
ui.Plugin.Config.Plates[idx] = plate;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.Plugin.SaveConfig();
|
ui.Plugin.SaveConfig();
|
||||||
ui.OpenMainInterface();
|
ui.OpenMainInterface();
|
||||||
ui.SwitchPlate(idx == -1 ? ui.Plugin.Config.Plates.Count - 1 : idx, true);
|
ui.SwitchPlate(idx == -1 ? ui.Plugin.Config.Plates.Count - 1 : idx, true);
|
||||||
|
|
|
@ -251,7 +251,7 @@ namespace Glamaholic.Ui {
|
||||||
if (string.IsNullOrWhiteSpace(name)) {
|
if (string.IsNullOrWhiteSpace(name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var item = this.Items.Find(item => item.Name == name);
|
var item = this.Items.Find(item => item.Name == name);
|
||||||
if (item == null) {
|
if (item == null) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -119,7 +119,7 @@ namespace Glamaholic {
|
||||||
if (category.FingerL > 0) {
|
if (category.FingerL > 0) {
|
||||||
return PlateSlot.LeftRing;
|
return PlateSlot.LeftRing;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue