Update for 6.0

This commit is contained in:
Ottermandias 2021-12-10 10:25:53 +01:00
parent 5d3a39110a
commit 7e01fe52f4
10 changed files with 252 additions and 266 deletions

View file

@ -352,13 +352,7 @@ namespace Glamourer.Gui
ImGui.PushFont(UiBuilder.IconFont);
var icon = customization.Gender == Gender.Male ? FontAwesomeIcon.Mars : FontAwesomeIcon.Venus;
var restricted = false;
if (customization.Race == Race.Viera)
{
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.25f);
icon = FontAwesomeIcon.VenusDouble;
restricted = true;
}
else if (customization.Race == Race.Hrothgar)
if (customization.Race == Race.Hrothgar)
{
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.25f);
icon = FontAwesomeIcon.MarsDouble;

View file

@ -63,12 +63,8 @@ namespace Glamourer.Gui
customization.Race = race;
customization.Clan = clan;
customization.Gender = race switch
{
Race.Hrothgar => Gender.Male,
Race.Viera => Gender.Female,
_ => customization.Gender,
};
if (race == Race.Hrothgar)
customization.Gender = Gender.Male;
FixUpAttributes(ref customization);