Adrien Destugues
0be1f7bff1
-Load Lua's math library when running factory scripts, as this makes them a lot more useful (sin, cos, ...)
...
-Don't crash when Lua fails loading a script but does not return an error message.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1223 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-24 17:56:05 +00:00
Yves Rizoud
c150be2664
[layers] merged in the recent changes from trunk
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:35:09 +00:00
Adrien Destugues
e6e698c2bd
Added vim modelines to all files.
...
Set them to 2-space indent, I hope this is ok.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1161 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:08:11 +00:00
Adrien Destugues
045d8714ad
Removed leftover debug.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1150 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-04 18:58:09 +00:00
Yves Rizoud
3ede1f3a56
[layers] NOLAYERS option at compile time. Unfinished.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1140 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 23:22:43 +00:00
Yves Rizoud
119e679e32
[layers] Adapted lua bindings to draw/read in current layer (untested)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1134 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 14:31:36 +00:00
Yves Rizoud
f38fd068a2
[layers] Merged changes from trunk
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1131 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 01:05:21 +00:00
Adrien Destugues
ba36fa675f
-Moved test script to "scripts" directory
...
-Allow to add other scripts to this dir and run them too.
--Cette ligne, et les suivantes ci-dessous, seront ignorées--
A trunk/scripts
A + trunk/scripts/test.lua
D trunk/test.lua
M trunk/buttons.c
M trunk/factory.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1125 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 17:33:04 +00:00
Yves Rizoud
7105566433
Compilation fixes: A typo, and a cast double->int
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1119 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 13:50:55 +00:00
Adrien Destugues
8114cae1e9
Added (r,g,b)=getcolor(c) to lua binding.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1118 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 13:01:56 +00:00
Adrien Destugues
56a4c704fe
Added lua binding to select the color brush.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1104 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 10:45:52 +00:00
Adrien Destugues
2a67c9bdce
Refactored (yes, already) the lua API to allow also generating pictures directly.
...
Updated doc, and added sample script.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1099 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 17:27:49 +00:00
Adrien Destugues
06892015ea
added lua binding to set a color in the palette
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1097 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:52:21 +00:00
Adrien Destugues
1934425972
Added "Brush Factory", allowing you to run a lua script to generate (or alter, untested yet) a brush.
...
Added a simple (and ugly) sample script.
This needs updates to the makefile for platforms other than linux.
TODO: add a listbox to select the script you want to run. Do we have a simple API to handle filelists yet ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1094 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:22:45 +00:00