Package org.dreambot.api
Class ClientSettings
- java.lang.Object
-
- org.dreambot.api.ClientSettings
-
public class ClientSettings extends java.lang.Object
Created by Nezz on 10/25/2015.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areChatEffectsEnabled()
Checks if chat effects are enabledstatic boolean
areDataOrbsEnabled()
Checks if data orbs are enabledstatic boolean
areItemPilesOnDeathEnabled()
Checks if item piles on death are enabledstatic void
clearLayoutPreferences()
static boolean
closeSettingsInterface()
This will close the "All Settings" interfacestatic int
getClientBrightness()
Gets the in game brightness settingstatic ClientLayout
getClientLayout()
Gets the current client layoutstatic java.util.Map<java.lang.Integer,java.lang.Integer>
getClientParameters()
Returns the client parametersstatic ActionMode
getNPCAttackOptionsMode()
Returns the current ActionMode for NPC attack optionsstatic ActionMode
getPlayerAttackOptionsMode()
Returns the current ActionMode for player attack optionsstatic int
getResizableValue()
Gets an int value of if resizable mode is enabled 1 is disabled, 2 is enabledstatic java.lang.String
getSavedUsername()
static boolean
isAcceptAidEnabled()
Checks if accept aid is enabledstatic boolean
isBuyPriceWarningEnabled()
Checks if the buy price warning is enabledstatic boolean
isClickThroughChatboxEnabled()
Checks if click through chatbox is enabledstatic boolean
isDisplayFps()
static boolean
isEscInterfaceClosingEnabled()
Checks if escape to close interfaces is enabledstatic boolean
isGameAudioOn()
Gets the current game audio settingsstatic boolean
isHideUsername()
static boolean
isLoginMusicEnabled()
Returns whether or not the login music is enabledstatic boolean
isMoveFollowerOptionsLowerEnabled()
Checks if the move follower options lower setting is enabledstatic boolean
isRememberUsername()
static boolean
isResizableActive()
Returns whether resizable mode is enabledstatic boolean
isScrollToZoomEnabled()
Checks if scroll to zoom is enabledstatic boolean
isSellPriceWarningEnabled()
Checks if the sell price warning is enabledstatic boolean
isShiftClickDroppingEnabled()
Checks if shift click dropping is enabledstatic boolean
isShiftInteractionEnabled()
static boolean
isTradeDelayEnabled()
static boolean
isTransparentChatboxEnabled()
Checks if the transparent chatbox is enabledstatic boolean
isZoomingEnabled()
Checks if scroll to zoom is enabled on the accountstatic boolean
roofsEnabled()
Checks if roofs are enabledstatic boolean
setClientBrightness(int brightness)
Sets the in game brightness settingstatic boolean
setClientLayout(ClientLayout layout)
static boolean
setDefaultZoom()
Sets the zoom to the default zoom valuestatic void
setDisplayFps(boolean display)
static boolean
setNPCAttackOptionsMode(ActionMode mode)
Sets the NPC attack options modestatic boolean
setPlayerAttackOptionsMode(ActionMode mode)
Sets the player attack options modestatic boolean
toggleAcceptAid(boolean on)
Toggles whether accept aid is on or offstatic boolean
toggleBuyPriceWarning(boolean on)
Toggles whether the buy price warning is on or offstatic boolean
toggleChatEffects(boolean on)
Toggles whether chat effects are on or offstatic boolean
toggleClickThroughChatbox(boolean on)
Toggles whether click through chatbox is on or offstatic boolean
toggleDataOrbs(boolean on)
Toggles whether data orbs are on or offstatic boolean
toggleEscInterfaceClosing(boolean on)
Toggles whether using the escape key to close interfaces is on or offstatic boolean
toggleGameAudio(boolean on)
Toggles whether all game audio settings are on or offstatic boolean
toggleItemPilesOnDeath(boolean on)
Toggles whether certain items are piled on death is on or offstatic boolean
toggleMoveFollowerOptionsLower(boolean on)
Toggles whether follower options are lower is on or offstatic boolean
toggleResizable(boolean on)
Toggles whether resizable mode is enabled or notstatic boolean
toggleRoofs(boolean on)
Toggles roof visibilitystatic boolean
toggleScrollToZoom(boolean on)
Toggles whether scroll to zoom the camera is on or offstatic boolean
toggleSellPriceWarning(boolean on)
Toggles whether the sell price warning is on or offstatic boolean
toggleShiftClickDropping(boolean on)
Toggles whether shift click dropping is on or offstatic boolean
toggleTradeDelay(boolean on)
static boolean
toggleTransparentChatbox(boolean on)
Toggles whether transparent chatbox is on or off
-
-
-
Method Detail
-
isDisplayFps
public static boolean isDisplayFps()
-
setDisplayFps
public static void setDisplayFps(boolean display)
-
isLoginMusicEnabled
public static boolean isLoginMusicEnabled()
Returns whether or not the login music is enabled- Returns:
- True if enabled, false if it isn't
-
getSavedUsername
public static java.lang.String getSavedUsername()
-
isHideUsername
public static boolean isHideUsername()
-
isRememberUsername
public static boolean isRememberUsername()
-
getResizableValue
public static int getResizableValue()
Gets an int value of if resizable mode is enabled 1 is disabled, 2 is enabled- Returns:
- 1 if disabled, 2 if enabled, -1 if reference is null
-
isResizableActive
public static boolean isResizableActive()
Returns whether resizable mode is enabled- Returns:
- True if it's enabled, False if it isn't
-
getClientParameters
public static java.util.Map<java.lang.Integer,java.lang.Integer> getClientParameters()
Returns the client parameters- Returns:
- client parameters
-
roofsEnabled
public static boolean roofsEnabled()
Checks if roofs are enabled- Returns:
- True if roofs are visible, False if they aren't or ref is null
-
toggleRoofs
public static boolean toggleRoofs(boolean on)
Toggles roof visibility- Parameters:
on
- whether you want roofs visible or not- Returns:
- returns whether roofsEnabled() matches on parameter
-
closeSettingsInterface
public static boolean closeSettingsInterface()
This will close the "All Settings" interface
-
toggleGameAudio
public static boolean toggleGameAudio(boolean on)
Toggles whether all game audio settings are on or off- Returns:
- true if it succeeds, false otherwise
-
toggleResizable
public static boolean toggleResizable(boolean on)
Toggles whether resizable mode is enabled or not- Parameters:
on
- Whether you want resizable active or not- Returns:
- False if on is true, otherwise returns if isResizableActive() matches param
-
getClientBrightness
public static int getClientBrightness()
Gets the in game brightness setting- Returns:
- client's brightness setting, between 0 (dimmest) and 100 (brightest)
-
setClientBrightness
public static boolean setClientBrightness(int brightness)
Sets the in game brightness setting- Parameters:
brightness
- Brightness value between 0 (dimmest) and 100 (brightest)- Returns:
- true if we're able to change the brightness to the provided value, false otherwise
-
clearLayoutPreferences
public static void clearLayoutPreferences()
-
setClientLayout
public static boolean setClientLayout(ClientLayout layout)
-
getClientLayout
public static ClientLayout getClientLayout()
Gets the current client layout- Returns:
- The current ClientLayout
-
isGameAudioOn
public static boolean isGameAudioOn()
Gets the current game audio settings- Returns:
- true if all sound options are unmuted, false otherwise
-
toggleAcceptAid
public static boolean toggleAcceptAid(boolean on)
Toggles whether accept aid is on or off- Returns:
- true if it succeeds, false otherwise
-
isAcceptAidEnabled
public static boolean isAcceptAidEnabled()
Checks if accept aid is enabled- Returns:
- true if it is, false otherwise
-
toggleDataOrbs
public static boolean toggleDataOrbs(boolean on)
Toggles whether data orbs are on or off- Returns:
- true if it succeeds, false otherwise
-
areDataOrbsEnabled
public static boolean areDataOrbsEnabled()
Checks if data orbs are enabled- Returns:
- true if it is, false otherwise
-
toggleEscInterfaceClosing
public static boolean toggleEscInterfaceClosing(boolean on)
Toggles whether using the escape key to close interfaces is on or off- Returns:
- true if it succeeds, false otherwise
-
isEscInterfaceClosingEnabled
public static boolean isEscInterfaceClosingEnabled()
Checks if escape to close interfaces is enabled- Returns:
- true if it is, false otherwise
-
isShiftClickDroppingEnabled
public static boolean isShiftClickDroppingEnabled()
Checks if shift click dropping is enabled- Returns:
- true if it is, false otherwise
-
toggleShiftClickDropping
public static boolean toggleShiftClickDropping(boolean on)
Toggles whether shift click dropping is on or off- Returns:
- true if it succeeds, false otherwise
-
toggleScrollToZoom
public static boolean toggleScrollToZoom(boolean on)
Toggles whether scroll to zoom the camera is on or off- Returns:
- true if it succeeds, false otherwise
-
isScrollToZoomEnabled
public static boolean isScrollToZoomEnabled()
Checks if scroll to zoom is enabled- Returns:
- true if it is, false otherwise
-
toggleChatEffects
public static boolean toggleChatEffects(boolean on)
Toggles whether chat effects are on or off- Returns:
- true if it succeeds, false otherwise
-
areChatEffectsEnabled
public static boolean areChatEffectsEnabled()
Checks if chat effects are enabled- Returns:
- true if it is, false otherwise
-
toggleTransparentChatbox
public static boolean toggleTransparentChatbox(boolean on)
Toggles whether transparent chatbox is on or off- Returns:
- true if it succeeds, false otherwise or if you're not on resizable mode
-
isTransparentChatboxEnabled
public static boolean isTransparentChatboxEnabled()
Checks if the transparent chatbox is enabled- Returns:
- true if it is, false otherwise
-
toggleClickThroughChatbox
public static boolean toggleClickThroughChatbox(boolean on)
Toggles whether click through chatbox is on or off- Returns:
- true if it succeeds, false otherwise or if you're not on resizable mode or if transparent chatbox is disabled and you're trying to disable this
-
isClickThroughChatboxEnabled
public static boolean isClickThroughChatboxEnabled()
Checks if click through chatbox is enabled- Returns:
- true if it is, false otherwise
-
toggleItemPilesOnDeath
public static boolean toggleItemPilesOnDeath(boolean on)
Toggles whether certain items are piled on death is on or off- Returns:
- true if it succeeds, false otherwise
-
areItemPilesOnDeathEnabled
public static boolean areItemPilesOnDeathEnabled()
Checks if item piles on death are enabled- Returns:
- true if it is, false otherwise
-
toggleMoveFollowerOptionsLower
public static boolean toggleMoveFollowerOptionsLower(boolean on)
Toggles whether follower options are lower is on or off- Returns:
- true if it succeeds, false otherwise
-
isMoveFollowerOptionsLowerEnabled
public static boolean isMoveFollowerOptionsLowerEnabled()
Checks if the move follower options lower setting is enabled- Returns:
- true if it is, false otherwise
-
toggleSellPriceWarning
public static boolean toggleSellPriceWarning(boolean on)
Toggles whether the sell price warning is on or off- Parameters:
on
- whether the warning should be enabled- Returns:
- true if it succeeds, false otherwise
-
isSellPriceWarningEnabled
public static boolean isSellPriceWarningEnabled()
Checks if the sell price warning is enabled- Returns:
- true if it is, false otherwise
-
toggleBuyPriceWarning
public static boolean toggleBuyPriceWarning(boolean on)
Toggles whether the buy price warning is on or off- Parameters:
on
- whether the warning should be enabled- Returns:
- true if it succeeds, false otherwise
-
isBuyPriceWarningEnabled
public static boolean isBuyPriceWarningEnabled()
Checks if the buy price warning is enabled- Returns:
- false currently as the option isn't enabled in game yet
-
getPlayerAttackOptionsMode
public static ActionMode getPlayerAttackOptionsMode()
Returns the current ActionMode for player attack options- Returns:
- player attack options ActionMode
-
setPlayerAttackOptionsMode
public static boolean setPlayerAttackOptionsMode(ActionMode mode)
Sets the player attack options mode- Returns:
- true if it succeeds, false otherwise
-
setNPCAttackOptionsMode
public static boolean setNPCAttackOptionsMode(ActionMode mode)
Sets the NPC attack options mode- Returns:
- true if it succeeds, false otherwise
-
getNPCAttackOptionsMode
public static ActionMode getNPCAttackOptionsMode()
Returns the current ActionMode for NPC attack options- Returns:
- NPC attack options ActionMode
-
setDefaultZoom
public static boolean setDefaultZoom()
Sets the zoom to the default zoom value- Returns:
- whether zoom matches default value after setting it
-
isZoomingEnabled
public static boolean isZoomingEnabled()
Checks if scroll to zoom is enabled on the account- Returns:
- true if enabled, false otherwise
-
isShiftInteractionEnabled
public static boolean isShiftInteractionEnabled()
-
isTradeDelayEnabled
public static boolean isTradeDelayEnabled()
-
toggleTradeDelay
public static boolean toggleTradeDelay(boolean on)
-
-