Kain Nobel
Member
Woohoo, everything in this post has been figured out! A big applaus to poccil for loaning his smarts to me in creating this custom component Windowskin script!
Here is a screenshot of the windowskin in action....
All I had to do to apply it to my CMS settings was....
Then in the module CMS's "MACL", I wrote method.
Finally, to apply it to my CMS windows, I set it like so...
CONCLUSION
This is a great new feature we can use when creating a CMS, credits to poccil for this feature ! :thumb:
Here is a screenshot of the windowskin in action....
I've combined...
Back = "dark_eternal"
Borders = "Royal"
Scrolls = "Royal"
Cursor = "Orange Glass"
Pause = "dark_eternal"
Arrows = "Royal"
and it created this!
http://i224.photobucket.com/albums/dd28 ... xample.png[/img]
Back = "dark_eternal"
Borders = "Royal"
Scrolls = "Royal"
Cursor = "Orange Glass"
Pause = "dark_eternal"
Arrows = "Royal"
and it created this!
http://i224.photobucket.com/albums/dd28 ... xample.png[/img]
All I had to do to apply it to my CMS settings was....
Code:
module CMS
################################################################################
#==============================================================================#
# ~** CUSTOMIZABLE CONSTANTS - BEGIN **~ #
#==============================================================================#
################################################################################
#===============================================================================
# * Default Settings used within CMS Menu Windows.
#===============================================================================
# Show faces and Map BG in menu?
Faces = true
ShowMap = true
# Default Windowskin
Windowskin = "003-Red01"
# Composit Windowskin Switch
Custom_WS = true
# Composit Windowskin Properties
Back = "dark_eternal"
Borders = "Royal"
Scrolls = "Royal"
Cursor = "Orange Glass"
Pause = "dark_eternal"
Arrows = "Royal"
Rect_Color = Color.new(204, 224, 240, 160)
# Font Information
Font_Type = "Georgia"
Font_Size = 22
# Window Information
Opacity = 200
B_Opacity = 255
Z_Offset = 600
#....etc
end
Then in the module CMS's "MACL", I wrote method.
Code:
module CMS
#-----------------------------------------------------------------------------
# * Method for applying composit/custom windowskin to CMS Menu Windows
#-----------------------------------------------------------------------------
def self.apply_windowskin
boolean = Custom_WS
if boolean
RPG::Cache.create_windowskin(Back, Borders, Scrolls, Cursor, Pause, Arrows)
else
RPG::Cache.windowskin(Windowskin) rescue RPG::Cache.windowskin("001-Blue01")
end
end
#...etc, etc...
end # Of CMS Module
Finally, to apply it to my CMS windows, I set it like so...
Code:
class Window_PlayerStats < Window_Base
def initialize
#super(0, 320, 160, 160)
super(-160, 320, 160, 160)
self.contents = Bitmap.new(width - 32, height - 32)
self.windowskin = CMS.apply_windowskin
self.opacity = CMS::Opacity
self.contents.font.name = CMS::Font_Type
self.contents.font.size = CMS::Font_Size
refresh
end
#...etc
end
CONCLUSION
This is a great new feature we can use when creating a CMS, credits to poccil for this feature ! :thumb: