Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Add Enabled and OnTopOfCoreBlur to ScreenGui (#206)
Browse files Browse the repository at this point in the history
* Add Enabled prop to ScreenGui

This change adds the Enabled property to ScreenGui to facilitate writing
tests with more modern API.

* Add OnTopOfCoreBlur to ScreenGui

* Add tests for ScreenGui/Enabled+OnTopOfCoreBlur

Add missing unit tests for ScreenGui.
  • Loading branch information
dbrooks-roblox authored and LPGhatguy committed Jul 31, 2019
1 parent bf2f270 commit cba91fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/instances/ScreenGui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ ScreenGui.properties.Enabled = InstanceProperty.typed("boolean", {
end,
})

ScreenGui.properties.OnTopOfCoreBlur = InstanceProperty.typed("boolean", {
getDefault = function()
return false
end,
})

return ScreenGui
4 changes: 3 additions & 1 deletion lib/instances/ScreenGui_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ describe("instances.ScreenGui", function()
assert.equals(typeof(instance.AutoLocalize), "boolean")
assert.equals(typeof(instance.IgnoreGuiInset), "boolean")
assert.equals(typeof(instance.ZIndexBehavior), "EnumItem")
assert.equals(typeof(instance.OnTopOfCoreBlur), "boolean")
assert.equals(typeof(instance.Enabled), "boolean")
assert.equals(instance.ZIndexBehavior.EnumType, ZIndexBehavior)
end)
end)
end)

0 comments on commit cba91fb

Please sign in to comment.