From 2e7fb79940462f789b611a9f7a8c9749fa815567 Mon Sep 17 00:00:00 2001 From: mrcichon Date: Mon, 16 Jun 2025 08:58:11 +0200 Subject: [PATCH] fixed GUI restrictions that didn't make sense removed check for opposite pronouns for enabling set marriage option - homosexual marriage is a feature in df since forever (i think since there *was* even any marriage) - it makes no sense to have such restriction --- gui/family-affairs.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/family-affairs.lua b/gui/family-affairs.lua index 428e34d59..a1a7d6a43 100644 --- a/gui/family-affairs.lua +++ b/gui/family-affairs.lua @@ -253,9 +253,7 @@ function RelationshipsPage:init() local unit = self:get_unit() local selected = dfhack.gui.getSelectedUnit(true) return unit and not get_spouse_hf(unit) and can_have_spouse(unit) and - selected and selected.race == unit.race and selected.id ~= unit.id and - (selected.sex == df.pronoun_type.she and unit.sex == df.pronoun_type.he or - selected.sex == df.pronoun_type.he and unit.sex == df.pronoun_type.she) + selected and selected.race == unit.race and selected.id ~= unit.id end, }, widgets.Panel{ @@ -777,7 +775,7 @@ end FamilyAffairs = defclass(FamilyAffairs, widgets.Window) FamilyAffairs.ATTRS { frame_title='Family manager', - frame={w=65, h=30, r=2, t=18}, + frame={w=50, h=30, r=2, t=18}, frame_inset={t=1, l=1, r=1}, resizable=true, initial_tab=DEFAULT_NIL,