Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Changing the window skin?
Adrien.
post Jan 2 2012, 10:51 AM
Post #1


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




How would I, in the script editor change the window skin - if I was making a script for users to use? There is the Window class with windowskin, but im not sure how to utilize that.


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Jan 2 2012, 02:13 PM
Post #2


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




The windowskin is a native property of the Window class. To set the windowskin of a window you'd use
CODE
.windowskin = Cache.system(<WINDOWSKINFILE>)


ie:

CODE
@command_window.windowskin = Cache.system("Window2")


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Adrien.
post Jan 2 2012, 02:16 PM
Post #3


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




is that people use to change the window skin of say a particular window?


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Jan 2 2012, 02:19 PM
Post #4


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




not exactly sure what you mean, but yes, you change singular windows' skins with that.


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Adrien.
post Jan 2 2012, 02:52 PM
Post #5


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




For example: Shop window skin is one window skin, status is another, text box is another, and so on. I am assuming the same way?


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Melosx
post Jan 2 2012, 04:52 PM
Post #6


Level 1
Group Icon

Group: Member
Posts: 9
Type: Scripter
RM Skill: Intermediate




for each window you add this line
self.windowskin = Cache.system("WINDOWSKINNAME")
in
def initialize
For example in Window_TitleCommand

class Window_TitleCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
select_symbol(:continue) if continue_enabled
self.openness = 0
self.windowskin = Cache.system("WindowSkinName")
open
end
Go to the top of the page
 
+Quote Post
   
Adrien.
post Jan 2 2012, 05:34 PM
Post #7


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




I was hoping it wasn't that way....I wanted to avoid that. but o well. it actually worked this time >_>

This post has been edited by Adrien.: Jan 2 2012, 05:35 PM


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Jan 3 2012, 01:00 PM
Post #8


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Closed at OP request.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 09:20 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker