Fix last mission button sometimes being too wide by setting the button to fullwidth before attaching it to the list
WildCard_25 [03-17-19 - 16:44]
Fix last mission button sometimes being too wide by setting the button to fullwidth before attaching it to the list
diff --git a/MissionControl.lua b/MissionControl.lua
index 059d6e4..97ac92e 100644
--- a/MissionControl.lua
+++ b/MissionControl.lua
@@ -248,8 +248,8 @@ do
end
party.missionID=missionID
tinsert(GMC.list.Parties,party)
- GMC.list.widget:PushChild(mb,missionID)
mb:SetFullWidth(true)
+ GMC.list.widget:PushChild(mb,missionID)
mb:SetMission(self:GetMissionData(missionID),party,false,"control")
mb:Blacklist(blacklist[missionID])
mb:SetCallback("OnClick",leftclick)
diff --git a/ShipControl.lua b/ShipControl.lua
index c145788..4a4ae7e 100644
--- a/ShipControl.lua
+++ b/ShipControl.lua
@@ -301,8 +301,8 @@ do
end
party.missionID=missionID
tinsert(GMC.list.Parties,party)
- GMC.list.widget:PushChild(mb,missionID)
mb:SetFullWidth(true)
+ GMC.list.widget:PushChild(mb,missionID)
mb:SetMission(self:GetMissionData(missionID),party,false,"control")
mb:Blacklist(blacklist[missionID])
mb:SetCallback("OnClick",leftclick)