-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.moon
More file actions
48 lines (40 loc) · 1.57 KB
/
init.moon
File metadata and controls
48 lines (40 loc) · 1.57 KB
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
--- A useful set of core classes that help you make an extensible set of UI controls.
-- * This GUI framework is an improved version of catui (https://github.com/wilhantian/catui)
-- * Credit : wilhantian (https://github.com/wilhantian)
--@author Tourahi Amine (tourahi.amine@gmail.com)
--@license TODO
--@module MeowUI
path = ...
cwd = path .. ".src."
c_cwd = path .. ".Controls."
root = path .. "."
love = love
import keyboard from love
os = love.system.getOS!
local _separator
if os == "Windows"
_separator = '\\'
else
_separator = '/'
_assets = root\gsub '%.', _separator
-- Love config
keyboard.setKeyRepeat true
export MeowUI = {
debug: true
keyInput: true -- If you are using keyInput functions else disable it. (Some example controls will used it, so if you want to use them keep it as is).
version: "v0.1"
stage: "Release-0.1"
defTheme: "blues"
author: "Tourahi Amine"
}
MeowUI["cwd"] = cwd
MeowUI["c_cwd"] = c_cwd
MeowUI["root"] = root
MeowUI["assets"] = _assets .. "Controls" .. _separator .. "assets" .. _separator
MeowUI["path_seperator"] = _separator
MeowUI["Control"] = assert require MeowUI.cwd .. "Core.Control"
MeowUI["manager"] = assert require MeowUI.cwd .. "Core.Manager"
MeowUI["theme"] = assert(require(MeowUI.root .. "Controls.themes")[MeowUI.defTheme]!)
MeowUI["useThirdParty-utf8"] = true -- utf8.lua - https://github.com/Stepets/utf8.lua
if MeowUI["useThirdParty-utf8"]
export utf8 = assert require(MeowUI.cwd .. "ThirdParty.utf8")\init!