collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: [VX Snippet] Change Windowskin~  (Gelesen 1748 mal)

woratana

  • Gast
[VX Snippet] Change Windowskin~
« am: März 09, 2008, 22:23:12 »
Change Windowskin
Version 1.0
by Woratana
Release Date: 10/03/2008


Introduction
This is a small snippet to change your windowskin by call script~  :wink:


Features
Version 1.0
- Easy to change you windowskin by just call script.


Script
Place it above main
Spoiler for Hiden:
#===============================================================
# ? [VX Snippet] ? Change Windowskin ? ?
#--------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Released on: 10/03/2008
#--------------------------------------------------------------
# Note: Missing features from RM2K and RMXP
=begin
?----?----?----?----? +[How to use]+ ?----?----?----?----?
Call script:
$game_system.skin = 'Windowskin File Name'
(Window Skin file must be in folder 'Graphics/System')

For Example >> $game_system.skin = 'Window'
?=====?=====?=====?=====?=====?=====?=====?=====?=====?

=end
#===============================================================

class Window_Base < Window
  alias wor_changeskin_winbase_ini initialize
  alias wor_changeskin_winbase_upd update
  
  # Change Window Skin when first call Window
  def initialize(x, y, width, height)
    wor_changeskin_winbase_ini(x, y, width, height)
    self.windowskin = Cache.system($game_system.skin)
    @winskin = $game_system.skin
  end
  
  # Change Window Skin if $game_system.skin is not same as its skin
  def update
    wor_changeskin_winbase_upd
    if @winskin != $game_system.skin
      self.windowskin = Cache.system($game_system.skin)
      @winskin = $game_system.skin
    end
  end
end
class Game_System
  attr_accessor :skin
  alias wor_changeskin_gamesys_ini initialize
  
  # Add variable $game_system.skin to store/change windowskin file name
  def initialize
    wor_changeskin_gamesys_ini
    @skin = 'Window'
  end
end


Instruction
Change your windowskin by call script:
$game_system.skin = 'Windowskin File Name'(Window Skin file must be in folder 'Graphics/System')

For Example >>
$game_system.skin = 'Window'

Author's Notes
Free for use in your non-commercial work if credit included. If your project is commercial, please contact me.

Please do not redistribute this script without permission. If you want to post it on any forum, please link to this topic.

[VX Snippet] Change Windowskin~

ERZENGEL

  • Gast
[VX Snippet] Change Windowskin~
« Antwort #1 am: März 10, 2008, 10:38:21 »
Err.. I made something like that for my game for our contest ^^ The biggest difference is I created in the module Cache a method to load windows from Graphics/Windows/ for the clear arrangement (copied from a dictionary, so maybe it's a wrong word :)). It's a small script but brings back a good feature, good work!

[VX Snippet] Change Windowskin~

Offline Rosa Canina

  • I can see... your death...
  • RPGVX-Forengott
  • *******
  • Beiträge: 2094
  • Mystic Eyes of Death Perception
[VX Snippet] Change Windowskin~
« Antwort #2 am: März 10, 2008, 13:19:19 »
This is a very nice script, although I never use more than one Windowskin in any of my games.

Thanks for it, must be quiet a hard work ;)

Ninja

(I hope you can unterstand all what I said xD)
« Letzte Änderung: März 10, 2008, 19:52:34 von Makerninja »

[VX Snippet] Change Windowskin~

Dainreth

  • Gast
[VX Snippet] Change Windowskin~
« Antwort #3 am: März 10, 2008, 18:45:41 »
Nice nice wora, as always. I missed these feature..now you bring it back, thanks for it!

[VX Snippet] Change Windowskin~

woratana

  • Gast
[VX Snippet] Change Windowskin~
« Antwort #4 am: März 11, 2008, 01:32:05 »
@Erzengel

Ah! you remind me of that contest! LOL

I want to join tho, if it's open for English game :P

-------------------------------------------------
@Makerninja

Thanks :)I understood your English.

Main purpose of this script for me is to make blinking message window >_>~

----------------------------------------------------------------
@Dainreth

Thanks a lot to support my script~ :)

 


 Bild des Monats

rooftop party

Views: 3170
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal