summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2013-01-19 12:03:27 +0100
committerJeija <norrepli@gmail.com>2013-01-19 12:03:27 +0100
commitec517becabcc2b80583f3ea2f2b4a3ebec5bc751 (patch)
tree0acc2aad94d72bfb71cf9b5933aba0168ebd23dd
parent0d441444219816bac6dfd3da0d3997c763bc1669 (diff)
downloadmesecons-ec517becabcc2b80583f3ea2f2b4a3ebec5bc751.tar
mesecons-ec517becabcc2b80583f3ea2f2b4a3ebec5bc751.tar.gz
mesecons-ec517becabcc2b80583f3ea2f2b4a3ebec5bc751.tar.bz2
mesecons-ec517becabcc2b80583f3ea2f2b4a3ebec5bc751.tar.xz
mesecons-ec517becabcc2b80583f3ea2f2b4a3ebec5bc751.zip
Texture the LuaController formspec
-rw-r--r--mesecons_luacontroller/init.lua7
-rw-r--r--mesecons_textures/textures/jeija_close_window.pngbin7701 -> 323 bytes
-rw-r--r--mesecons_textures/textures/jeija_luac_background.pngbin0 -> 2016 bytes
-rw-r--r--mesecons_textures/textures/jeija_luac_runbutton.pngbin0 -> 4262 bytes
4 files changed, 4 insertions, 3 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua
index c72dfa7..f95e072 100644
--- a/mesecons_luacontroller/init.lua
+++ b/mesecons_luacontroller/init.lua
@@ -272,9 +272,10 @@ local reset_meta = function(pos, code, errmsg)
errmsg = string.gsub(errmsg, "%]", ")") -- corrupt formspec
meta:set_string("code", code)
meta:set_string("formspec", "size[10,8]"..
- "textarea[0.2,0.4;10.2,5;code;Code:;"..code.."]"..
- "button[3.5,7.5;2,0;program;Program]"..
- "image_button_exit[9.62,-0.35;0.7,0.7;jeija_close_window.png;exit;]"..
+ "background[-0.2,-0.25;10.4,8.75;jeija_luac_background.png]"..
+ "textarea[0.2,0.6;10.2,5;code;;"..code.."]"..
+ "image_button[3.75,6;2.5,1;jeija_luac_runbutton.png;program;]"..
+ "image_button_exit[9.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]"..
"label[0.1,4.5;"..errmsg.."]")
meta:set_int("heat", 0)
end
diff --git a/mesecons_textures/textures/jeija_close_window.png b/mesecons_textures/textures/jeija_close_window.png
index eb89179..5c27c6c 100644
--- a/mesecons_textures/textures/jeija_close_window.png
+++ b/mesecons_textures/textures/jeija_close_window.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_luac_background.png b/mesecons_textures/textures/jeija_luac_background.png
new file mode 100644
index 0000000..40e316c
--- /dev/null
+++ b/mesecons_textures/textures/jeija_luac_background.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_luac_runbutton.png b/mesecons_textures/textures/jeija_luac_runbutton.png
new file mode 100644
index 0000000..157507f
--- /dev/null
+++ b/mesecons_textures/textures/jeija_luac_runbutton.png
Binary files differ