-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeltaenhui.lua
More file actions
55 lines (51 loc) · 1.36 KB
/
deltaenhui.lua
File metadata and controls
55 lines (51 loc) · 1.36 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
49
50
51
52
53
54
55
-- Delta UI Enhancer
-- By IvanTheSkid
-- [[[[[ WORK IN PROGRESS ]]]]]
-- dont execute if it's already executed
assert(not getgenv().deltaenhui)
getgenv().deltaenhui = true
-- make sure it's running with Delta
assert(identifyexecutor and gethui and identifyexecutor():sub(1,5)=="Delta")
-- retrieve delta's GUI
local dltgui
repeat
for _,v in gethui():GetChildren() do
if v:FindFirstChild("IsTween") and v:FindFirstChild("UILibrary") and v:FindFirstChild("MainScript") then
dltgui = v
break
end
end
if not dltgui then
task.wait()
end
until dltgui
-- functionalize delta's console
local conelem = dltgui.Console.ConsoleElements
do
local ui = conelem.Parent.RobloxConsole.Console.ScrollingFrame.Header
game:GetService("LogService").MessageOut:Connect(function(msg,tp)
local item
if tp == Enum.MessageType.MessageError then
item = conelem.Error:Clone()
elseif tp == Enum.MessageType.MessageWarning then
item = conelem.Warn:Clone()
elseif tp == Enum.MessageType.MessageInfo then
item = conelem.Info:Clone()
else
item = conelem.Output:Clone()
end
item.Content.Text = msg
item.Visible = true
item.Parent = ui
item = nil
end)
ui.Parent.Parent.Parent.Buttons.Clear.MouseButton1Click:Connect(function()
for _,v in ui:GetChildren() do
if v:IsA("Frame") then
v:Destroy()
v = nil
end
end
end)
end
-- seriously, who needs RConsole?