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
This commit is contained in:
Adrien Destugues
2009-10-29 15:22:45 +00:00
parent 4d20be0053
commit 1934425972
12 changed files with 208 additions and 35 deletions

View File

@@ -17,10 +17,10 @@
along with Grafx2; if not, see <http://www.gnu.org/licenses/>
*/
//////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
///@file buttons.h
/// Almost all the editor actions that are called by the menu are here.
//////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
#ifndef __BOUTONS_H_
#define __BOUTONS_H_
@@ -28,19 +28,21 @@
#include "struct.h"
/*!
Displays an error message when there is no more memory for the requested operation.
Displays an error message when there is no more memory for the requested
operation.
*/
void Message_out_of_memory(void);
/*!
Displays the splash screen at program startup.
Displays the splash screen at program startup.
*/
void Button_Message_initial(void);
/*!
Changes brush shape.
This function saves the current brush shape and swith to the default one (single pixel brush) for the filler and the color picker.
These functions don't need (and will not work with) a custom brush.
Changes brush shape.
This function saves the current brush shape and swith to the default one
(single pixel brush) for the filler and the color picker.
These functions don't need (and will not work with) a custom brush.
*/
void Change_paintbrush_shape(byte shape);