diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-28 17:06:15 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-28 17:06:15 +0100 |
commit | 3286955dc331841136d51c3921d0b488c5e89aab (patch) | |
tree | ded1f02120e740cd6940ff906bdf6ae4f4f0f5c8 | |
parent | 664c9c7f18fe901086dd7296127bbc4c45d8fc2d (diff) |
Permitting name changes of the struct objects.
-rw-r--r-- | dalos-struct.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dalos-struct.lua b/dalos-struct.lua index 9bbe617..d66e02a 100644 --- a/dalos-struct.lua +++ b/dalos-struct.lua @@ -556,7 +556,15 @@ dalosp.struct = { title = "Use Template", action = function() obj:use_template(dalsop.struct.templates) end, }, + iup.button { + title = "Change name", + action = function() local s, n = iup.GetParam("Change name", nil, "Name: %s\n", obj.name) if s then obj.name = n end end + }, iup.fill {}, + iup.button { + title = "Close", + action = function() return iup.CLOSE end, + }, }, }, |