Minor cloud bugfixes / Removed flow rate option
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -375,23 +375,25 @@ public class Renderer implements ApplicationListener{
|
|||||||
|
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
|
|
||||||
//clouds
|
if(state.rules.cloudColor.a > 0.0001f){
|
||||||
float scaling = cloudScaling;
|
//clouds
|
||||||
float sscl = Math.max(1f + Mathf.clamp(fin + cfinOffset)* cfinScl, 0f) * landscale;
|
float scaling = cloudScaling;
|
||||||
|
float sscl = Math.max(1f + Mathf.clamp(fin + cfinOffset)* cfinScl, 0f) * landscale;
|
||||||
|
|
||||||
Tmp.tr1.set(clouds);
|
Tmp.tr1.set(clouds);
|
||||||
Tmp.tr1.set(
|
Tmp.tr1.set(
|
||||||
(camera.position.x - camera.width/2f * sscl) / scaling,
|
(camera.position.x - camera.width/2f * sscl) / scaling,
|
||||||
(camera.position.y - camera.height/2f * sscl) / scaling,
|
(camera.position.y - camera.height/2f * sscl) / scaling,
|
||||||
(camera.position.x + camera.width/2f * sscl) / scaling,
|
(camera.position.x + camera.width/2f * sscl) / scaling,
|
||||||
(camera.position.y + camera.height/2f * sscl) / scaling);
|
(camera.position.y + camera.height/2f * sscl) / scaling);
|
||||||
|
|
||||||
Tmp.tr1.scroll(10f * cloudSeed, 10f * cloudSeed);
|
Tmp.tr1.scroll(10f * cloudSeed, 10f * cloudSeed);
|
||||||
|
|
||||||
Draw.alpha(Mathf.sample(cloudAlphas, fin + calphaFinOffset) * cloudAlpha);
|
Draw.alpha(Mathf.sample(cloudAlphas, fin + calphaFinOffset) * cloudAlpha);
|
||||||
Draw.mixcol(state.rules.cloudColor, state.rules.cloudColor.a);
|
Draw.mixcol(state.rules.cloudColor, state.rules.cloudColor.a);
|
||||||
Draw.rect(Tmp.tr1, camera.position.x, camera.position.y, camera.width, camera.height);
|
Draw.rect(Tmp.tr1, camera.position.x, camera.position.y, camera.width, camera.height);
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user