Adrien Destugues
d4d57f750d
In brush factory, when the selected entry is not a file, display the full path in the description window.
...
Since the factory can open in an empty or even non-existing (!) dir, this is helpful to locate where you are.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1962 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-09 20:41:05 +00:00
Yves Rizoud
55d0889bc8
Change rendering system to use function pointers, see Issue 31 c38 : preliminary work to make the same executable handle Layers or Anims. Fixed an old issue where Lasso-ing a brush with right mouse button wouldn't erase cleanly (visual). Fixed an old issue where picking colors in layer 5 would not 'see' through layers.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1906 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-22 23:47:53 +00:00
Adrien Destugues
7137e1fc05
Strings with more than 24 chars were not properly null-terminated before sending them to Print_in_menu, causing random data to appear in the status bar since Print_in_menu will print more chars if there's space.
...
Thanks to DawnBringer for noticing!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1899 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-11 18:29:46 +00:00
Yves Rizoud
dae1bc856b
Tilemap mode: Undo and Redo only refresh tilemap when image size changes. Lua scripts that change image size also refresh tilemap
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1877 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-11-26 14:46:09 +00:00
Yves Rizoud
8fb16e7089
Re-integrated anim in trunk, fixing the 999-layer limit at the same time
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1841 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-10-19 23:35:56 +00:00
Adrien Destugues
22d3f19df3
* Add lua stuff to write to spare page
...
* Use it in Tiler to put the tilemap in the spare.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1834 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-09-25 20:37:45 +00:00
Adrien Destugues
da48c58445
* Sync Brush Factory documentation and sourcecode
...
* Remove useless and undocumented function getbrushtransparentcolor (does the same as getbackcolor)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1832 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-09-25 14:35:50 +00:00
Adrien Destugues
4dc40e7784
Add lua getfilename function (that also returns the path).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1826 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-09-24 13:38:54 +00:00
Yves Rizoud
8ba389e06b
Lua: matchcolor2() now takes an optional argument that is the weight of lightness in color proximity algorithm (instead of the 0.25 default).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1821 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-07-18 23:08:33 +00:00
Yves Rizoud
f2316f12e2
Lua: statusmessage() now clears remainder of line
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1820 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-07-16 19:15:08 +00:00
Yves Rizoud
51ddfe4f86
Fix build on Windows ( $shell in makefile). Lua: waitinput now additionally returns mouse position in image coordinates
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1819 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-07-16 18:57:55 +00:00
nokturnal
78e1745ef1
replaced hardcoded lua script and libs paths with defines, Atari build stack adjustments (reduced it's size to 8k)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1800 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-06-15 22:40:43 +00:00
Yves Rizoud
bf28d19f20
Lua: Fixed drawdisk which was drawing a square instead of a circle (doh!). Radius can now be a multiple of 0.5 to draw circles of even sizes (r=0 -> 1x1, r=0.5 -> 2x2, r=1 -> 3x3 etc.)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1798 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-06-14 21:52:20 +00:00
Yves Rizoud
2f3e1e3294
Lua: added 'matchcolor2' that uses DawnBringer's perceptual formula. Updated scripts numbering to 2.4
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1797 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-06-12 19:03:14 +00:00
Yves Rizoud
80e0b17be8
Fix issue 430: warning 'Implicit declaration of function Remove_duplicate_shortcuts'. Fix another warning for unused parameter. Now 0 warnings on mingw32-gcc 4.4.1
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1774 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-10 14:35:29 +00:00
Yves Rizoud
f34417919f
Lua: now remembers which directory you last browsed when you quit. Fixed an issue where gfx2.ini isn't saved if there's a file gfx2.$$$ in same directory (Like after a crash)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1763 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-03 14:43:16 +00:00
Yves Rizoud
e10fe19ae6
Lua: Fixed keyboard shortcuts to accomodate with full path names now used. Users who had shortcuts should clear them, from the list of shortcuts in Help screen.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1762 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-02 18:45:07 +00:00
Yves Rizoud
04761c79c4
Unbroke the file selector (was listing only hidden files instead of non-hidden). Lua: can browse the whole filesystem now
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1761 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-02 17:43:16 +00:00
Yves Rizoud
9f8dada2b0
Lua window: Fix inconsistency of 'parent directory' appearance. Now applies the 'show hidden files/dirs' settings too.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1760 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-23 20:13:12 +00:00
Yves Rizoud
64e39cda85
Lua: fix crash of the new drawing primitives (drawcircle, drawdisk, drawfilledrect, drawline) when outside view area
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1756 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-13 00:52:51 +00:00
Adrien Destugues
eae47aa0e8
* Factory : if message is longer than 24 chars, cut it instead of not doing anything
...
* Fileformats : remove outdated comment in gif loader
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1750 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-07 21:53:39 +00:00
Yves Rizoud
cdd7f21265
Fxed and simplified double-click handling in Listboxes (Skins window, Text window, Factory window). Double-clicking a font in Text window 'accepts' the rendering and closes the window.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1736 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-26 17:43:55 +00:00
Yves Rizoud
107779edf5
Implemented double-click in Brush factory window. Still need to check/fix all other occurences of the listbox control (need to eliminate unnecessary refresh on double-click, or trigger a specific action instead)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1733 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-23 23:37:34 +00:00
Adrien Destugues
5b332bfa25
* Do not allow script to write more than 24 chars to the statusline
...
* Clear the statusline when a script is finished running.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1731 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-19 13:59:44 +00:00
Adrien Destugues
f6da992038
* Add scripts from dawnbringer : 3D palette viewer and applycolor (with tint and colorize effects)
...
* Add the dawnbringer lib
Some changes were made
* Remove line and filled circle functions from dawnbringer lib
* Add C replacement (slightly faster, and useful enough to be part of core)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1730 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-19 12:40:12 +00:00
Yves Rizoud
80c37034f9
Fix a remap problem on brush, when modified by Lua script then transformed. Fix Brush remap to maintain transparent pixels. Fix Text tool , respects transparent pixels and preview is always visible (The black PF_ fonts are no longer shown on a black background)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1726 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-16 17:03:45 +00:00
Yves Rizoud
7150a1ebcd
Fix issue of changes in brush by Lua that didn't survive remap (ex: script Halfsmooth)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1705 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 15:52:56 +00:00
Yves Rizoud
5d2dd927e4
Much work on color brushes (issue 362). You can rotate, resize, flip etc. without losing original palette.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1701 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 00:03:38 +00:00
Yves Rizoud
e01b310317
Some work on brush remapping
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1700 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-29 21:20:54 +00:00
Yves Rizoud
40a7bcf40e
Changes on brushes memory management, in preparation for Issue 362
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1699 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-27 19:52:36 +00:00
Yves Rizoud
cd9552ee58
Lua: Added waitinput(), for more interactive scripts. Works well, but kept under observation for better ideas etc.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1689 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-19 21:37:46 +00:00
Adrien Destugues
2801345545
* Add script by dawnbringer that does an ellipse animation
...
* Add lua binding 'setmessage' to set the statusbar message. Nte this is reset by waitbreak() for now, so you have to do it before each call to updatescreen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1672 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-05 18:08:46 +00:00
Yves Rizoud
f24d4a55bd
Lua script selector: can now browse directories. Todo: handle double-click.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1668 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-22 02:21:26 +00:00
Yves Rizoud
b849cc1706
Lua: added finalizepicture()
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1664 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-18 23:42:43 +00:00
Yves Rizoud
4fc9c2ef30
Lua: changed sleep() to wait() and waitbreak() that are now in seconds, and the last one returns early with a value of 1 if user hit esc. They allow delay of zero if you only want to poll keyboard/mouse and update mouse position. Added updatescreen(): It must be followed by wait() or waitbreak(), because of the double-buffer screen system. See the Sierpinski scripts for example usage.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1662 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-18 20:03:59 +00:00
Yves Rizoud
6e316937f4
Lua: added sleep command
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1661 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-18 17:48:36 +00:00
Yves Rizoud
9b4be3abd1
Modified filelists so that they can support arbitrary width. Generalized the 'quicksearch' system and implemented it in Brush Factory screen: Type some letters to locate matching filename.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1660 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-17 00:56:58 +00:00
Yves Rizoud
c2cd990108
Lua: Added setforecolor() and setbackcolor() (Issue 402)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1652 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-03 19:01:08 +00:00
Yves Rizoud
7a3ae5824a
Merged the specifics of Caanoo 1.2 port by Pheel + Enabled TTF text on Caanoo
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1645 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 01:03:11 +00:00
Yves Rizoud
dbac6dcfe3
Lua: Only shows files ending in '.lua'. All system libraries available. Allow loading 'libs/foo.lua' by using 'require(''foo'')'. New 'memory' library, to allow persistence of data.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1628 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-27 01:14:54 +00:00
Adrien Destugues
3760289a01
There was a space in some lua function names.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1627 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-26 16:18:15 +00:00
Yves Rizoud
e4cda09bf2
Lua: changed selectbox to use callbacks.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1616 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-12 22:43:17 +00:00
Yves Rizoud
535fc73860
Lua: function 'selectbox' with multiple user-defined buttons
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1615 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-12 22:11:42 +00:00
Yves Rizoud
32f85909ef
Lua: Fix clipping for getbackuppixel
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1612 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-12 17:35:20 +00:00
Yves Rizoud
499c9bc943
Fix issue 377: getbackuppixel doesn't work after image resize
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1611 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-12 17:15:16 +00:00
Yves Rizoud
c53c6415c3
Fix important bug where resizing an image or using any transformation resets transparent color to zero
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1610 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-12 14:58:25 +00:00
Yves Rizoud
4ac5d47ac8
Lua: fix a stray mouse cursor (hourglass shape) that gets drawn over menu. Richard, that's your small freak gfx-bug from 13 August
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1604 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-02 22:52:16 +00:00
Yves Rizoud
a61bb9893c
Gradient menu: palette now resets when you release speed slider, this fixes bad menu colors when they are in the shift. Lua: messagebox() and inputbox() now recompute menu colors before opening, this fixes bad menu colors if the script had altered the palette earlier.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1602 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-02 00:06:57 +00:00
Adrien Destugues
cf417c9bb9
Enable lua string library (int to string, string to int and some other useful things)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1588 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-22 20:26:30 +00:00
Yves Rizoud
c9a917aa85
Fix some compilation warnings (mix code and declarations, breaks on gcc2). Fileselector: Fix the names of drives, which was one character too long, overwriting the scrollbar. Reworked the drive icons for black background (all skins)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1559 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 22:37:39 +00:00