Download CommonLua/X/XTemplates/PropEntry.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/X/XTemplates/PropEntry.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/X/XTemplates/PropEntry.lua
-
curl -L -o PropEntry.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/X/XTemplates/PropEntry.lua
1.44 kB
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| __is_kind_of = "XPropControl", | |
| group = "Common", | |
| id = "PropEntry", | |
| save_in = "Common", | |
| PlaceObj('XTemplateWindow', { | |
| '__condition', function (parent, context) return context.prop_meta.separator end, | |
| '__class', "XPropControl", | |
| 'HandleMouse', false, | |
| 'ChildrenHandleMouse', false, | |
| }, { | |
| PlaceObj('XTemplateWindow', { | |
| '__class', "XText", | |
| 'TextStyle', "GedTitleDarkMode", | |
| 'ContextUpdateOnOpen', true, | |
| 'OnContextUpdate', function (self, context, ...) | |
| self:SetText(context.prop_meta.separator) | |
| XContextControl.OnContextUpdate(self, context) | |
| end, | |
| 'Translate', true, | |
| 'TextHAlign', "center", | |
| }), | |
| }), | |
| PlaceObj('XTemplateTemplate', { | |
| '__condition', function (parent, context) return context.prop_meta.editor == "bool" end, | |
| '__template', "PropBool", | |
| }), | |
| PlaceObj('XTemplateTemplate', { | |
| '__condition', function (parent, context) return context.prop_meta.editor == "number" end, | |
| '__template', "PropNumber", | |
| }), | |
| PlaceObj('XTemplateTemplate', { | |
| '__condition', function (parent, context) return context.prop_meta.editor == "combo" or context.prop_meta.editor == "choice" end, | |
| '__template', "PropChoice", | |
| }), | |
| PlaceObj('XTemplateTemplate', { | |
| '__condition', function (parent, context) return context.prop_meta.editor == "hotkey" end, | |
| '__template', "PropKeybinding", | |
| }), | |
| }) | |