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 6661
577 맵/타일 월드맵 스크립트 49 아방스 2008.09.07 6153
576 풍선대화 메세지시스템 32 file RPGbooster 2008.10.11 6143
575 기타 게임시간&밤낮 54 file 허걱 2009.02.14 6137
574 몬스터 도감 [수정] 68 file RPGbooster 2008.10.08 6118
573 퀘스트 디아블로 스타일 퀘스트 시스템(번역) 38 file 훈덕 2009.02.03 6087
572 기타 캐릭터 소개화면 16 file 좀비사냥꾼 2009.03.29 6082
571 스킬 합성샾 스크립트 ^^ [동영상 포함] 6 file 아방스 2008.09.23 6061
570 전투 포켓몬 스크립트 한글화 완료 26 file 서울냥이 2010.10.11 6048
569 파티 대규모파티 KGC스크립 50 file RPGbooster 2008.10.08 6042
568 메시지 대화창효과 8 078656577er 2009.10.20 6030
567 기타 작은 게이지바 표시 스크립트 44 file 허걱 2009.02.05 6002
566 전투 ActBattle 전투 스크립트 13 file 사람이라면? 2010.08.16 5994
565 메뉴 창 크기 변경 스크립트 6 file Incubus 2008.05.25 5963
564 기타 빛 이펙트 71 file DEVIL<Li Patanis Roni Kraudus> 2008.06.06 5884
563 전투 지형에 따른 전투배경화면 표시 스크립트!! 30 file 레오 2008.09.17 5878
562 체력 게이지바 스크립트 30 아방스 2008.09.01 5850
561 액알 스크립트 33 츠키아 2008.08.11 5832
560 이동 및 탈것 3D 던젼 스크립트 38 아방스 2010.12.06 5806
559 스킬 무기 업그레이드 시스템 27 file 담먹캐 2009.11.01 5791
558 타이틀/게임오버 RPG VX - 타이틀 스크린 스크립트 23 아방스 2008.01.24 5773
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32