diff --git a/samples/bin/library/scripts/emmy/components/label.lua b/samples/bin/library/scripts/emmy/components/label.lua index 40e3606c..3ec3c1ce 100644 --- a/samples/bin/library/scripts/emmy/components/label.lua +++ b/samples/bin/library/scripts/emmy/components/label.lua @@ -1,5 +1,8 @@ ---@class label local label = { + ---@type boolean + dirty = false, + ---@type string text = "", diff --git a/sources/enduro2d/high/bindings/high_binds/components/label_binds.cpp b/sources/enduro2d/high/bindings/high_binds/components/label_binds.cpp index 207b6c72..347abd1e 100644 --- a/sources/enduro2d/high/bindings/high_binds/components/label_binds.cpp +++ b/sources/enduro2d/high/bindings/high_binds/components/label_binds.cpp @@ -15,6 +15,19 @@ namespace e2d::bindings::high l.new_usertype>("label", sol::no_constructor, + "dirty", sol::property( + [](const gcomponent