Add ability to apply profiles on character selection (lobby) screen

This commit is contained in:
RisaDev
2024-04-15 23:45:48 +03:00
parent 237c7d5c6a
commit bf74d3774c
6 changed files with 63 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ public class StateMonitoringTab
ImGui.Text($"Count: {kvPair.Value.Objects.Count}");
foreach (var item in kvPair.Value.Objects)
{
ImGui.Text($"{item}, valid: {item.Valid}");
ImGui.Text($"[{item.Index}] - {item}, valid: {item.Valid}");
}
ImGui.Spacing();

View File

@@ -104,6 +104,7 @@ public class SettingsTab
DrawApplyInTryOnCheckbox();
DrawApplyInCardsCheckbox();
DrawApplyInInspectCheckbox();
DrawApplyInLobbyCheckbox();
}
private void DrawApplyInCharacterWindowCheckbox()
@@ -157,6 +158,19 @@ public class SettingsTab
_armatureManager.RebindAllArmatures();
}
}
private void DrawApplyInLobbyCheckbox()
{
var isChecked = _configuration.ProfileApplicationSettings.ApplyInLobby;
if (CtrlHelper.CheckboxWithTextAndHelp("##applyinlobby", "Apply Profiles on Character Select Screen",
"Apply appropriate profile for the character you have currently selected on character select screen during login.", ref isChecked))
{
_configuration.ProfileApplicationSettings.ApplyInLobby = isChecked;
_configuration.Save();
_armatureManager.RebindAllArmatures();
}
}
#endregion
#region Chat Commands Settings