Skip to content

Commit

Permalink
Fix gender button
Browse files Browse the repository at this point in the history
  • Loading branch information
chirpxiv committed Sep 27, 2023
1 parent 055e131 commit 9f427d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Ktisis/Interface/Windows/ActorEdit/EditCustomize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ public static void DrawFundamental(Customize custom) {
// Gender

var isM = custom.Gender == Gender.Masculine;

if (ImGuiComponents.IconButton(isM ? FontAwesomeIcon.Mars : FontAwesomeIcon.Venus)) {
if (ImGuiComponents.IconButton("##KtisisCustomizeGender", isM ? FontAwesomeIcon.Mars : FontAwesomeIcon.Venus)) {
custom.Gender = isM ? Gender.Feminine : Gender.Masculine;
Apply(custom);
}
Expand Down
3 changes: 2 additions & 1 deletion Ktisis/Structs/Actor/Actor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public unsafe void ApplyCustomize(Customize custom) {
DrawData.Customize = custom;
var redraw = !UpdateCustomize()
|| faceHack
|| cur.Tribe != custom.Tribe;
|| cur.Tribe != custom.Tribe
|| cur.Gender != custom.Gender;

if (redraw) {
Redraw(faceHack);
Expand Down

0 comments on commit 9f427d7

Please sign in to comment.