Download CommonLua/X/XTemplates/MenuButton.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 797 Bytes
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/X/XTemplates/MenuButton.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/X/XTemplates/MenuButton.lua
-
curl -L -o MenuButton.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/X/XTemplates/MenuButton.lua
797 Bytes
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| __is_kind_of = "XTextButton", | |
| group = "Common", | |
| id = "MenuButton", | |
| save_in = "Common", | |
| PlaceObj('XTemplateWindow', { | |
| '__class', "XTextButton", | |
| 'BorderWidth', 2, | |
| 'OnPressEffect', "action", | |
| 'RolloverBackground', RGBA(170, 170, 170, 255), | |
| 'RolloverBorderColor', RGBA(0, 0, 0, 255), | |
| 'TextStyle', "GedTitle", | |
| 'Translate', true, | |
| }, { | |
| PlaceObj('XTemplateFunc', { | |
| 'name', "OnSetFocus", | |
| 'func', function (self, ...) | |
| XCreateRolloverWindow(self, true) | |
| XTextButton.OnSetFocus(self, ...) | |
| end, | |
| }), | |
| PlaceObj('XTemplateFunc', { | |
| 'name', "SetSelected(self, selected)", | |
| 'func', function (self, selected) | |
| self:SetFocus(selected) | |
| end, | |
| }), | |
| }), | |
| }) | |