VX 스크립트

#======================================================================
========
# � [RMVX] Custom Menu Background Effects & Opacity
#------------------------------------------------------------------------------
# Version 1.0
# by Woratana [woratana@hotmail.com]
# Release Date: 31/01/2008
#
# Exclusive for RPG RPG Revolution
#==============================================================================

module WorBG
#----------------------------------------
# SETUP MENU BACKGROUND & OPACITY HERE!
#---------------------------------------
BG_MODE = 0 # Mode of BG
BG_BLUR = true # Turn on (true)/ off (false) to make background blur
WINDOW_OPACITY = 100 # Opacity for Menu Screens
THICK_WINDOW_OPACITY = 200 # Opacity for Windows in Title/Battle/End Screens
BG_MOVE_X = 0 # Move Background in X-coordinate
BG_MOVE_Y = 0 # Move Background in Y-coordinate
BG_PICTURE = "filename" # Picture file name when you use custom BG (mode 2)
end

class Scene_Base

def create_menu_background
@menuback_sprite = Plane.new
case WorBG::BG_MODE
when 0 # Default BG
@menuback_sprite.bitmap = $game_temp.background_bitmap
@menuback_sprite.color.set(16, 16, 16, 128)

when 1 # Brighter Default BG
@menuback_sprite.bitmap = $game_temp.background_bitmap

when 2 # Custom BG
@menuback_sprite.bitmap = Cache.picture(WorBG::BG_PICTURE)

else
@menuback_sprite.bitmap = $game_temp.background_bitmap
@menuback_sprite.color.set(16, 16, 16, 128)
end
@menuback_sprite.bitmap.blur if WorBG::BG_BLUR == true
update_menu_background
end

alias wor_scebase_upd update
def update
@menuback_sprite.ox += WorBG::BG_MOVE_X if @menuback_sprite != nil and WorBG::BG_MOVE_X != 0
@menuback_sprite.oy += WorBG::BG_MOVE_Y if @menuback_sprite != nil and WorBG::BG_MOVE_Y != 0
end

def snapshot_for_background
$game_temp.background_bitmap.dispose
$game_temp.background_bitmap = Graphics.snap_to_bitmap
end
end # Class End

class Window_Base

alias wor_winbase_ini initialize
def initialize(x, y, width, height)
wor_winbase_ini(x, y, width, height)
if $scene.is_a?(Scene_Title) or $scene.is_a?(Scene_Battle) or $scene.is_a?(Scene_End)
self.back_opacity = WorBG::THICK_WINDOW_OPACITY

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
77 전투 VX SRPG 스크립트를 수정해봤습니다(8) - 누적수정 30 아이미르 2011.09.09 3913
76 기타 [XP / VX 공용] rand() 함수 확장 스크립트 4 허걱 2011.09.13 2363
75 파티 파티원이 따라다니는 스크립트 11 file 놀러 2011.09.15 3988
74 메시지 HG_POP_TEXT (맵 화면에 문자 표시) 4 file 허걱 2011.09.16 3589
73 맵/타일 Roguelike Random Dungeon Generator 2.0 by cozziekuns 4 file Alkaid 2011.09.29 2560
72 스킬 Simple Sort Inventory 2.0 by cozziekuns 1 file Alkaid 2011.09.29 2350
71 장비 카드 슬롯 장비 스크립트 18 file 아이미르 2011.10.13 4131
70 전투 VX SRPG3d(한글번역) 8 file 아이미르 2011.10.15 5033
69 스킬 스킬, 아이템 적아 구분 없이 쓰기 10 file EuclidE 2011.10.16 2900
68 전투 VX SRPG3d 수정본(1) 12 아이미르 2011.10.19 4617
67 기타 Kylock1.2+(RMDude-Kylock1.5) Time System Script 4 file communnn 2011.10.20 2595
66 스킬 Yanfly Engine RD - Display Skill Query (스킬 상세 정보) 8 file communnn 2011.10.24 3405
65 스킬 Yanfly Engine RD - Custom Dmg Formulas (커스텀 데미지, 관계도) 6 file communnn 2011.10.25 3377
64 전투 Animated Battlers VX 3.5 by DerVVulfman 2 Alkaid 2011.11.02 3098
63 기타 아이디를 띄우기 20 12345678 2011.11.07 4627
62 변수/스위치 Etude87_Variables_VX 1 file 습작 2011.11.26 2608
61 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4229
60 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3554
59 기타 화면 해상도(640 X 480) 스크립트 6 file 쿠쿠밥솥 2012.01.10 3972
58 저장 Neo Save System VI by Helladen 2 Alkaid 2012.01.15 2886
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32