-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
68 lines (61 loc) · 2.17 KB
/
main.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
---[Lambda]---
---[This shit made me fucking depressed]---
_VERSION_ = "1";
local LambdaUI = require("utils/LambdaUI/main");
local C_LIB=require("utils/lang/c");
local font = love.graphics.newFont("utils/font/Comfortaa-Regular.ttf", 40);
love.graphics.setFont(font);
local major, minor, revision, codename = love.getVersion();
function love.load()
love.keyboard.setKeyRepeat(true);
love.keyboard.setTextInput(true);
end;
tabscroll=0;
function love.update(dt)
status="NaN"
LambdaUI.update(dt)
mx=love.mouse.getX()
my=love.mouse.getY()
window_width=love.graphics.getWidth()
window_height=love.graphics.getHeight()
if (tabscroll < 0) then
tabscroll = 0
end
end;
function love.draw()
GUI();
end;
function c(r,g,b)love.graphics.setColor(r,g,b);end;
function hover(x,y,w,h)if(mx>=x and mx<=x+w and my>=y and my<=y+h)then return true;end;end;
function GUI()
Tabs={"Utilities","Decompiler","RCE","Scripts","Plugins","Misc","Themes","Proccesses","Settings"};
selection=Tabs[1];
c(0.12, 0.12, 0.12);
love.graphics.rectangle("fill", 0, 0, window_width, window_height);
c(0.08, 0.08, 0.08);
love.graphics.rectangle("fill", 0, 0, window_width/3.5, window_height,15,15,32676);
c(0.13,0.13,0.13);
love.graphics.rectangle("fill", math.abs(5.5,window_width/5), 60+tabscroll,10,600-#Tabs*50,5,5,32676);
function love.wheelmoved(x, y)
if hover(0,45+window_height/50,window_width/3.5,window_height) then
if y > 0 then
tabscroll = tabscroll - y - 27
elseif y < 0 then
tabscroll = tabscroll + y + 27
end;
end;
end;
local response
for i,x in ipairs(Tabs) do
if selection==x then
response=LambdaUI.Button(math.abs(32.5,window_width/5),i*65-tabscroll,window_width/5+25,55,15,">"..x)
else
response=LambdaUI.Button(math.abs(32.5,window_width/5),i*65-tabscroll,window_width/5+25,55,15,x)
end;
if(response==Tabs[1])then love.quit(); end;
end;
c(0.10, 0.10, 0.10);
love.graphics.rectangle("fill", 0, 0, window_width, 45+window_height/50,15,15,32676);
c(1,1,1);love.graphics.print("| ",window_width-30*2,4);love.graphics.print(" λ",window_width-30*2,9);
love.graphics.print("Status:"..status,5,10);
end;