UserSettings
Extends:
Loads and stores user settings, in localStorage and on the server.
Static Member Summary
| Static Public Members | ||
| public static |
EVENT_CHANGE: * |
|
| public static |
EVENT_LOADED: * |
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| Private Members | ||
| private |
_LOCALSTORAGE_KEY: string |
|
| private |
_lsSettings: * |
|
| private |
_serverDelay: * |
|
| private |
_settings: {} |
|
| private |
active: * |
|
| private |
wasLoaded: * |
|
Method Summary
| Public Methods | ||
| public |
get(key: String, defaultValue: any): * |
|
| public |
getAll(): * |
|
| public |
getLS(key: *): * |
|
| public |
init() |
|
| public |
load(settings: Object) |
|
| public |
reset() |
|
| public |
save() |
|
| public |
set(key: String, value: any) |
|
| public |
setLS(key: string | number, value: boolean) |
|
Static Public Members
public static EVENT_CHANGE: * source
public static EVENT_LOADED: * source
public static PREF_ACE_KEYMODE: * source
public static PREF_AUTHOR_NAME: * source
public static PREF_BGPATTERN: * source
public static PREF_BGPREVIEW: * source
public static PREF_BGPREVIEW_MAX: * source
public static PREF_CHANGELOG_LAST_VIEW: * source
public static PREF_CHECK_OP_COLLISIONS: * source
public static PREF_DEVINFOS: * source
public static PREF_DOWNLOAD_PATH: * source
public static PREF_EDITORTAB: * source
public static PREF_ESCAPE_CLOSETABS: * source
public static PREF_FADEOUT_OPTIONS: * source
public static PREF_FILEMANAGER_DISPLAY: * source
public static PREF_FILEMANAGER_ORDER: * source
public static PREF_FONTSIZE_ACE: * source
public static PREF_FONT_SIZE_OFF: * source
public static PREF_FORCE_WEBGL1: * source
public static PREF_FORMATCODE: * source
public static PREF_GLFLOWMODE: * source
public static PREF_GLPATCH_CURSOR: * source
public static PREF_GLPATCH_PAN: * source
public static PREF_GLPATCH_SELECT: * source
public static PREF_GLTIMELINE_OPENED: * source
public static PREF_HELPERMODE: * source
public static PREF_HIDE_CANVAS_UI: * source
public static PREF_HIDE_SIZE_BAR: * source
public static PREF_IDLEMODE: * source
public static PREF_INTRO_COMPLETED: * source
public static PREF_KEYBIND_ESCAPE: * source
public static PREF_LINETYPE: * source
public static PREF_LOGGING_FILTER: * source
public static PREF_MAINTABS_VISIBLE: * source
public static PREF_MAXIMIZERENDERER: * source
public static PREF_MINIFIED_OP_HEAD: * source
public static PREF_MINIOPSELECT: * source
public static PREF_NOTLOCALIZE_NUMBERFORMAT: * source
public static PREF_NO_BROWSER_WARNING: * source
public static PREF_NO_FADEOUT_CABLES: * source
public static PREF_OPENFULLSCREEN: * source
public static PREF_OPENLASTPROJECT: * source
public static PREF_OPEN_EDITORS: * source
public static PREF_OPEN_LOG_TAB: * source
public static PREF_OPSELECT_AUTOLINKOPS: * source
public static PREF_OVERLAYS_SHOW: * source
public static PREF_PATCH_ALLOW_CABLEDRAG: * source
public static PREF_PATCH_PANSPEED: * source
public static PREF_PATCH_WHEELMODE: * source
public static PREF_PRESENTATIONMODE: * source
public static PREF_QUICKLINK_LONGPRESS: * source
public static PREF_QUICKLINK_MIDDLEMOUSE: * source
public static PREF_RANDOMIZE_PATCH_NAME: * source
public static PREF_SEND_ERROR_REPORTS: * source
public static PREF_SHOW_ALL_SHADER_ERRORS: * source
public static PREF_SHOW_MINIMAP: * source
public static PREF_SHOW_TIPPS: * source
public static PREF_SHOW_UIPERF_FILTER: * source
public static PREF_SHOW_UI_PERF: * source
public static PREF_SIDEBAR_LEFT: * source
public static PREF_SNAPTOGRID: * source
public static PREF_SNAPTOGRID_LEGACY: * source
public static PREF_STRAIGHT_LINES: * source
public static PREF_TEXPREVIEW_MODE: * source
public static PREF_TEXPREVIEW_SIZE: * source
public static PREF_TEXPREVIEW_TRANSPARENT: * source
public static PREF_TEXTEDITOR: * source
public static PREF_TOUCHPADMODE: * source
public static PREF_TRANSPARENTPOPOUT: * source
public static PREF_UIPERF_LAST_HIGHLIGHT: * source
public static PREF_VIZLAYER_PAUSED: * source
public static PREF_WHEELMULTIPLIER: * source
public static PREF_WRAPMODE_ACE: * source
public static SETTING_GLUI_DEBUG_COLORS: * source
Public Constructors
public constructor() source
Public Members
public : boolean source
Private Members
private _LOCALSTORAGE_KEY: string source
private _lsSettings: * source
private _serverDelay: * source
private _settings: {} source
private active: * source
private wasLoaded: * source
Public Methods
public get(key: String, defaultValue: any): * source
Params:
| Name | Type | Attribute | Description |
| key | String | ||
| defaultValue | any |
|
Return:
| * |
public init() source
public load(settings: Object) source
Params:
| Name | Type | Attribute | Description |
| settings | Object |
public reset() source
public save() source
public set(key: String, value: any) source
Params:
| Name | Type | Attribute | Description |
| key | String | ||
| value | any |
public setLS(key: string | number, value: boolean) source
Params:
| Name | Type | Attribute | Description |
| key | string | number | ||
| value | boolean |