Skip to content

Commit

Permalink
Fixed TopBarShift for Notif.rbxmx (#1593)
Browse files Browse the repository at this point in the history
The Notif UI (:setmessage) now respects the TopBarShift setting in the Settings ModuleScript.
  • Loading branch information
ScriptedConnor authored Sep 6, 2024
1 parent da10c64 commit bfc1d87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MainModule/Client/UI/Default/Notif.rbxmx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ return function(data, env)
local label = gui.LABEL
local str = data.Message
local topbar = client.UI.Get("TopBar")
local topshift

client.UI.Remove("Notif",script.Parent.Parent)

Expand All @@ -68,11 +69,17 @@ return function(data, env)

table.insert(client.Variables.CommunicationsHistory, log)
service.Events.CommsPanel:Fire(log)

if client.Variables.TopBarShift == true then
topshift = true
else
topshift = false
end


if str and type(str)=="string" then
label.Text = str
label.Position = UDim2.new(0, 0, 0, ((topbar and 40) or 0) - 35)
label.Position = UDim2.new(0, 0, 0, ((topshift and 0) or -35))
gTable:Ready()
else
gui:Destroy()
Expand Down

0 comments on commit bfc1d87

Please sign in to comment.