ğğğ NewIcon DataType ĞĞĞ Version 39.0 (23.10.96) COPYRIGHT NOTE ŻŻŻŻŻŻŻŻŻŻŻŻŻŻ This product is freeware, do what you want with it. The source code remains copyrighted but is freely distributable and modifiable. DISCLAIMER ŻŻŻŻŻŻŻŻŻŻ No warranties of any kind are made as to the functionality of this program. You are using it at your own risk. SYSTEM REQUIREMENTS ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ o OS3.0 or higher o The NewIcons package by Nicola Salmoria (see Aminet) INSTALLATION ŻŻŻŻŻŻŻŻŻŻŻŻ Copy Devs/Datatypes/NewIcon#? SYS:Devs/Datatypes/ Copy Classes/Datatypes/newicon.datatype SYS:Classes/Datatypes/ Copy NewIcon.prefs ENVARC:DataTypes/ Copy NewIconToILBM C: Now reboot your machine or type "AddDatatypes REFRESH" in a shell. FEATURES ŻŻŻŻŻŻŻŻ This datatype will load 'NewIcon' icons. So you can convert them to any (IFF ILBM) file format, to be able to edit them. This datatype is a replacement for the old and buggy program 'NewIconToBrush'. You can control some features with a prefs file. This file is named ENV:DataTypes/NewIcon.Prefs . Every line starting with ; # or * is considered a comment. All others lines are parsed for the parameters listed below. You can specify the parameters on several lines or on the same line by separating them by spaces. NOBORDER/S Don't draw the border around images. NONORMAL/S Don't include the normal state image. NOSELECTED/S Don't include the selected state image. XOFFSET/N Defines the number of pixels between the horizontal borders and the images. Default to 2. YOFFSET/N Defines the number of pixels between the vertical borders and the images. Default to 2. BORDERPEN/N The pen number used to draw the border. Default to 1. COLORMAP A picture filename containing a colormap. The images will be remaped to this colormap. Defaults to the colormap of the icon. Actually the recognation of icon file is the same as the 'icon datatype', thus you can't use both at the same time. The next version should fix this. For those of you who liked the shell conversion tool (NewIconToBrush), you can use DT2IFF by Markus Hillenbrand (Aminet:gfx/conv/dt2iff.lha) to achieve this. An AmigaDOS script is provided here (NewIconToILBM) to do this job. The template is : FROM/A,TO/A,NOBORDER/S,NONORMAL/S,NOSELECTED/S, XOFFSET,YOFFSET,BORDERPEN,COLORMAP Where FROM is the filename of the icon (with the .info), TO is the destination directory where to store the IFF file (a .IFF will be added). All others parameters are the same as for the prefs file. Notice that if you don't specify any of those, the standard prefs file will be used, but starting from one parameters specified the standard prefs file is ignored. HISTORY ŻŻŻŻŻŻŻ Back in January 1995, I made a program called 'NewIconToBrush' to convert NewIcon icons to IFF ILBM. This program was a hack and the system had some weird behavior after using it. I made a new version (no more a hack) but it still had some enforcer hits (reported by one of you). Then I decided to rewrite it in C (yes it was in assembler !), but my mind just worked faster, why not make a DataType ? There are multiple programs out there to convert from DT to DT. So here it is. 39.0 23-Oct-96 Initial release. AUTHOR ŻŻŻŻŻŻ Pascal Hurni Av. Cressire 14 CH-1814 La Tour-de-Peilz Switzerland or E-Mail: phurni@cyber.ch THANKS ŻŻŻŻŻŻ Many thanks to the 'NewIcons' team for providing us a so cool system. Thanks must go to David N.Junod ( BMPdt from the 3.1 NDK ) and Christian Buchner ( AOM_RAWdt ) for the original datatype source code.