From 1d3a00b15d8c2207d3560bd20e5109766a16a9ec Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Fri, 7 Feb 2020 11:26:21 +0700 Subject: [PATCH] HOTFIX: dirty label flag script access --- .../bin/library/scripts/emmy/components/label.lua | 3 +++ .../bindings/high_binds/components/label_binds.cpp | 13 +++++++++++++ 2 files changed, 16 insertions(+) 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