ScaleformUI icon indicating copy to clipboard operation
ScaleformUI copied to clipboard

tweak(menu colors): typecheck using assert

Open Mathu-lmn opened this issue 1 year ago • 2 comments

Mathu-lmn avatar Sep 02 '24 01:09 Mathu-lmn

@manups4e Can you check this ? :eyes:

Mathu-lmn avatar Sep 08 '24 01:09 Mathu-lmn

instead of checking if it's a table.. you can check by doing

assert(color() == "SColor", "Color must be SColor type")

because checking if it's a table means that i could send any table.. too generic.. check here https://github.com/manups4e/ScaleformUI/blob/master/ScaleformUI_Lua/src/Elements/SColor.lua on line 3

manups4e avatar Sep 12 '24 06:09 manups4e

if you correct this i will merge <3

manups4e avatar Oct 26 '24 07:10 manups4e

should be good

Mathu-lmn avatar Oct 28 '24 13:10 Mathu-lmn