Author Topic: [XP] Windowskin Creator  (Read 3069 times)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
[XP] Windowskin Creator
« on: November 24, 2012, 05:22:19 AM »
Windowskin Creator
Authors: ThallionDarkshine
Version: 1.0
Type: Options Menu
Key Term: Menu Add-on

Introduction

This script allows users to customize their own windowskins using the windowskins included in the windowskins folder. They can use parts of the existing windowskins to customize their own windowskin. Also allows them to change some font settings such as bold, italic, size, and normal_color, system_color, critical_color, etc. And once they are done creating their windowskins, they can save them.

Features

  • Allow users to create custom windowskins.
  • Allow users to recolor their windowskins.
  • Choose whether or not to use the RTP windowskins.
  • Allow users to save their windowskins.
  • Allow users to customize font properties.

Screenshots

(click to show/hide)

Demo

No demo yet.

Script

(click to show/hide)

Instructions

Just put the windowskins you want users to be able to customize from in the windowskins folder. Press F7 to bring up the windowskin customization menu.

Compatibility

No issues known.

Credits and Thanks

  • ThallionDarkshine

Author's Notes

Also, you'll need this dll for the script to work.
« Last Edit: February 11, 2013, 11:54:50 PM by ThallionDarkshine »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Windowskin Creator
« Reply #1 on: November 24, 2012, 05:36:01 AM »
You might want to try to include some sort of rescue call, not everybody will have RGSS104E. Some still have RGSS102E. Anyways, nice job on this. *moves to database*

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Windowskin Creator
« Reply #2 on: November 24, 2012, 06:02:51 AM »
Yeah, do you know if it's possible to read the game.ini file to find what dll to use?

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Windowskin Creator
« Reply #3 on: November 24, 2012, 06:11:05 AM »
Code: [Select]
    @ini = Win32API.new('kernel32', 'GetPrivateProfileStringA', 'PPPPLP', 'L')
    @library = "\0" * 256
    @ini.call('Game', 'Library', '', @library, 256, '.\\Game.ini')
    @library.delete!("\0")
    @rtp_path = Win32API.new(@library, 'RGSSGetRTPPath', 'L', 'L')
    @path_with_rtp = Win32API.new(@library, 'RGSSGetPathWithRTP', 'L', 'P')

Give credits to ForeverZer0, it's from his script. It reads the library from the ini, then creates the functions for receiving the RTPs.

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Windowskin Creator
« Reply #4 on: February 11, 2013, 11:57:35 PM »
I've been meaning to update this but I could never find the time. And at last, here's version 1.0. Users now have many options when they open the windowskin creator. They can mix-and-match parts of windowskins to create their own, recolor windowskin parts or the entire windowskin, customize font properties, or save or load any previous configuration. I also fixed a massive bug in the script that would cause errors upon saving the game.