Calling FileDialog from Slab locating at a subfolder raises error:
Error
libs/Slab/Internal/UI/Image.lua:42: Could not open file libs.Slab/Internal/Resources/Textures/Folder.png. Does not exist.
Traceback
[C]: in function 'newImage'
libs/Slab/Internal/UI/Image.lua:42: in function 'GetImage'
libs/Slab/Internal/UI/Image.lua:82: in function 'Begin'
libs/Slab/Internal/UI/Dialog.lua:120: in function 'FileDialogItem'
libs/Slab/Internal/UI/Dialog.lua:506: in function 'FileDialog'
Also, I wonder if the solution is solid enough with gsub instead of FileSystem.GetSlabPath()... Well, lua projects rarely use dots in filenames on the other hand, and gsub surely costs less in performance.
Calling FileDialog from Slab locating at a subfolder raises error:
And at
Dialog.lua:120
:where
SLAB_PATH
is"libs.Slab"
.I searched all occurances of
SLAB_PATH
and found this: (AtStyle.lua:81
)Imitaing this, I fixed all similar concatenatings with
gsub
and made this PR.