You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This loads and displays heat required on cold planets, provided it's
non-zero. The new line in the tooltip and both lines in the shopping
list will not appear if they would display zero.


The four links in the bottom line each pop up a list containing the
described items; "other entities" are things likes radars, beacons,
turrets, and roboports.
I'd like it to be more visible, but I'm not ready to tackle the task of
making planet-specific tables or figuring out how the heat demand should
integrate with the solver.
@@ -460,7 +462,7 @@ public record DisplayAmount(float Value, UnitOfMeasure Unit = UnitOfMeasure.None
460
462
/// <param name="Checkmark">If not <see langword="null"/>, this will be called to determine if a checkmark should be drawn on the item.
461
463
/// Not used when selecting with a 'None' item or when <paramref name="Multiple"/> is <see langword="false"/>.</param>
462
464
/// <param name="ExtraText">If not <see langword="null"/>, this will be called to get extra text to be displayed right-justified after the item's name.</param>
Copy file name to clipboardExpand all lines: Yafc/Windows/SelectMultiObjectPanel.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ public class SelectMultiObjectPanel : SelectObjectPanel<IEnumerable<FactorioObje
20
20
/// <param name="header">The string that describes to the user why they're selecting these items.</param>
21
21
/// <param name="selectItem">An action to be called for each selected item when the panel is closed.</param>
22
22
/// <param name="ordering">An optional ordering specifying how to sort the displayed items. If <see langword="null"/>, defaults to <see cref="DataUtils.DefaultOrdering"/>.</param>
SelectMultiObjectPanelpanel=new(o =>checkMark?.Invoke((T)o)??false);// This casting is messy, but pushing T all the way around the call stack and type tree was messier.
25
25
panel.Select(list,header,selectItem!,ordering,(objs,mappedAction)=>{// null-forgiving: selectItem will not be called with null, because allowNone is false.
26
26
foreach(varobjinobjs!){// null-forgiving: mapResult will not be called with null, because allowNone is false.
/// <param name="allowNone">If <see langword="true"/>, a "none" option will be displayed. Selection of this item will be conveyed by calling <paramref name="mapResult"/>
45
45
/// and <paramref name="selectItem"/> with <see langword="default"/> values for <typeparamref name="T"/> and <typeparamref name="U"/>.</param>
46
46
/// <param name="noneTooltip">If not <see langword="null"/>, this tooltip will be displayed when hovering over the "none" item.</param>
Copy file name to clipboardExpand all lines: Yafc/Windows/SelectSingleObjectPanel.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ public SelectSingleObjectPanel() : base() { }
19
19
/// <param name="header">The string that describes to the user why they're selecting these items.</param>
20
20
/// <param name="selectItem">An action to be called for the selected item when the panel is closed.</param>
21
21
/// <param name="ordering">An optional ordering specifying how to sort the displayed items. If <see langword="null"/>, defaults to <see cref="DataUtils.DefaultOrdering"/>.</param>
/// The parameter will be <see langword="null"/> if the "none" or "clear" option is selected.</param>
48
48
/// <param name="ordering">An optional ordering specifying how to sort the displayed items. If <see langword="null"/>, defaults to <see cref="DataUtils.DefaultOrdering"/>.</param>
49
49
/// <param name="noneTooltip">If not <see langword="null"/>, this tooltip will be displayed when hovering over the "none" item.</param>
/// The parameter will be <see langword="null"/> if the "none" or "clear" option is selected.</param>
61
61
/// <param name="ordering">An optional ordering specifying how to sort the displayed items. If <see langword="null"/>, defaults to <see cref="DataUtils.DefaultOrdering"/>.</param>
62
62
/// <param name="noneTooltip">If not <see langword="null"/>, this tooltip will be displayed when hovering over the "none" item.</param>
0 commit comments