Commit Graph

  • 9a941c4512 Add script by dawnbringer that performs spritesheet animation. Adrien Destugues 2011-01-15 17:34:19 +00:00
  • c802a9acfd More scripts from nitrofurano. Some of the previous ones may be replaced, but I'm going to write a page with info on all scripts and sort it all out from there. Adrien Destugues 2011-01-15 15:11:47 +00:00
  • 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. Adrien Destugues 2011-01-05 18:08:46 +00:00
  • f24d4a55bd Lua script selector: can now browse directories. Todo: handle double-click. Yves Rizoud 2010-12-22 02:21:26 +00:00
  • 243c9192c5 Correct font path for Haiku. Adrien Destugues 2010-12-21 12:06:05 +00:00
  • 65ede7dd91 The warning ehen there is an error with font may be bigger than screen. Use verbose_message instead (but it looks ugly) Adrien Destugues 2010-12-21 11:28:17 +00:00
  • 20034ef2ae Fix build under Haiku. Adrien Destugues 2010-12-21 09:49:02 +00:00
  • b849cc1706 Lua: added finalizepicture() Yves Rizoud 2010-12-18 23:42:43 +00:00
  • fccadd5927 Forgot the scripts... Yves Rizoud 2010-12-18 20:07:55 +00:00
  • 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. Yves Rizoud 2010-12-18 20:03:59 +00:00
  • 6e316937f4 Lua: added sleep command Yves Rizoud 2010-12-18 17:48:36 +00:00
  • 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. Yves Rizoud 2010-12-17 00:56:58 +00:00
  • e886553314 Fix issue 401: Touchscreen adaptation for Caanoo and Wiz Yves Rizoud 2010-12-12 18:55:55 +00:00
  • 7aefad850d Fix issue 396: increasing Saturation makes greyscale red Yves Rizoud 2010-12-12 18:09:11 +00:00
  • dc9df9d1e9 Missing update for 'sync views' setting (from r1622) Yves Rizoud 2010-12-03 19:05:22 +00:00
  • c2cd990108 Lua: Added setforecolor() and setbackcolor() (Issue 402) Yves Rizoud 2010-12-03 19:01:08 +00:00
  • c55b9854df Makefile fixes for OSX, kindly contributed by gruber.kristof (Issue 397) Yves Rizoud 2010-12-01 14:22:35 +00:00
  • 3797966fa7 Fix a warning Yves Rizoud 2010-11-14 14:57:23 +00:00
  • 0bfc627094 Some minor changes to make it compile on AROS. masta.uy 2010-11-13 20:05:12 +00:00
  • aeb7f26809 Fix issue 398 : Grafx2 not detecting mouse button release. Yves Rizoud 2010-11-09 22:21:30 +00:00
  • 9d3defc477 Forgotten library (issue 399) Yves Rizoud 2010-11-08 01:23:11 +00:00
  • a38b7336e6 Fix help screens: since r1532, short texts were padded with a black rectangle on top instead of bottom. Yves Rizoud 2010-11-07 21:57:15 +00:00
  • 7a3ae5824a Merged the specifics of Caanoo 1.2 port by Pheel + Enabled TTF text on Caanoo Yves Rizoud 2010-11-05 01:03:11 +00:00
  • a59de659bd Fix crash when using gradient-filled functions without entering Gradient screen before. Thanks to PheeL for report Yves Rizoud 2010-11-05 00:27:21 +00:00
  • 0ede7c43cd Fix 'About' screen not enitrely redrawn. Thanks to Pheel for report Yves Rizoud 2010-11-05 00:09:56 +00:00
  • 70b558c7c5 Solve choppy mouse movement (and unusual CPU usage) when a joystick exists (even when compiled without joystick support). Fixes the emulated cursor movement that was unusable when compiled with joystick. Redid the cursor acceleration system. Yves Rizoud 2010-11-05 00:03:55 +00:00
  • de9f194b4a Fix issue 391: backward memset Yves Rizoud 2010-10-28 19:34:02 +00:00
  • fba72c9ebd Removed struct packing everywhere, except RGB 24bit struct (and thus 768-byte palettes). This might fix some issue on Caanoo, where either the packing didn't work (and the struct had wrong size) or it worked and caused unaligned reads/writes. Yves Rizoud 2010-10-26 22:51:07 +00:00
  • e5272e74f7 Fix memory alignment problem that caused wrong color columns when loading 24bit imges on Caanoo. Thanks PheeL for report Yves Rizoud 2010-10-25 21:15:43 +00:00
  • a28f574b3b Virtual keyboard for numeric entry Yves Rizoud 2010-10-07 18:57:44 +00:00
  • 5fd72996c3 Virtual keyboard for string input Yves Rizoud 2010-10-02 19:05:30 +00:00
  • b78bae876b Sped up fast 24bit color reduction (Caanoo specific) Yves Rizoud 2010-10-02 13:52:42 +00:00
  • e3e9be75b0 Unification of button system for the three current console ports. Yves Rizoud 2010-09-29 23:06:26 +00:00
  • bd13dd93b1 Integrated the changes by PheeL for Caanoo support Yves Rizoud 2010-09-29 22:21:25 +00:00
  • 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. Yves Rizoud 2010-09-27 01:14:54 +00:00
  • 3760289a01 There was a space in some lua function names. Adrien Destugues 2010-09-26 16:18:15 +00:00
  • 9c1d9f9e79 Updated helpfile: Paintbrushes (customized brushes in screen) and the setting Sync_views Yves Rizoud 2010-09-17 16:42:55 +00:00
  • e5703c0895 Implemented issue 327: Having the magnifier settings identical for main and spare page Yves Rizoud 2010-09-17 16:25:00 +00:00
  • 6d059e7234 Fix issue 338: UI scale should stay the same regardless of pixel scale Yves Rizoud 2010-09-17 15:35:13 +00:00
  • db8bde5ba6 Fix issue 380: Exiting zoom mode in a large image jumps the viewport to a 'random' position Yves Rizoud 2010-09-17 14:27:43 +00:00
  • 82e469a11e Now save all color ranges, not only the cycling ones. Only solid ranges (1 color) are discarded. Also fixed a few harmless compilation warnings Yves Rizoud 2010-09-16 19:28:59 +00:00
  • 29b1acc63f Fix an issue with the comments in file, was not working (since a recent change?) Yves Rizoud 2010-09-15 22:15:43 +00:00
  • e4cda09bf2 Lua: changed selectbox to use callbacks. Yves Rizoud 2010-09-12 22:43:17 +00:00
  • 535fc73860 Lua: function 'selectbox' with multiple user-defined buttons Yves Rizoud 2010-09-12 22:11:42 +00:00
  • b0d2f9741d Improved Spare remapping and Brush recolorizing, with new color-matching formula provided by DawnBringer (Perceptual color-distance with 25 brightness weigth-in). Fix in 'Copy to spare/Palette & remap' : Transparent color of the spare wasn't renumbered accordingly. Yves Rizoud 2010-09-12 19:09:27 +00:00
  • 32f85909ef Lua: Fix clipping for getbackuppixel Yves Rizoud 2010-09-12 17:35:20 +00:00
  • 499c9bc943 Fix issue 377: getbackuppixel doesn't work after image resize Yves Rizoud 2010-09-12 17:15:16 +00:00
  • c53c6415c3 Fix important bug where resizing an image or using any transformation resets transparent color to zero Yves Rizoud 2010-09-12 14:58:25 +00:00
  • 79dbd3722a Fix sliders displayed position. Pfew. Yves Rizoud 2010-09-11 00:37:43 +00:00
  • e44eb104fa Fix the control issue with scroll bars. Still need to fix the displayed slider on them Yves Rizoud 2010-09-10 23:34:14 +00:00
  • 6800cb7b9e Fix sliders controls bad offset - especially visible in Palette with RGB scale 3 to 16 Yves Rizoud 2010-09-07 00:13:10 +00:00
  • 730903251c Fix issue 384: Imprecise palette sliders when RGB scale is lower than 256 (but bigger than 3) Yves Rizoud 2010-09-06 23:33:50 +00:00
  • 25f8942641 Cycling colors: increased max speed from 64 to 105, because I found old LBM file that uses this speed Yves Rizoud 2010-09-04 14:59:33 +00:00
  • 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 Yves Rizoud 2010-09-02 22:52:16 +00:00
  • cf8af1902c In /rgb 3 mode: If skin colors are compatible with /rgb 3, they are the ideal colors for matching, and those you add when loading low-color images or typing 'Backspace' in Palette. Otherwise the ideal color set is hard-coded black/dark_blue/grey/white Yves Rizoud 2010-09-02 00:39:43 +00:00
  • 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. Yves Rizoud 2010-09-02 00:06:57 +00:00
  • 9f47e427c7 Fix horrible crash with GIF-saving Yves Rizoud 2010-09-01 00:06:48 +00:00
  • 962d23dbc4 The gradients (Cycling or not) are now per-picture, so: The main and spare page have separate gradients; Loading a picture resets the gradients and loads the new image's (if any); Undo and Redo correctly navigate to the right gradients when you Undo/Redo Loading different color-cycling images. Yves Rizoud 2010-08-31 23:48:10 +00:00
  • 838dd63a0c GIF format loads and saves color cycling data Yves Rizoud 2010-08-31 22:30:04 +00:00
  • 97060bc146 Improved Gradation menu for cycling colors, including a horizontal scrollbar. Added helpfile. Yves Rizoud 2010-08-29 23:56:42 +00:00
  • d78c33855b Drag-n-drop file in Grafx2 window is now cleanly prevented while a window is open: The OS's mouse cursor is the 'forbidden' sign. Preparatory work for horizontal slider controls. Yves Rizoud 2010-08-29 19:21:33 +00:00
  • 9e20dd71fd Fix icon 'unslected layer 6' in DPaint skin Yves Rizoud 2010-08-29 18:33:09 +00:00
  • 05e05d0d75 Keyboard shortcut for enabling/disabling color cycle. Yves Rizoud 2010-08-29 18:11:16 +00:00
  • a5b5fa69e8 Fix window displacement (window didn't redraw when you released mouse button, only if you additionally moved mouse) Yves Rizoud 2010-08-28 18:01:21 +00:00
  • 38be354d7b Fix issue with previous commit : crash when previewing pictures with non-square pixels Yves Rizoud 2010-08-25 19:40:52 +00:00
  • 236a026137 File selector: display preview no longer changes GUI colors when the image uses less than 253 colors. Fixes many cases of issue 215, and generally allows much smoother browsing. Yves Rizoud 2010-08-25 18:55:48 +00:00
  • fc42854490 Even more work on GUI color auto-detection. Now additionally tries to find a specific color scheme for CPC palettes (pale green and grey), if the skin's colors can't be accurately represented in /rgb 3. Yves Rizoud 2010-08-24 22:29:48 +00:00
  • 03a813baec More work on auto-detcting GUI colors. Fixes the cases like the 16-color ramp black->yellow reported by DawnBringer. Seems to work better with many 4-color cpc palettes Yves Rizoud 2010-08-24 18:27:39 +00:00
  • cf417c9bb9 Enable lua string library (int to string, string to int and some other useful things) Adrien Destugues 2010-08-22 20:26:30 +00:00
  • fef8aec302 Put a visible error message in case of SDL_Image fail. Adrien Destugues 2010-08-22 18:26:12 +00:00
  • 0631f57399 Enable lua scripting on Haiku. Adrien Destugues 2010-08-22 18:02:31 +00:00
  • b0bf727997 Set native end-of-line encoding on all txt files we package in distributions. Adrien Destugues 2010-08-22 16:48:58 +00:00
  • 3ed9d0d652 Improve auto-detection of menu colors when using very small palettes Yves Rizoud 2010-08-22 16:48:19 +00:00
  • 7efbe04c6a Don't lose the filename when changing extension. Adrien Destugues 2010-08-22 16:39:20 +00:00
  • 715ddad331 iBrush rotation now snap cursor in an useful way (to fixed angles) Adrien Destugues 2010-08-22 16:02:17 +00:00
  • 520da7d168 Reverted the change of input system (mostly, still needs more testing) Changed color cycling so it no longer needs a separate thread. Yves Rizoud 2010-08-19 00:33:06 +00:00
  • 858bab41c4 Drag-and-drop file: Question 'Discard unsaved changes' now works Yves Rizoud 2010-08-17 17:22:46 +00:00
  • 190cfe1315 Mouse wheel now works on Gradients menu Yves Rizoud 2010-08-17 17:18:31 +00:00
  • 27f4033076 Try gain again to fix the makefile for lua detection. Adrien Destugues 2010-08-17 12:40:59 +00:00
  • 917dbc206b Fix in skin 'Modern', vertical palette arrows where horizontal Yves Rizoud 2010-08-15 19:24:29 +00:00
  • c581b3c5a6 Fix lack of history step in 'Copy to spare - palette and remap' Yves Rizoud 2010-08-15 19:07:19 +00:00
  • 1cad25e4b5 Reverted r1477: 'Faster translucency effect when perfect matches are available'. When duplicates were available in the palette, it wasn't choosing always the same Yves Rizoud 2010-08-15 18:34:25 +00:00
  • c474208860 Color cycling: saved in ILBM format. Yves Rizoud 2010-08-15 14:47:37 +00:00
  • 4ea23b3e9a Color cycling based on the ranges in Grad menu. A speed slider has appeared. The speed data (and all cycling) is loaded from IFF/ILBM images from Deluxe Paint, Amiga and DOS versions. The data is not saved at the moment, so you shouldn't re-save cycling images Yves Rizoud 2010-08-14 23:23:10 +00:00
  • 1c2ab9aa99 ILBM format : Cycling color ranges are loaded (unused so far) Yves Rizoud 2010-08-14 19:03:55 +00:00
  • bd20d85cc9 Fix confirmation box when dragging a file on unsaved image. Yves Rizoud 2010-08-13 19:45:25 +00:00
  • c83cd8c339 Drag and drop files: more stable. Unfinished Yves Rizoud 2010-08-12 20:08:36 +00:00
  • cd39485232 Critical fix for Airbrush, to prevent it from spiraling to death when airbrushing time-consuming brushes : Event queue would fill with 'tick' events, mouse button release wouldn't be caught, more airbrushing , more cpu cost, deadlock Yves Rizoud 2010-08-11 00:23:56 +00:00
  • 25796b9188 More work on SDL events. Also fixed an issue (very old?) where Grafx2 didn't accurately follow mouse movements when it's very busy, ie when using Continuous Freehand with a large brush or transparency. Now, as long as the setting Merge mouse is zero, all intermediate mouse positions are correctly buffered and played back. From my testing, up to 7 seconds will be memorized. Yves Rizoud 2010-08-11 00:07:55 +00:00
  • e4d6dcbcbe Fixed sliders and repeatable buttons, for the change of timing method. Yves Rizoud 2010-08-09 22:56:06 +00:00
  • 84e81bbb3f * Try again to fix (or rather work around) pkg-config lua detection. Adrien Destugues 2010-08-09 09:30:06 +00:00
  • 951ec2d48a Still work on SDL events. Airbrush seems to work. Need to do repeatable buttons. Yves Rizoud 2010-08-08 19:59:17 +00:00
  • 80b8c4e5a5 Palette: moved color# to the 'Reduce' dropdown, which allows nicer names for buttons 'Used' and 'Histo' (I hesitated to name it 'Stats', in case expand this screen) Yves Rizoud 2010-08-08 02:30:00 +00:00
  • 684034c687 Histogram: Shows pixel count, and selects the clicked color. Yves Rizoud 2010-08-08 02:17:21 +00:00
  • b7a083ee92 GUI colors: When all of a skin's preferred colors are available, Grafx2 picks them. This overrides the new algorithm of r1550 Yves Rizoud 2010-08-07 19:43:42 +00:00
  • 032f0995a7 Fix in Transparency setting, cursor around 'Alpha' never disappeared. Yves Rizoud 2010-08-07 19:23:55 +00:00
  • 68dbb7ad74 Forgot the skins in previous commit. Yves Rizoud 2010-08-06 22:45:12 +00:00
  • 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) Yves Rizoud 2010-08-06 22:37:39 +00:00
  • e0d21e2a89 * Relive the drive icons in the file selector. They are drawn in the filelist so likely they shoud have a black background in the skins. Adrien Destugues 2010-08-06 18:12:49 +00:00
  • 42f401b061 * proof of concept (untesterd) for tiles Adrien Destugues 2010-08-06 16:37:41 +00:00