Package com.prineside.tdi2.managers
Class SettingsManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.SettingsManager
- All Implemented Interfaces:
Disposable
,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
static class
static interface
Nested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
static Graphics.DisplayMode
getBestFullscreenMode
(int initCfgW, int initCfgH) static Graphics.DisplayMode
getBestFullscreenModeWithPrefDimensions
(int initCfgW, int initCfgH, int bestW, int bestH) boolean
double
int[]
static String
getGameSessionFingerprint
(String playerId, String gameStartHash) int[]
getHotKeyActions
(IntArray keysPressed) int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
preRender
(float delta) Called before the actual drawing of screens and systemsvoid
boolean
setBoolCustomValue
(SettingsManager.CustomValueType type, boolean value) void
setBugReportsEnabled
(boolean enabled) boolean
setCustomValue
(SettingsManager.CustomValueType type, double value) void
setDebugDetailedMode
(boolean enabled) void
setDebugMode
(boolean enabled) void
setExplosionsDrawing
(boolean drawing) void
setFlyingCoinsEnabled
(boolean enabled) void
setHotKey
(SettingsManager.HotkeyAction action, int[] keys) void
setInstantAutoWaveCallEnabled
(boolean enabled) void
setLargeFontsEnabled
(boolean enabled) void
setMusicVolume
(double val) void
setParticlesDrawing
(boolean drawing) void
setProjectilesDrawing
(boolean drawing) void
setProjectileTrailsDrawing
(boolean drawing) void
setSoundVoulme
(double val) void
setStainsEnabled
(boolean enabled) boolean
setThreeDeeModelsEnabled
(boolean enabled) void
setUiAnimationsEnabled
(boolean enabled) void
setup()
Called when all manager objects are already created and can be accessedboolean
Methods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
dispose, postRender, test
-
Field Details
-
DEFAULT_HOT_KEYS
public static final int[][] DEFAULT_HOT_KEYS
-
-
Constructor Details
-
SettingsManager
public SettingsManager()
-
-
Method Details
-
isEscButtonJustPressed
public boolean isEscButtonJustPressed()- Returns:
- true, если нажали esc/back и кнопку не перехватил диалог / другой UI
-
isSecretCodesEnabled
public boolean isSecretCodesEnabled() -
getDynamicSetting
-
getScaledViewportHeight
public int getScaledViewportHeight() -
getHotKey
- Returns:
- array of keys to be pressed or null if not set
-
getDefaultHotKey
-
setHotKey
-
isDefaultHotKey
-
getHotKeyActions
-
getHotkeysJustPressed
-
isHotkeyJustPressed
-
getHotKeyName
-
getHotkeyGroupTitle
-
setup
public void setup()Description copied from interface:Manager
Called when all manager objects are already created and can be accessed- Specified by:
setup
in interfaceManager
- Overrides:
setup
in classManager.ManagerAdapter
-
getBestFullscreenModeWithPrefDimensions
public static Graphics.DisplayMode getBestFullscreenModeWithPrefDimensions(int initCfgW, int initCfgH, int bestW, int bestH) -
getBestFullscreenMode
-
cvdFriendlyColors
public boolean cvdFriendlyColors() -
getBoolCustomValue
-
getCustomValue
-
setBoolCustomValue
-
unsetCustomValue
-
setCustomValue
- Returns:
- true if changed
-
getGameSessionFingerprint
-
addListener
-
removeListener
-
setSoundVoulme
public void setSoundVoulme(double val) -
isSoundEnabled
public boolean isSoundEnabled() -
isMusicEnabled
public boolean isMusicEnabled() -
setMusicVolume
public void setMusicVolume(double val) -
isBugReportsEnabled
public boolean isBugReportsEnabled() -
setBugReportsEnabled
public void setBugReportsEnabled(boolean enabled) -
setExplosionsDrawing
public void setExplosionsDrawing(boolean drawing) -
isExplosionsDrawing
public boolean isExplosionsDrawing() -
setProjectilesDrawing
public void setProjectilesDrawing(boolean drawing) -
isProjectilesDrawing
public boolean isProjectilesDrawing() -
setProjectileTrailsDrawing
public void setProjectileTrailsDrawing(boolean drawing) -
isProjectileTrailsDrawing
public boolean isProjectileTrailsDrawing() -
setParticlesDrawing
public void setParticlesDrawing(boolean drawing) -
isParticlesDrawing
public boolean isParticlesDrawing() -
setUiAnimationsEnabled
public void setUiAnimationsEnabled(boolean enabled) -
isUiAnimationsEnabled
public boolean isUiAnimationsEnabled() -
setFlyingCoinsEnabled
public void setFlyingCoinsEnabled(boolean enabled) -
isFlyingCoinsEnabled
public boolean isFlyingCoinsEnabled() -
setInstantAutoWaveCallEnabled
public void setInstantAutoWaveCallEnabled(boolean enabled) -
isInstantAutoWaveCallEnabled
public boolean isInstantAutoWaveCallEnabled() -
setStainsEnabled
public void setStainsEnabled(boolean enabled) -
isStainsEnabled
public boolean isStainsEnabled() -
setThreeDeeModelsEnabled
public boolean setThreeDeeModelsEnabled(boolean enabled) -
isThreeDeeModelsEnabled
public boolean isThreeDeeModelsEnabled() -
setLargeFontsEnabled
public void setLargeFontsEnabled(boolean enabled) -
isLargeFontsEnabled
public boolean isLargeFontsEnabled() -
setDebugMode
public void setDebugMode(boolean enabled) -
isInDebugMode
public boolean isInDebugMode() -
setDebugDetailedMode
public void setDebugDetailedMode(boolean enabled) -
isInDebugDetailedMode
public boolean isInDebugDetailedMode() -
getHoldingHotKeys
-
preRender
public void preRender(float delta) Description copied from interface:Manager
Called before the actual drawing of screens and systems- Specified by:
preRender
in interfaceManager
- Overrides:
preRender
in classManager.ManagerAdapter
-