Skip to content

Commit

Permalink
Update OsmiumLibrary.lua (#7)
Browse files Browse the repository at this point in the history
* Update OsmiumLibrary.lua

breaking change: fix typo of `opened`

* Update OsmiumLibraryDocumentation.md

fix typo
  • Loading branch information
JulMan-Dev authored Jan 4, 2025
1 parent e9ffe96 commit 8ed4285
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions OsmiumLibrary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ local library = (function ()

local library = {
WindowState = {
Openned = 1,
Opened = 1,
Minimized = 0,
Destroyed = -1
}
Expand Down Expand Up @@ -109,7 +109,7 @@ local library = (function ()
function library:CreateWindow(title)
local title = title or "Proxima Hub Window"
local parent = game.CoreGui
local state = library.WindowState.Openned
local state = library.WindowState.Opened

local window_id = math.random(1, 400)

Expand Down Expand Up @@ -261,21 +261,21 @@ local library = (function ()
})

pcall(function ()
local openned = true
local opened = true

function window:Hide()
openned = false
opened = false
top.Visible = false
end

function window:Show()
openned = true
opened = true
top.Visible = true
end

local handler = UserInputService.InputBegan:Connect(function (input)
if input.KeyCode == Enum.KeyCode.LeftAlt then
if openned then
if opened then
window:Hide()
else
window:Show()
Expand Down Expand Up @@ -352,7 +352,7 @@ local library = (function ()
state = library.WindowState.Minimized
else
PlayTween(UDim2.new(0, frame.AbsoluteSize.X, 0, 370), true)
state = library.WindowState.Openned
state = library.WindowState.Opened
end
end)
end)
Expand Down
4 changes: 2 additions & 2 deletions OsmiumLibraryDocumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ end

Possibles values :
- `library.WindowState.Destroyed`: the window is closed
- `library.WindowState.Oppenned`: the window is openned
- `library.WindowState.Minimized`: the window is openned and minimized
- `library.WindowState.Opened`: the window is opened
- `library.WindowState.Minimized`: the window is opened and minimized

## Destroy Window

Expand Down

0 comments on commit 8ed4285

Please sign in to comment.