-
Notifications
You must be signed in to change notification settings - Fork 5
/
default_setting.lua
87 lines (82 loc) · 2.11 KB
/
default_setting.lua
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
--
local KEY = require('keycode')
---@class lstg.setting
local M = {
allowsnapshot = true,
username = 'User',
font = '',
timezone = 8,
resx = 1706,
resy = 960,
windowed = true,
vsync = true,
sevolume = 100,
bgmvolume = 100,
keys = {
up = KEY.UP,
down = KEY.DOWN,
left = KEY.LEFT,
right = KEY.RIGHT,
slow = KEY.SHIFT,
shoot = KEY.Z,
spell = KEY.X,
special = KEY.SPACE,
},
keysys = {
repfast = KEY.CTRL,
repslow = KEY.ALT,
menu = KEY.ESCAPE,
snapshot = KEY.HOME,
toggle_collider = KEY.F8,
},
-- note: key codes in [keys] and [keysys] should be mutex
posteffect = true,
res_ratio = { 16, 9 },
-- desktop
windowsize_w = 1708,
windowsize_h = 960,
-- mobile
orientation = 'landscape',
touchkey = true,
controller_map = {
keys = {
up = { 14 },
down = { 16 },
left = { 19 },
right = { 15 },
slow = { 05 },
shoot = { 09 },
spell = { 04 },
special = { 07 },
},
keysys = {
repfast = { 01, true },
repslow = { 01, false },
menu = { 06 },
snapshot = { 10 },
},
},
--
render_skip = 0,
--
imgui_visible = false,
xe = {
frame_size = { 1280, 720 },
-- editor
auto_save = true,
editor_tree_padding = 0,
editor_tree_indent = nil,
prop_se_play = true,
-- debug
cheat = false,
debug_sc_current_only = false,
-- project
pack_to_engine_path = false,
-- code
code_editor_font_scale = 100,
code_editor_theme = 'Light',
-- UI
theme = 'Light',
}
}
return M