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
group=gui.EnterGroup(newPadding(),RectAllocator.RemainingRow);// using (gui.EnterGroup(...)) { // Required to produce the expected spacing/padding behavior.
drawInputRowWithTooltip(gui,"Display scale for linkable icons","Some mod icons have little or no transparency, hiding the background color. This setting reduces the size of icons that could hide link information.",
using(gui.EnterRowWithHelpIcon("Some mod icons have little or no transparency, hiding the background color. This setting reduces the size of icons that could hide link information.")){
50
+
gui.BuildText("Display scale for linkable icons",topOffset:0.5f);
},"Select crafting entity",extra: x =>DataUtils.FormatAmount(x.craftingSpeed,UnitOfMeasure.Percent));
369
369
370
-
if(recipe.fixedBuildings>0f){
371
-
ButtonEventevt=gui.BuildButton("Clear fixed building count");
372
-
if(willResetFixed){
373
-
evt.WithTooltip(gui,"Shortcut: right-click");
374
-
}
375
-
if(evt&&gui.CloseDropdown()){
376
-
recipe.RecordUndo().fixedBuildings=0f;
370
+
gui.AllocateSpacing(0.5f);
371
+
372
+
using(gui.EnterRowWithHelpIcon("Tell YAFC how many buildings it must use when solving this page.\nUse this to ask questions like 'What does it take to handle the output of ten miners?'")){
373
+
gui.allocator=RectAllocator.RemainingRow;
374
+
if(recipe.fixedBuildings>0f){
375
+
ButtonEventevt=gui.BuildButton("Clear fixed building count");
376
+
if(willResetFixed){
377
+
evt.WithTooltip(gui,"Shortcut: right-click");
378
+
}
379
+
if(evt&&gui.CloseDropdown()){
380
+
recipe.RecordUndo().fixedBuildings=0f;
381
+
}
377
382
}
378
-
}
379
-
else{
380
-
if(gui.BuildButton("Set fixed building count")&&gui.CloseDropdown()){
383
+
elseif(gui.BuildButton("Set fixed building count")&&gui.CloseDropdown()){
ButtonEventevt=gui.BuildButton("Clear built building count");
387
-
if(willResetBuilt){
388
-
evt.WithTooltip(gui,"Shortcut: right-click");
389
-
}
390
-
if(evt&&gui.CloseDropdown()){
391
-
recipe.RecordUndo().builtBuildings=null;
388
+
using(gui.EnterRowWithHelpIcon("Tell YAFC how many of these buildings you have in your factory.\nYAFC will warn you if you need to build more buildings.")){
389
+
gui.allocator=RectAllocator.RemainingRow;
390
+
if(recipe.builtBuildings!=null){
391
+
ButtonEventevt=gui.BuildButton("Clear built building count");
392
+
if(willResetBuilt){
393
+
evt.WithTooltip(gui,"Shortcut: right-click");
394
+
}
395
+
if(evt&&gui.CloseDropdown()){
396
+
recipe.RecordUndo().builtBuildings=null;
397
+
}
392
398
}
393
-
}
394
-
else{
395
-
if(gui.BuildButton("Set built building count")&&gui.CloseDropdown()){
399
+
elseif(gui.BuildButton("Set built building count")&&gui.CloseDropdown()){
0 commit comments