-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdjustable_Damage_Number_Size.lua
63 lines (54 loc) · 1.66 KB
/
Adjustable_Damage_Number_Size.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
local sdk = sdk;
local tostring = tostring;
local pairs = pairs;
local ipairs = ipairs;
local tonumber = tonumber;
local require = require;
local pcall = pcall;
local table = table;
local string = string;
local Vector3f = Vector3f;
local d2d = d2d;
local math = math;
local json = json;
local log = log;
local fs = fs;
local next = next;
local type = type;
local setmetatable = setmetatable;
local getmetatable = getmetatable;
local assert = assert;
local select = select;
local coroutine = coroutine;
local utf8 = utf8;
local re = re;
local imgui = imgui;
local draw = draw;
local Vector2f = Vector2f;
local reframework = reframework;
local utils = require("Adjustable_Damage_Number_Size.utils");
local config = require("Adjustable_Damage_Number_Size.config");
local customization_menu = require("Adjustable_Damage_Number_Size.customization_menu");
local native_customization_menu = require("Adjustable_Damage_Number_Size.native_customization_menu");
local damage_numbers = require("Adjustable_Damage_Number_Size.damage_numbers");
utils.init_module();
config.init_module();
customization_menu.init_module();
native_customization_menu.init_module();
damage_numbers.init_module();
log.info("[Adjustable Damage Number Size] Loaded.");
re.on_draw_ui(function()
local changed = false;
local cached_config = config.current_config;
if imgui.button("Adjustable Damage Number Size v" .. config.current_config.version) then
customization_menu.is_opened = not customization_menu.is_opened;
end
end);
re.on_frame(function()
if not reframework:is_drawing_ui() then
customization_menu.is_opened = false;
end
if customization_menu.is_opened then
pcall(customization_menu.draw);
end
end);