Melosx 27 Posted April 11, 2012 (edited) MSX - Windowskin 128 Color v1.0 Melosx Introduction With this script you can use a windowskin with 128 colors. How to Use Place the script under Material and above Main. You need the following Windowskin. Windowskin Script #============================================================================== # ** Windowskin 128 Color v1.0 #============================================================================== # Author: Melosx # Release Date: 10/04/2012 => v1.0 #============================================================================== # * Instructions # ----------------------------------- # Place the script under Material and above Main. # #============================================================================== # * Description # ----------------------------------- # With this script you can use a windowskin with 128 colors. # You can add new color code following the instruction in the Color Zone. # #============================================================================== class Window_Base < Window #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-|COLOR ZONE|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # # To add new color follow this template: # # def COLOR_NAME; text_color(ID); end # # ID is a number from 0 to 127 and it is the place of the color in the # windowskin. # #----------------------------ADD HERE YOUR COLORS-----------------------------# def msx_color; text_color(32); end; # <- My favourite color ^.^ #=-=-=-=-=-=-=-=-=-=-=-=-=-=-==--=-=-|END|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# def text_color(n) windowskin.get_pixel(64 + (n % 16) * 4, 96 + (n / 16) * 4) end end Credit and Thanks - Melosx Edited April 12, 2012 by Melosx 3 Share this post Link to post Share on other sites
Wyrelade 15 Posted April 11, 2012 So.. What's color 128 actually?.. black or something?.. Thanks anyways.. seems to be pretty nice little scriptlet Share this post Link to post Share on other sites
Melosx 27 Posted April 11, 2012 In a normal windowskin you have only 32 color squares... Now you can use 128 color squares... The index of the color is 0->127... if you put 128 you have an error... Share this post Link to post Share on other sites
kramlat 0 Posted July 23, 2012 (edited) I just came up with an updated version of your script above and called it Windowskin 512 and I will post it here since it is relevant. Script: #============================================================================== # ** Windowskin 512 Color v1.0 #============================================================================== # Author: kramlat # Release Date: 23/08/2012 => v1.0 # Based on MSX Windowskin 128 Color # Original Author: Melosx #============================================================================== # * Instructions # ----------------------------------- # Place the script under Material and above Main. # #============================================================================== # * Description # ----------------------------------- # With this script you can use a windowskin with 128 colors. # You can add new color code following the instruction in the Color Zone. # #============================================================================== class Window_Base < Window #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-|COLOR ZONE|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # # To add new color follow this template: # # def COLOR_NAME; text_color(ID); end # # ID is a number from 0 to 127 and it is the place of the color in the # windowskin. # #----------------------------ADD HERE YOUR COLORS-----------------------------# def msx_color; text_color(32); end; # <- Msx's favourite color ^.^ #=-=-=-=-=-=-=-=-=-=-=-=-=-=-==--=-=-|END|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# def text_color(n) windowskin.get_pixel(64 + (n % 32) * 2, 96 + (n / 32) * 2) end end and here we have a 512 color windowskin template (needed for above script): Oh and 2,048 color windowskins are possible too (but you cannot go beyond that point without resizing the image and causing problems potentially), I will add that script and template image as well: script: #============================================================================== # ** Windowskin 2,048 Color v1.0 #============================================================================== # Author: kramlat # Release Date: 23/08/2012 => v1.0 # Based on MSX Windowskin 128 Color # Original Author: Melosx #============================================================================== # * Instructions # ----------------------------------- # Place the script under Material and above Main. # #============================================================================== # * Description # ----------------------------------- # With this script you can use a windowskin with 128 colors. # You can add new color code following the instruction in the Color Zone. # #============================================================================== class Window_Base < Window #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-|COLOR ZONE|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # # To add new color follow this template: # # def COLOR_NAME; text_color(ID); end # # ID is a number from 0 to 127 and it is the place of the color in the # windowskin. # #----------------------------ADD HERE YOUR COLORS-----------------------------# def msx_color; text_color(32); end; # <- Msx's favourite color ^.^ #=-=-=-=-=-=-=-=-=-=-=-=-=-=-==--=-=-|END|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# def text_color(n) windowskin.get_pixel(64 + (n % 64), 96 + (n / 64)) end end and the template: Just so you know, these new skin formats do not use the generic order of colors like normal skins do but a system style palette like that of 16 bit consoles so you will likely have to change the colors in the Window_Base class to make them look right. Change them to whatever you wish, or wait until I add equivilents for WS512 and WS2048 by WS32 and WS128 code. Edited July 24, 2012 by kramlat Share this post Link to post Share on other sites