-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathOverlayConfig.h
47 lines (36 loc) · 1.6 KB
/
OverlayConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "Bedrock/BaseLib/BaseLib.h"
#include "GW2TacOMenu.h"
class Config
{
static CDictionaryEnumerable<CString, TS32> configValues;
static CDictionaryEnumerable<CString, CString> configStrings;
public:
static void InitDefaults();
static void Load();
static void Save();
static void ToggleValue( const TCHAR* value );
static void ToggleValue( const CString& value );
static TS32 GetValue( const TCHAR* value );
static void SetValue( TCHAR* value, TS32 val );
static TBOOL HasValue( TCHAR* value );
static TBOOL HasString( TCHAR* value );
static void SetString( TCHAR* value, const CString& val );
static CString GetString( TCHAR* value );
static TBOOL HasWindowData( TCHAR* windowname );
static TBOOL IsWindowOpen( TCHAR* windowname );
static CString GetWindowOpenConfigValue( TCHAR* windowname );
static void SetWindowOpenState( TCHAR* windowname, TBOOL Open );
static CRect GetWindowPosition( TCHAR* windowname );
static void SetWindowPosition( TCHAR* windowname, CRect Pos );
static void GetKeyBindings( CDictionary<TS32, TacOKeyAction>& KeyBindings );
static void DeleteKeyBinding( TS32 key );
static void SetKeyBinding( TacOKeyAction action, TS32 key );
static void GetScriptKeyBindings( CDictionary<TS32, CString>& ScriptKeyBindings );
static void SetScriptKeyBinding( const CString& scriptEvent, TS32 key );
static void DeleteScriptKeyBinding( const CString& scriptEvent );
static void LoadMarkerCategoryVisibilityInfo();
static void AutoSaveConfig();
static void RemoveValue( TCHAR* value );
static void SetDefaultValue( TCHAR* cfg, TS32 val );
};