fork/m-overlay

git clone https://git.julia.blue/fork/m-overlay

BkacjiosMerge branch 'tmp' into settings-overhaulf7324a4

settings-overhaul
863 B51 linesraw
1-- This is the environment used when loading our custom skin classes
2
3local perspective = require("perspective")
4local overlay = require("overlay")
5local color = require("util.color")
6local memory = require("memory")
7local melee = require("melee")
8local gui = require("gui")
9
10local env = {
11	-- QOL Stuff
12	graphics = love.graphics,
13	timer = love.timer,
14	audio = love.audio,
15	filesystem = love.filesystem,
16	window = love.window,
17
18	-- Incase someone forgets to define these
19	SKIN = {},
20
21	color = color,
22
23	memory = memory,
24	melee = melee,
25
26	perspective = perspective,
27
28	SETTINGS = PANEL_SETTINGS,
29
30	BUTTONS = {
31		Z = 0x0010,
32		R = 0x0020,
33		L = 0x0040,
34		A = 0x0100,
35		B = 0x0200,
36		X = 0x0400,
37		Y = 0x0800,
38		START = 0x1000,
39	},
40
41	DPAD = {
42		DPAD_LEFT = 0x0001,
43		DPAD_RIGHT = 0x0002,
44		DPAD_DOWN = 0x0004,
45		DPAD_UP = 0x0008,
46	},
47
48	overlay = overlay,
49}
50
51return env