From 3286955dc331841136d51c3921d0b488c5e89aab Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 28 Dec 2009 17:06:15 +0100 Subject: Permitting name changes of the struct objects. --- dalos-struct.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dalos-struct.lua') 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, + }, }, }, -- cgit v1.2.3