This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Create-Fabric/arrp_lang
Runtime translations and config stuff
- Loading branch information
Showing
20 changed files
with
679 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 37 additions & 13 deletions
50
src/main/java/com/simibubi/create/foundation/config/CClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
package com.simibubi.create.foundation.config; | ||
|
||
public class CClient { | ||
// todo: lang | ||
// "Client-only settings - If you're looking for general settings, look inside your worlds serverconfig folder!" | ||
boolean enableTooltips = true; // "Show item descriptions on Shift and controls on Ctrl." | ||
boolean enableOverstressedTooltip = true; // "Display a tooltip when looking at overstressed components." | ||
boolean explainRenderErrors = true; // "Log a stack-trace when rendering issues happen within a moving contraption." | ||
static float fanParticleDensity = .5f; // 0-1, "fanParticleDensity" | ||
boolean enableRainbowDebug = true; // "Show colourful debug information while the F3-Menu is open." | ||
boolean experimentalRendering = true; // "Use modern OpenGL features to drastically increase performance." | ||
static int overlayOffsetX = 20; // > -2147483648, "Offset the overlay from goggle- and hover- information by this many pixels on the X axis; Use /create overlay" | ||
static int overlayOffsetY = 0; // > -2147483648, "Offset the overlay from goggle- and hover- information by this many pixels on the Y axis; Use /create overlay" | ||
boolean smoothPlacementIndicator = false; // "Use an alternative indicator when showing where the assisted placement ends up relative to your crosshair" | ||
} | ||
import com.simibubi.create.foundation.config.util.Validatable; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry.Gui.Tooltip; | ||
import net.minecraft.util.math.MathHelper; | ||
|
||
public class CClient implements Validatable { | ||
@Tooltip | ||
boolean enableTooltips = true; | ||
|
||
@Tooltip | ||
boolean enableOverstressedTooltip = true; | ||
|
||
@Tooltip | ||
boolean explainRenderErrors = true; | ||
|
||
float fanParticleDensity = .5f; | ||
|
||
@Tooltip | ||
boolean enableRainbowDebug = true; | ||
|
||
@Tooltip | ||
boolean experimentalRendering = true; | ||
|
||
@Tooltip | ||
int overlayOffsetX = 20; | ||
|
||
@Tooltip | ||
int overlayOffsetY = 0; | ||
|
||
@Tooltip | ||
boolean smoothPlacementIndicator = false; | ||
|
||
@Override | ||
public void validate() throws ConfigData.ValidationException { | ||
fanParticleDensity = MathHelper.clamp(fanParticleDensity, 0f, 1f); | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
src/main/java/com/simibubi/create/foundation/config/CCommon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package com.simibubi.create.foundation.config; | ||
|
||
import me.shedaniel.autoconfig.annotation.ConfigEntry; | ||
|
||
public class CCommon { | ||
boolean logTeErrors = false; // "Forward caught TileEntityExceptions to the log at debug level." | ||
@ConfigEntry.Gui.Tooltip | ||
boolean logBeErrors = false; | ||
} | ||
|
||
//public CWorldGen worldGen = nested(0, CWorldGen::new, Comments.worldGen); "Modify Create's impact on your terrain" todo | ||
// TODO: public CWorldGen worldGen = nested(0, CWorldGen::new, Comments.worldGen); "Modify Create's impact on your terrain" |
16 changes: 12 additions & 4 deletions
16
src/main/java/com/simibubi/create/foundation/config/CCuriosities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package com.simibubi.create.foundation.config; | ||
|
||
public class CCuriosities { | ||
static int maxSymmetryWandRange = 50; // min 10, "The Maximum Distance to an active mirror for the symmetry wand to trigger." | ||
//static int zapperUndoLogLength = 10; // min 0, "The maximum amount of operations, a blockzapper can remember for undoing. (0 to disable undo)" NOT YET IMPLEMENTED UPSTREAM | ||
} | ||
import com.simibubi.create.foundation.config.util.Validatable; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry; | ||
|
||
public class CCuriosities implements Validatable { | ||
@ConfigEntry.Gui.Tooltip | ||
int maxSymmetryWandRange = 50; // min 10 | ||
|
||
@Override | ||
public void validate() { | ||
maxSymmetryWandRange = Math.max(maxSymmetryWandRange, 10); | ||
} | ||
//int zapperUndoLogLength = 10; // min 0, "The maximum amount of operations, a blockzapper can remember for undoing. (0 to disable undo)" NOT YET IMPLEMENTED UPSTREAM | ||
} |
34 changes: 28 additions & 6 deletions
34
src/main/java/com/simibubi/create/foundation/config/CFluids.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
package com.simibubi.create.foundation.config; | ||
|
||
public class CFluids { | ||
static int fluidTankCapacity = 8; // min 1, "[in Buckets]" "The amount of liquid a tank can hold per block." | ||
static int fluidTankMaxHeight = 32; // min 1, "[in Blocks]" "The maximum height a fluid tank can reach." | ||
static int mechanicalPumpRange = 16; // min 1, "[in Blocks]" "The maximum distance a mechanical pump can push or pull liquids on either side." | ||
static int hosePulleyBlockThreshold = 10000; // min -1, "[in Blocks]" "[-1 to disable this behaviour]" "The minimum amount of fluid blocks the hose pulley needs to find before deeming it an infinite source." | ||
static int hosePulleyRange = 128; // min 1, "[in Blocks]" "The maximum distance a hose pulley can draw fluid blocks from." | ||
import com.simibubi.create.foundation.config.util.Validatable; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry.Gui.Tooltip; | ||
|
||
public class CFluids implements Validatable { | ||
@Tooltip | ||
int fluidTankCapacity = 8; // min 1, "[in Buckets]" "The amount of liquid a tank can hold per block." | ||
|
||
@Tooltip | ||
int fluidTankMaxHeight = 32; // min 1, "[in Blocks]" "The maximum height a fluid tank can reach." | ||
|
||
@Tooltip | ||
int mechanicalPumpRange = 16; // min 1, "[in Blocks]" "The maximum distance a mechanical pump can push or pull liquids on either side." | ||
|
||
@Tooltip(count = 2) | ||
int hosePulleyBlockThreshold = 10000; // min -1, "[in Blocks]" "[-1 to disable this behaviour]" "The minimum amount of fluid blocks the hose pulley needs to find before deeming it an infinite source." | ||
|
||
@Tooltip | ||
int hosePulleyRange = 128; // min 1, "[in Blocks]" "The maximum distance a hose pulley can draw fluid blocks from." | ||
|
||
@Override | ||
public void validate() throws ConfigData.ValidationException { | ||
fluidTankCapacity = Math.max(fluidTankCapacity, 1); | ||
fluidTankMaxHeight = Math.max(fluidTankMaxHeight, 1); | ||
mechanicalPumpRange = Math.max(mechanicalPumpRange, 1); | ||
hosePulleyBlockThreshold = Math.max(hosePulleyBlockThreshold, -1); | ||
hosePulleyRange = Math.max(hosePulleyRange, 1); | ||
} | ||
} |
Oops, something went wrong.