Framework update

This commit is contained in:
Tercio Jose
2020-04-14 14:58:29 -03:00
parent 149986e6cc
commit e2a169aa72
5 changed files with 415 additions and 115 deletions
+8
View File
@@ -22,6 +22,8 @@ do
local metaPrototype = {
WidgetType = "textentry",
SetHook = DF.SetHook,
HasHook = DF.HasHook,
ClearHooks = DF.ClearHooks,
RunHooksForWidget = DF.RunHooksForWidget,
}
@@ -304,6 +306,12 @@ DF.TextEntryCounter = DF.TextEntryCounter or 1
end
end
end
function TextEntryMetaFunctions:SetCommitFunction(func)
if (type(func) == "function") then
self.func = func
end
end
------------------------------------------------------------------------------------------------------------
--> scripts and hooks