Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1262,6 +1262,9 @@ setting.macnotch.name = Adapt interface to display notch
|
|||||||
setting.macnotch.description = Restart required to apply changes
|
setting.macnotch.description = Restart required to apply changes
|
||||||
steam.friendsonly = Friends Only
|
steam.friendsonly = Friends Only
|
||||||
steam.friendsonly.tooltip = Whether only Steam friends will be able to join your game.\nUnchecking this box will make your game public - anyone can join.
|
steam.friendsonly.tooltip = Whether only Steam friends will be able to join your game.\nUnchecking this box will make your game public - anyone can join.
|
||||||
|
setting.maxmagnificationmultiplierpercent.name = Min Camera Distance
|
||||||
|
setting.minmagnificationmultiplierpercent.name = Max Camera Distance
|
||||||
|
setting.minmagnificationmultiplierpercent.description = High values may cause performance issues.
|
||||||
public.beta = Note that beta versions of the game cannot make public lobbies.
|
public.beta = Note that beta versions of the game cannot make public lobbies.
|
||||||
uiscale.reset = UI scale has been changed.\nPress "OK" to confirm this scale.\n[scarlet]Reverting and exiting in[accent] {0}[] seconds...
|
uiscale.reset = UI scale has been changed.\nPress "OK" to confirm this scale.\n[scarlet]Reverting and exiting in[accent] {0}[] seconds...
|
||||||
uiscale.cancel = Cancel & Exit
|
uiscale.cancel = Cancel & Exit
|
||||||
|
|||||||
@@ -42,8 +42,11 @@ public class Renderer implements ApplicationListener{
|
|||||||
public FrameBuffer effectBuffer = new FrameBuffer();
|
public FrameBuffer effectBuffer = new FrameBuffer();
|
||||||
public boolean animateShields, drawWeather = true, drawStatus, enableEffects, drawDisplays = true, drawLight = true, pixelate = false;
|
public boolean animateShields, drawWeather = true, drawStatus, enableEffects, drawDisplays = true, drawLight = true, pixelate = false;
|
||||||
public float weatherAlpha;
|
public float weatherAlpha;
|
||||||
/** minZoom = zooming out, maxZoom = zooming in */
|
/** minZoom = zooming out, maxZoom = zooming in, used by cutscenes */
|
||||||
public float minZoom = 1.5f, maxZoom = 6f;
|
public float minZoom = 1.5f, maxZoom = 6f;
|
||||||
|
|
||||||
|
/** minZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settings **/
|
||||||
|
public float minZoomInGame = 0.5f, maxZoomInGame = 6f;
|
||||||
public Seq<EnvRenderer> envRenderers = new Seq<>();
|
public Seq<EnvRenderer> envRenderers = new Seq<>();
|
||||||
public ObjectMap<String, Runnable> customBackgrounds = new ObjectMap<>();
|
public ObjectMap<String, Runnable> customBackgrounds = new ObjectMap<>();
|
||||||
public TextureRegion[] bubbles = new TextureRegion[16], splashes = new TextureRegion[12];
|
public TextureRegion[] bubbles = new TextureRegion[16], splashes = new TextureRegion[12];
|
||||||
@@ -165,6 +168,8 @@ public class Renderer implements ApplicationListener{
|
|||||||
drawStatus = settings.getBool("blockstatus");
|
drawStatus = settings.getBool("blockstatus");
|
||||||
enableEffects = settings.getBool("effects");
|
enableEffects = settings.getBool("effects");
|
||||||
drawDisplays = !settings.getBool("hidedisplays");
|
drawDisplays = !settings.getBool("hidedisplays");
|
||||||
|
maxZoomInGame = settings.getFloat("maxzoomingamemultiplier", 1) * maxZoom;
|
||||||
|
minZoomInGame = minZoom / settings.getFloat("minzoomingamemultiplier", 1);
|
||||||
drawLight = settings.getBool("drawlight", true);
|
drawLight = settings.getBool("drawlight", true);
|
||||||
pixelate = settings.getBool("pixelate");
|
pixelate = settings.getBool("pixelate");
|
||||||
|
|
||||||
@@ -486,11 +491,13 @@ public class Renderer implements ApplicationListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public float minScale(){
|
public float minScale(){
|
||||||
return Scl.scl(minZoom);
|
if(control.input.logicCutscene) return Scl.scl(minZoom);
|
||||||
|
return Scl.scl(minZoomInGame);
|
||||||
}
|
}
|
||||||
|
|
||||||
public float maxScale(){
|
public float maxScale(){
|
||||||
return Mathf.round(Scl.scl(maxZoom));
|
if(control.input.logicCutscene) return Mathf.round(Scl.scl(maxZoom));
|
||||||
|
return Mathf.round(Scl.scl(maxZoomInGame));
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getScale(){
|
public float getScale(){
|
||||||
|
|||||||
@@ -397,8 +397,23 @@ public class SettingsMenuDialog extends BaseDialog{
|
|||||||
}
|
}
|
||||||
return s + "%";
|
return s + "%";
|
||||||
});
|
});
|
||||||
|
|
||||||
graphics.sliderPref("unitlaseropacity", 100, 0, 100, 5, s -> s + "%");
|
graphics.sliderPref("unitlaseropacity", 100, 0, 100, 5, s -> s + "%");
|
||||||
graphics.sliderPref("bridgeopacity", 100, 0, 100, 5, s -> s + "%");
|
graphics.sliderPref("bridgeopacity", 100, 0, 100, 5, s -> s + "%");
|
||||||
|
|
||||||
|
graphics.sliderPref("maxmagnificationmultiplierpercent", 100, 100, 200, 25, s -> {
|
||||||
|
if(ui.settings != null){
|
||||||
|
Core.settings.put("maxzoomingamemultiplier", (float)s / 100.0f);
|
||||||
|
}
|
||||||
|
return s + "%";
|
||||||
|
});
|
||||||
|
|
||||||
|
graphics.sliderPref("minmagnificationmultiplierpercent", 100, 100, 300, 25, s -> {
|
||||||
|
if(ui.settings != null){
|
||||||
|
Core.settings.put("minzoomingamemultiplier", (float)s / 100.0f);
|
||||||
|
}
|
||||||
|
return s + "%";
|
||||||
|
});
|
||||||
|
|
||||||
if(!mobile){
|
if(!mobile){
|
||||||
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
|
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
|
||||||
|
|||||||
Reference in New Issue
Block a user