Thanks! I appreciate the help a lot!
pixe_ated
(vera)
October 27, 2024, 1:53am
#83
more specially this snippet from osgl-graphics/src/DrawableObject/window.luau
needs to be updatd
@param config WindowConfiguration? -- Optional configurations
@return Window -- Returns an OSGL window instance
]=]
function Window.new<P>(parent: Instance, config: types.WindowConfiguration?): Window<P>
log.typeCheckArgument("Window.new", "parent", parent, "Instance")
config = config or {}
config.sizeX = math.clamp(config.sizeX or 1, 1, 1024)
config.sizeY = math.clamp(config.sizeY or 1, 1, 1024)
local editableImage = Instance.new("EditableImage")
editableImage.Size = Vector2.new(config.sizeX, config.sizeY)
editableImage.Parent = parent
return Window.from(editableImage)
end
--[=[
Creates an OSGL window from an existing EditableImage.
```lua
i’ll make a pull request
1 Like
saaawdust
(sawdust)
October 27, 2024, 1:09pm
#85
Hi, I’ve reviewed and merged your changes! Thanks for making the pull request!
Mubinets
(Mubinet)
November 4, 2024, 11:30am
#86
Hi!
This library is amazing to use! I’d love to use it, however, I am currently using TypeScript for that and it’s pretty difficult for me to create a type definition (that types your entire library) due to the fact that your library contains nested modules with a lot of references.
1 Like
saaawdust
(sawdust)
November 4, 2024, 4:26pm
#87
Are you talking about RobloxTS? If you want official support, I can do that. Just want to make sure!
1 Like
Mubinets
(Mubinet)
November 8, 2024, 7:02pm
#88
Absolutely!!! That’d be awesome, you’d enable more developers that uses RobloxTS to use OSGL.
1 Like
Mentalizm
(Mentalizm)
November 28, 2024, 11:30pm
#89
I was trying out the version you made but it gives me a error like this
Kealomon
(Kealomon)
November 29, 2024, 9:14am
#90
I’ve been having this issue aswell. The FFlag for GetContent might not be available yet.