Skip to content

Commit

Permalink
Skybox support and bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Apr 12, 2024
1 parent 90b5d49 commit 0fd408e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Via [wally](https://wally.run):

```toml
[dependencies]
GlassmorphicUI = "boatbomber/glassmorphicui@0.4.1"
GlassmorphicUI = "boatbomber/glassmorphicui@0.5.0"
```

Alternatively, grab the `.rbxm` standalone model from the latest [release.](https://github.com/boatbomber/GlassmorphicUI/releases/latest)
Expand Down
23 changes: 12 additions & 11 deletions demo/init.client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ ScreenGui.Parent = script.Parent

local background = Instance.new("ImageLabel")
background.Name = "Background"
background.Size = UDim2.fromScale(1, 1)
background.Size = UDim2.fromScale(0.5, 1)
background.Image = "rbxassetid://16620841089"
background.ZIndex = 0
background.Parent = ScreenGui

local blurryWindow = GlassmorphicUI.new()
blurryWindow.BackgroundTransparency = 0.5
blurryWindow.BackgroundTransparency = 0.7
blurryWindow.Position = UDim2.fromScale(0.5, 0.3)
blurryWindow.BackgroundColor3 = Color3.fromRGB(7, 48, 84)
blurryWindow.Size = UDim2.fromScale(0.3, 0.3)
blurryWindow.AnchorPoint = Vector2.new(0.5, 0.5)
Expand All @@ -34,14 +35,14 @@ textLabel.Position = UDim2.fromScale(0, 0.1)
textLabel.Parent = blurryWindow

-- Make the window move in a circle
task.spawn(function()
local x, y
while true do
x = (math.cos(os.clock() * 2) / 5) + 0.5
y = (math.sin(os.clock() * 2) / 5) + 0.5
blurryWindow.Position = UDim2.fromScale(x, y)
task.wait()
end
end)
-- task.spawn(function()
-- local x, y
-- while true do
-- x = (math.cos(os.clock() * 2) / 5) + 0.5
-- y = (math.sin(os.clock() * 2) / 5) + 0.5
-- blurryWindow.Position = UDim2.fromScale(x, y)
-- task.wait()
-- end
-- end)

blurryWindow.Parent = ScreenGui
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boatbomber/glassmorphicui",
"version": "0.4.1",
"version": "0.5.0",
"license": "MPL 2.0",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions wally.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ dependencies = []

[[package]]
name = "boatbomber/glassmorphicui"
version = "0.4.1"
dependencies = [["EditableImageBlur", "boatbomber/[email protected]"], ["PixelColorApproximation", "boatbomber/pixelcolorapproximation@0.1.3"]]
version = "0.5.0"
dependencies = [["EditableImageBlur", "boatbomber/[email protected]"], ["PixelColorApproximation", "boatbomber/pixelcolorapproximation@0.2.1"]]

[[package]]
name = "boatbomber/pixelcolorapproximation"
version = "0.1.3"
version = "0.2.1"
dependencies = []
4 changes: 2 additions & 2 deletions wally.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "boatbomber/glassmorphicui"
description = "Glassmorphic UI in Roblox"
version = "0.4.1"
version = "0.5.0"
license = "MPL 2.0"
authors = ["boatbomber (https://boatbomber.com)"]
registry = "https://github.com/upliftgames/wally-index"
Expand All @@ -11,4 +11,4 @@ exclude = ["**"]

[dependencies]
EditableImageBlur = "boatbomber/[email protected]"
PixelColorApproximation = "boatbomber/pixelcolorapproximation@0.1.3"
PixelColorApproximation = "boatbomber/pixelcolorapproximation@0.2.1"

0 comments on commit 0fd408e

Please sign in to comment.