nidorx / roblox-dat-gui

A lightweight graphical user interface and controller library that allows you to easily manipulate variables and fire functions on the fly, inspired by the venerable dat-gui js.
MIT License
18 stars 3 forks source link

Cannot open a closed folder until cursor touches valid Gui #3

Closed incetents closed 3 years ago

incetents commented 3 years ago

By default, until the cursor touches a working GUI element (number, string, checkbox, etc...) it is impossible to open or close any folders.

To easily recreate:

local gui = datGUI.new()
local gui_Info = gui.addFolder("Info")
gui_Info.close()

local gui_Data = {
    FPS = 0,
}
gui_Info.add(gui_Data, "FPS").readonly().listen()

You will notice that it is impossible to open the one closed folder from this point.

nidorx commented 3 years ago

Resolved in v1.1