Войти на сайт
×
ТЕМА: Vx Ace - Два Виндовскина
Vx Ace - Два Виндовскина 8 года 5 мес. назад #92437
|
Снова ситуация: есть диалоги и есть игровое меню. Можно ли сделать так, чтобы во внутреигровом меню использовался один windowskin, а в диалогах - другой? Или придётся чем-то поступиться?
|
Администратор запретил публиковать записи гостям.
|
Vx Ace - Два Виндовскина 8 года 5 мес. назад #92438
|
Конечно можно. Я даже писал для этого специальный скрипт. Где-то в глубинах форума можно найти подобную тему.
Как приду домой скину... |
Администратор запретил публиковать записи гостям.
|
Vx Ace - Два Виндовскина 8 года 5 мес. назад #92439
|
Можно юзать Message Background от Галва.
|
Администратор запретил публиковать записи гостям.
|
Vx Ace - Два Виндовскина 8 года 5 мес. назад #92443
|
Вот этот скрипт решит твою проблему. Прикреплённую папку кинь в Graphics.
Скрипт прост в настройке и имеет возможность менять местоположение и имя папки с window skin. Скачать ВНИМАНИЕ: Спойлер! [ Нажмите, чтобы развернуть ][ Нажмите, чтобы скрыть ] if true # << Make true to use this script, false to disable.
#===============================================================================
#
# ☆ $D13x - Window Skins
# -- Author : Dekita
# -- Version : 1.1
# -- Level : Easy / Normal
# -- Requires : N/A
# -- Engine : RPG Maker VX Ace.
#
#===============================================================================
# ☆ Import
#-------------------------------------------------------------------------------
$D13x={}if$D13x==nil
$D13x[:Window_Skins]=true
#===============================================================================
# ☆ Updates
#-------------------------------------------------------------------------------
# D /M /Y
# o1/o4/2o13 - Added More Window Cutomisation,
# 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 placed 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_Whi", 0, 225],
#--------------------------------------------------------------------------
# Window Choice
:window_choice_list => ["PWI_Style_Whi", 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)
type = :equip_help_window if SceneManager.scene_is?(Scene_Equip)
type = :item_help_window if SceneManager.scene_is?(Scene_Item)
@skin = WindowSkins::Skins[type]
end
end
#===============================================================================
class Window_Gold < Window_Base
#===============================================================================
#--------------------------------------------------------------------------
# Set Windowskin (overwrite from super)
#--------------------------------------------------------------------------
def set_the_skin
@skin = WindowSkins::Skins[:gold_window]
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/ #
#==============================================================================#
end |
Последнее редактирование: 8 года 5 мес. назад от Kouta555.
Администратор запретил публиковать записи гостям.
|
Модераторы: NeKotZima
Время создания страницы: 0.283 секунд