style: fix spacing

This commit is contained in:
Anna 2021-12-09 01:19:31 -05:00
parent dd1fb416b7
commit 31e2002696
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
4 changed files with 8 additions and 5 deletions

View File

@ -34,6 +34,7 @@ namespace Glamaholic.Ui.Helpers {
if (ImGui.IsWindowAppearing()) {
this._nameInput = this.Ui.Plugin.Functions.ExamineName ?? "Copied glamour";
}
HelperUtil.DrawCreatePlateMenu(this.Ui, GetItems, ref this._nameInput);
if (ImGui.Selectable("Try on")) {

View File

@ -93,7 +93,7 @@ namespace Glamaholic.Ui.Helpers {
internal static bool DrawCreatePlateMenu(PluginUi ui, Func<Dictionary<PlateSlot, SavedGlamourItem>?> getter, ref string nameInput) {
var ret = false;
if (!ImGui.BeginMenu("Create glamour plate")) {
return ret;
}
@ -107,6 +107,7 @@ namespace Glamaholic.Ui.Helpers {
ret = true;
}
}
ImGui.PopTextWrapPos();
if (ImGui.IsWindowAppearing()) {
@ -136,7 +137,7 @@ namespace Glamaholic.Ui.Helpers {
ImGui.EndChild();
}
ImGui.EndMenu();
return ret;
@ -148,12 +149,13 @@ namespace Glamaholic.Ui.Helpers {
};
Configuration.SanitisePlate(plate);
if (idx == -1) {
ui.Plugin.Config.AddPlate(plate);
} else {
ui.Plugin.Config.Plates[idx] = plate;
}
ui.Plugin.SaveConfig();
ui.OpenMainInterface();
ui.SwitchPlate(idx == -1 ? ui.Plugin.Config.Plates.Count - 1 : idx, true);

View File

@ -251,7 +251,7 @@ namespace Glamaholic.Ui {
if (string.IsNullOrWhiteSpace(name)) {
continue;
}
var item = this.Items.Find(item => item.Name == name);
if (item == null) {
continue;

View File

@ -119,7 +119,7 @@ namespace Glamaholic {
if (category.FingerL > 0) {
return PlateSlot.LeftRing;
}
return null;
}