Minor cloud bugfixes / Removed flow rate option

This commit is contained in:
Anuken
2021-07-27 09:08:09 -04:00
parent f5222674ff
commit adbe55b0db
4 changed files with 17 additions and 18 deletions
-1
View File
@@ -841,7 +841,6 @@ setting.blockreplace.name = Automatic Block Suggestions
setting.linear.name = Linear Filtering setting.linear.name = Linear Filtering
setting.hints.name = Hints setting.hints.name = Hints
setting.logichints.name = Logic Hints setting.logichints.name = Logic Hints
setting.flow.name = Display Resource Flow Rate
setting.backgroundpause.name = Pause In Background setting.backgroundpause.name = Pause In Background
setting.buildautopause.name = Auto-Pause Building setting.buildautopause.name = Auto-Pause Building
setting.doubletapmine.name = Double-Tap to Mine setting.doubletapmine.name = Double-Tap to Mine
+2
View File
@@ -375,6 +375,7 @@ public class Renderer implements ApplicationListener{
Draw.reset(); Draw.reset();
if(state.rules.cloudColor.a > 0.0001f){
//clouds //clouds
float scaling = cloudScaling; float scaling = cloudScaling;
float sscl = Math.max(1f + Mathf.clamp(fin + cfinOffset)* cfinScl, 0f) * landscale; float sscl = Math.max(1f + Mathf.clamp(fin + cfinOffset)* cfinScl, 0f) * landscale;
@@ -394,6 +395,7 @@ public class Renderer implements ApplicationListener{
Draw.reset(); Draw.reset();
} }
} }
}
void drawThrusters(CoreBlock block, float x, float y, float rotation, float frame){ void drawThrusters(CoreBlock block, float x, float y, float rotation, float frame){
float length = block.thrusterLength * (frame - 1f) - 1f/4f; float length = block.thrusterLength * (frame - 1f) - 1f/4f;
@@ -1102,7 +1102,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
table.row(); table.row();
table.table(this::displayConsumption).growX(); table.table(this::displayConsumption).growX();
boolean displayFlow = (block.category == Category.distribution || block.category == Category.liquid) && Core.settings.getBool("flow") && block.displayFlow; boolean displayFlow = (block.category == Category.distribution || block.category == Category.liquid) && block.displayFlow;
if(displayFlow){ if(displayFlow){
String ps = " " + StatUnit.perSecond.localized(); String ps = " " + StatUnit.perSecond.localized();
@@ -451,8 +451,6 @@ public class SettingsMenuDialog extends Dialog{
if(!mobile){ if(!mobile){
Core.settings.put("swapdiagonal", false); Core.settings.put("swapdiagonal", false);
} }
graphics.checkPref("flow", true);
} }
public void exportData(Fi file) throws IOException{ public void exportData(Fi file) throws IOException{