Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #
- # ☆ $D13x - Window Skins
- # -- Author : Dekita
- # -- Version : 1.0
- # -- Level : Easy / Normal
- # -- Requires : N/A
- # -- Engine : RPG Maker VX Ace.
- #
- #===============================================================================
- # ☆ Import
- #-------------------------------------------------------------------------------
- $D13x={}if$D13x==nil
- $D13x[:Window_Skins]=true
- #===============================================================================
- # ☆ Updates
- #-------------------------------------------------------------------------------
- # D /M /Y
- # 26/o3/2o13 - Started, Finished,
- #
- #===============================================================================
- # ☆ Introduction
- #-------------------------------------------------------------------------------
- # This script allows each window to have its own unique windowskin, hue
- # and opacity.
- #
- #===============================================================================
- # ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- #===============================================================================
- # 1. You MUST give credit to "Dekita" !!
- # 2. You are NOT allowed to repost this script.(or modified versions)
- # 3. You are NOT allowed to convert this script.
- # 4. You are NOT allowed to use this script for Commercial games.
- # 5. ENJOY!
- #
- # "FINE PRINT"
- # By using this script you hereby agree to the above terms and conditions,
- # if any violation of the above terms occurs "legal action" may be taken.
- # Not understanding the above terms and conditions does NOT mean that
- # they do not apply to you.
- # If you wish to discuss the terms and conditions in further detail you can
- # contact me at http://dekitarpg.wordpress.com/
- #
- #===============================================================================
- # ☆ Instructions
- #-------------------------------------------------------------------------------
- # Place Below " ▼ Materials " and Above " ▼ Main " in your script editor.
- #
- #===============================================================================
- # ☆ HELP
- #-------------------------------------------------------------------------------
- # Remember to put your windowskins into the new folder (defined below)
- #
- #===============================================================================
- module WindowSkins
- #===============================================================================
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- # ☆ General Settings
- #--------------------------------------------------------------------------
- # This is where you set the folder, that windowskins should be palced in.
- Folder = "Graphics/$D13x Windows/"
- #--------------------------------------------------------------------------
- Skins={ # << KEEP !!
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- # ☆ Window Settings
- #--------------------------------------------------------------------------
- # This is where you set the windowskin for each window.
- # Simply put a # at the start of lines you want to keep the default
- # :window type => ["Skin Name" , hue, opacity]
- #--------------------------------------------------------------------------
- :default => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Menu Windows
- :menu_status => ["PWI_Style_II", 0, 225],
- :menu_command => ["PWI_Style_II", 0, 225],
- :menu_actor => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Item Windows
- :item_category => ["PWI_Style_II", 0, 225],
- :item_list => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Skill Windows
- :skill_command => ["PWI_Style_II", 0, 225],
- :skill_status => ["PWI_Style_II", 0, 225],
- :skill_list => ["PWI_Style_II", 0, 225],
- :skill_status_II => ["PWI_Style_II", 0, 225],# << Requires my skill scene
- :skill_list_II => ["PWI_Style_II", 0, 225],# << Requires my skill scene
- #--------------------------------------------------------------------------
- # Equip Windows
- :equip_status => ["PWI_Style_II", 0, 225],
- :equip_command => ["PWI_Style_II", 0, 225],# << Requires my skill scene
- :equip_slot => ["PWI_Style_II", 0, 225],
- :equip_item => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Status windows
- :window_status => ["PWI_Style_II", 0, 225],
- :status_command => ["PWI_Style_II", 0, 225],# << Requires my status scene
- :window_status_II => ["PWI_Style_II", 0, 225],# << Requires my status scene
- #--------------------------------------------------------------------------
- # Save/Load Windows
- :save_help_window => ["PWI_Style_White", 0, 255],
- :window_save_file => ["PWI_Style_White", 0, 255],
- #--------------------------------------------------------------------------
- # Shop Windows
- :window_shop_command => ["PWI_Style_II", 0, 225],
- :window_shop_buy => ["PWI_Style_II", 0, 225],
- :window_shop_sell => ["PWI_Style_II", 0, 225],
- :window_shop_number => ["PWI_Style_II", 0, 225],
- :window_shop_status => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Name windows
- :window_name_edit => ["PWI_Style_II", 0, 225],
- :window_name_input => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Window Choice
- :window_choice_list => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Number Input
- :window_number_input => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Key Item
- :window_key_item => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Message Windows
- :window_message => ["PWI_Style_II", 0, 225],
- :window_scroll_text => ["PWI_Style_II", 0, 0],
- #--------------------------------------------------------------------------
- # Map Name Window
- :window_map_name => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Battle Windows
- :window_battle_log => ["PWI_Style_II", 0, 0],
- :window_party_command => ["PWI_Style_II", 0, 225],
- :window_actor_command => ["PWI_Style_II", 0, 225],
- :window_battle_status => ["PWI_Style_II", 0, 225],
- :window_battle_actor => ["PWI_Style_II", 0, 225],
- :window_battle_enemy => ["PWI_Style_II", 0, 225],
- :window_battle_skill => ["PWI_Style_II", 0, 225],
- :window_battle_item => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Title Window
- :window_title_command => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- # Game End Window
- :window_game_end => ["PWI_Style_II", 0, 0],
- #--------------------------------------------------------------------------
- # Debug Windows
- :window_debug_left => ["PWI_Style_II", 0, 225],
- :window_debug_right => ["PWI_Style_II", 0, 225],
- #--------------------------------------------------------------------------
- }# << End Skins, Keep ! #####################
- # CUSTOMISATION END #
- end #####################
- #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
- # #
- # http://dekitarpg.wordpress.com/ #
- # #
- #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
- #===============================================================================#
- # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
- # YES?\.\. #
- # OMG, REALLY? \| #
- # WELL SLAP MY FACE AND CALL ME A DRAGONITE.\..\.. #
- # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
- #===============================================================================#
- module Cache
- #===============================================================================
- #--------------------------------------------------------------------------
- # Get Windowskin
- #--------------------------------------------------------------------------
- def self.skin(filename, hue=0)
- load_bitmap(WindowSkins::Folder, filename, hue)
- end
- end
- #===============================================================================
- class Window_Base < Window
- #===============================================================================
- #--------------------------------------------------------------------------
- # Alias List
- #--------------------------------------------------------------------------
- alias :initskins :initialize
- #--------------------------------------------------------------------------
- # Object Initialization
- #--------------------------------------------------------------------------
- def initialize(x, y, width, height)
- initskins(x, y, width, height)
- set_the_skin
- do_skin_change
- end
- #--------------------------------------------------------------------------
- # Set Windowskin
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:default]
- end
- #--------------------------------------------------------------------------
- # Change WindowSkin From Default
- #--------------------------------------------------------------------------
- def do_skin_change
- return unless @skin
- self.windowskin = Cache.skin(@skin[0], @skin[1])
- self.opacity = @skin[2] if @skin[2] != nil
- end
- end
- #===============================================================================
- class Window_Help < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- type = :default
- type = :save_help_window if SceneManager.scene_is?(Scene_Load)
- type = :save_help_window if SceneManager.scene_is?(Scene_Save)
- @skin = WindowSkins::Skins[type]
- end
- end
- #===============================================================================
- class Window_MenuStatus < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:menu_status]
- end
- end
- #===============================================================================
- class Window_MenuCommand < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:menu_command]
- end
- end
- #===============================================================================
- class Window_MenuActor < Window_MenuStatus
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:menu_actor]
- end
- end
- #===============================================================================
- class Window_ItemCategory < Window_HorzCommand
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:item_category]
- end
- end
- #===============================================================================
- class Window_ItemList < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:item_list]
- end
- end
- #===============================================================================
- class Window_SkillCommand < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:skill_command]
- end
- end
- #===============================================================================
- class Window_SkillStatus < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:skill_status]
- end
- end
- #===============================================================================
- class Window_SkillList < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:skill_list]
- end
- end
- #==============================================================================
- class Deki_SkillList < Window_SkillList
- #==============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:skill_list_II]
- end
- end
- #==============================================================================
- class Window_DekiSkillStatus < Window_Selectable
- #==============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:skill_status_II]
- end
- end
- #===============================================================================
- class Window_EquipStatus < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:equip_status]
- end
- end
- #===============================================================================
- class Window_EquipCommand < Window_HorzCommand
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:equip_command]
- end
- end
- #===============================================================================
- class Window_EquipSlot < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:equip_slot]
- end
- end
- #===============================================================================
- class Window_EquipItem < Window_ItemList
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:equip_item]
- end
- end
- #===============================================================================
- class Window_Status < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_status]
- end
- end
- #===============================================================================
- class Window_StatusCommand < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:status_command]
- end
- end
- #===============================================================================
- class Window_Status_II < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_status_II]
- end
- end
- #===============================================================================
- class Window_SaveFile < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_save_file]
- end
- end
- #===============================================================================
- class Window_ShopCommand < Window_HorzCommand
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_shop_command]
- end
- end
- #===============================================================================
- class Window_ShopBuy < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_shop_buy]
- end
- end
- #===============================================================================
- class Window_ShopSell < Window_ItemList
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_shop_sell]
- end
- end
- #===============================================================================
- class Window_ShopNumber < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_shop_number]
- end
- end
- #===============================================================================
- class Window_ShopStatus < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_shop_status]
- end
- end
- #===============================================================================
- class Window_NameEdit < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_name_edit]
- end
- end
- #===============================================================================
- class Window_NameInput < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_name_input]
- end
- end
- #===============================================================================
- class Window_ChoiceList < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_choice_list]
- end
- end
- #===============================================================================
- class Window_NumberInput < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_number_input]
- end
- end
- #===============================================================================
- class Window_KeyItem < Window_ItemList
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_key_item]
- end
- end
- #===============================================================================
- class Window_Message < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_message]
- end
- end
- #===============================================================================
- class Window_ScrollText < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_scroll_text]
- end
- end
- #===============================================================================
- class Window_MapName < Window_Base
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_map_name]
- end
- end
- #===============================================================================
- class Window_BattleLog < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_battle_log]
- end
- end
- #===============================================================================
- class Window_PartyCommand < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_party_command]
- end
- end
- #===============================================================================
- class Window_ActorCommand < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_actor_command]
- end
- end
- #===============================================================================
- class Window_BattleStatus < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_battle_status]
- end
- end
- #===============================================================================
- class Window_BattleActor < Window_BattleStatus
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_battle_actor]
- end
- end
- #===============================================================================
- class Window_BattleEnemy < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_battle_enemy]
- end
- end
- #===============================================================================
- class Window_BattleSkill < Window_SkillList
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_battle_skill]
- end
- end
- #===============================================================================
- class Window_BattleItem < Window_ItemList
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_battle_item]
- end
- end
- #===============================================================================
- class Window_TitleCommand < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_title_command]
- end
- end
- #===============================================================================
- class Window_GameEnd < Window_Command
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_game_end]
- end
- end
- #===============================================================================
- class Window_DebugLeft < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_debug_left]
- end
- end
- #===============================================================================
- class Window_DebugRight < Window_Selectable
- #===============================================================================
- #--------------------------------------------------------------------------
- # Set Windowskin (overwrite from super)
- #--------------------------------------------------------------------------
- def set_the_skin
- @skin = WindowSkins::Skins[:window_debug_right]
- end
- end
- #==============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #==============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement