Added lua binding to select the color brush.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1104 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
9b45134596
commit
56a4c704fe
@ -102,6 +102,12 @@ int L_SetColor(lua_State* L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int L_BrushEnable(lua_State* L)
|
||||||
|
{
|
||||||
|
Change_paintbrush_shape(PAINTBRUSH_SHAPE_COLOR_BRUSH);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void Button_Brush_Factory(void)
|
void Button_Brush_Factory(void)
|
||||||
{
|
{
|
||||||
short clicked_button;
|
short clicked_button;
|
||||||
@ -138,6 +144,7 @@ void Button_Brush_Factory(void)
|
|||||||
lua_register(L,"getbrushsize",L_GetBrushSize);
|
lua_register(L,"getbrushsize",L_GetBrushSize);
|
||||||
lua_register(L,"getpicturesize",L_GetPictureSize);
|
lua_register(L,"getpicturesize",L_GetPictureSize);
|
||||||
lua_register(L,"setcolor",L_SetColor);
|
lua_register(L,"setcolor",L_SetColor);
|
||||||
|
lua_register(L,"brushenable",L_BrushEnable);
|
||||||
|
|
||||||
// For debug only
|
// For debug only
|
||||||
// luaL_openlibs(L);
|
// luaL_openlibs(L);
|
||||||
@ -151,6 +158,7 @@ void Button_Brush_Factory(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Close_window();
|
Close_window();
|
||||||
|
Unselect_button(BUTTON_BRUSH_EFFECTS);
|
||||||
Display_cursor();
|
Display_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user