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 enumstatic enumstatic enumstatic enumstatic classstatic interfaceNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanstatic Graphics.DisplayModegetBestFullscreenMode(int initCfgW, int initCfgH) static Graphics.DisplayModegetBestFullscreenModeWithPrefDimensions(int initCfgW, int initCfgH, int bestW, int bestH) booleandoubleint[]static StringgetGameSessionFingerprint(String playerId, String gameStartHash) int[]getHotKeyActions(IntArray keysPressed) intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidpreRender(float delta) Called before the actual drawing of screens and systemsvoidbooleansetBoolCustomValue(SettingsManager.CustomValueType type, boolean value) voidsetBugReportsEnabled(boolean enabled) booleansetCustomValue(SettingsManager.CustomValueType type, double value) voidsetDebugDetailedMode(boolean enabled) voidsetDebugMode(boolean enabled) voidsetExplosionsDrawing(boolean drawing) voidsetFlyingCoinsEnabled(boolean enabled) voidsetHotKey(SettingsManager.HotkeyAction action, int[] keys) voidsetInstantAutoWaveCallEnabled(boolean enabled) voidsetLargeFontsEnabled(boolean enabled) voidsetMusicVolume(double val) voidsetParticlesDrawing(boolean drawing) voidsetProjectilesDrawing(boolean drawing) voidsetProjectileTrailsDrawing(boolean drawing) voidsetSoundVoulme(double val) voidsetStainsEnabled(boolean enabled) booleansetThreeDeeModelsEnabled(boolean enabled) voidsetUiAnimationsEnabled(boolean enabled) voidsetup()Called when all manager objects are already created and can be accessedbooleanMethods 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:ManagerCalled when all manager objects are already created and can be accessed- Specified by:
setupin interfaceManager- Overrides:
setupin 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:ManagerCalled before the actual drawing of screens and systems- Specified by:
preRenderin interfaceManager- Overrides:
preRenderin classManager.ManagerAdapter
-