VX 스크립트

Khai's Window Helper 1.4
Version
: 1.4
Author: Khai
Release Date: 7/21/2008
Updated: 7/30/2008

■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Khai's Window Helper 1.4
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Features
- Background Customization
- Text support
- Enable/Disable icon names
- Simplified items
- Individual helper window frame
- Disable/Enable skills with 0 MP from displaying
[See screens below for visual information]

Release: 7/21/2008
Last Update: 7/30/2008

Version History
1.0 - Initial release
1.1 - Minor Fixes - 7/22/08
1.2 - Added gradient bars, background bar, and Object name draw idea by pim321 + minor fixes - 7/23/08
1.3 - Added Simple Icon. Simple Icon removes your item/object names located in the skill/item/equip windows. - 7/25/08
Simple Icon on will display : [itemICON : Item Quantity]
Simple Icon off will display : [itemICON, Item name : Item Quantity]
- Bug fixes relating to Font disable turning off other functions
- Fixed extra item info for Shop Process
- Fixed Coding
1.4 - Added custom helper frame option - 7/30/08
- Bug fixes.
- Smaller

Should be compatable with most if not all scripts.
Setup -> Place above Main
Feel free to use Credits to Khai
시작
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Khai's Window Helper 1.4
# For suggestion/comment/updates visit the following link
#
http://www.rpgrevolution.com/forums/?showtopic=16941
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
module KCWH
# Config BEGIN
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
K_Equip = true # Extra Info [Equip_Scene]
K_Skill = true # Extra Info [Skill_Scene]
K_Item = true # Extra Info [Item_Scene]
K_Item_S = true # Extra Info [Shop_Scene]
K_SimpleItem = true # Simplified Icons
K_Sitem_col = 7 # <=7 if your window width is 544x416
K_MP_ON = true # Disable 0 MP Display
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Help Frame SETTING/TEXT ALIGNMENT
K_WH_ON = true # Help ON/OFF
Frame_s = false # Custom Help window frame ON/OFF
K_frame = "Window2" # Custom Help window frame FILE NAME
K_Opacity = 255 # Help window frame opacity (0-255)
K_WH_X = 544 # Help window frame width X (Default: 544)
K_WH_Y = 32 # Help window frame height Y (Default: 32)
K_WH_Z = 0 # Help window frame Z
K_POSX = 0 # Help window X
K_POSY = 0 # Help window X
K_ALIGN = 0 # Help text alignment [0 = left, 1 = center, 2 = right]
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Help Backdrop SETTING/LOCATION/STYLE
K_WH = true # Help Backdrop ON/OFF
K_WH_BG = 2 # 0 = default, 1 = image 2 = gradient
# ■■■■■■■ ▼
K_WH_BX = 0 # Background Bar X-Displacement Default 0
K_WH_BY = 0 # Background Bar Y-Displacement Default 0 (12 For style)
# ▼ CONFIGURE for setting = 0 ▼ ■■■
K_WHC = Color.new(255, 0, 0, 255) # Helper backdrop color
# ▼ CONFIGURE for setting = 1 ▼ ■■■
BG = "" # Background Image File
# ▼ CONFIGURE for setting = 2 ▼ ■■■
K_GBC1 = 15 # Left Gradient Color
K_GBC2 = 40 # Right Gradient Color
BG_W = 544 # Width of Gradient Backdrop
BG_H = 32 # Height of Gradient Backdrop
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# This handles the Helper's Font Color
K_BGC = false # TEXT Color, Config below if = true, else leave alone
K_R = 255 # Red (0-255) 255 being pure red 0 = no red
K_G = 0 # Blue (0-255) 255 being pure blue 0 = no blue
K_B = 0 # Green (0-255) 255 being pure green 0 = no green
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Font Setup ▼
Enable_Text = true # Simple Font ON/OFF
Font_Name = 'Arial' # Font Name [Arial,Constantia]
Font_Size = 14 # Font Size
Font_Bold = true # Font Bold
Font_Italic = false # Font Italic
Font_Shadow = true # Font Shadow
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Config END
end
class Window_Help < Window_Base
def initialize
super(KCWH::K_POSX, KCWH::K_POSY, KCWH::K_WH_X, WLH + KCWH::K_WH_Y)
self.opacity = KCWH::K_Opacity
self.visible = KCWH::K_WH_ON
if KCWH::Frame_s
self.windowskin = Cache.system(KCWH::K_frame)
end
end
def set_text(text, align = KCWH::K_ALIGN)
if text != @text or align != @align
self.contents.clear
self.z = KCWH::K_WH_Z
def b_color1
return text_color(KCWH::K_GBC1)
end
def b_color2
return text_color(KCWH::K_GBC2)
end
gc1 = b_color1
gc2 = b_color2
if KCWH::K_BGC
self.contents.font.color.set(KCWH::K_R,KCWH::K_G,KCWH::K_B)
else
self.contents.font.color = normal_color
end
if KCWH::K_WH
if KCWH::K_WH_BG == 0
self.contents.fill_rect(KCWH::K_WH_BX, y=KCWH::K_WH_BY, contents.width, WLH - y, KCWH::K_WHC )
elsif KCWH::K_WH_BG == 1
bg_bitmap = Cache.system(KCWH::BG)
self.contents.blt(KCWH::K_WH_BX, KCWH::K_WH_BY, bg_bitmap, bg_bitmap.rect)
elsif KCWH::K_WH_BG == 2
self.contents.gradient_fill_rect(KCWH::K_WH_BX, KCWH::K_WH_BY, KCWH::BG_W, KCWH::BG_H, gc1, gc2)
end
end
@text = text
@align = align
self.contents.draw_text(20, 0, self.width - 72, WLH, text, align)
end
end
end
class Window_Item < Window_Selectable
if KCWH::K_SimpleItem
def initialize(x, y, width, height)
super(x, y, width, height)
@column_max = KCWH::K_Sitem_col
self.index = 0
refresh
end
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
item = @data[index]
if item != nil
number = $game_party.item_number(item)
enabled = enable?(item)
rect.width -= 4
draw_icon(item.icon_index, rect.x, rect.y, enabled)
self.contents.draw_text(rect, sprintf(":%2d", number), 2)
end
end
end
def update_help
if KCWH::K_Item
@help_window.set_text(item == nil ? "" : item.name+": "+item.description)
else
@help_window.set_text(item == nil ? "" : item.description)
end
end
end
if KCWH::Enable_Text
class Font
@@default_name = [KCWH::Font_Name]
@@default_size = KCWH::Font_Size
@@default_bold = KCWH::Font_Bold
@@default_italic = KCWH::Font_Italic
@@default_shadow = KCWH::Font_Shadow
end
end
if KCWH::K_Equip
class Window_Equip < Window_Selectable
def update_help
@help_window.set_text(item == nil ? "" : item.name+": "+item.description)
end
end
end
if KCWH::K_Skill
class Window_Skill < Window_Selectable
def update_help
@help_window.set_text(skill == nil ? "" : skill.name+": "+skill.description)
end
end
end
if KCWH::K_Item_S
class Window_ShopBuy < Window_Selectable
def update_help
@help_window.set_text(item == nil ? "" : item.name+": "+item.description)
end
end
end
if KCWH::K_MP_ON
class Window_Skill < Window_Selectable
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
skill = @data[index]
if skill != nil
rect.width -= 4
enabled = @actor.skill_can_use?(skill)
draw_item_name(skill, rect.x, rect.y, enabled)
if @data[index].mp_cost != 0
self.contents.draw_text(rect, @actor.calc_mp_cost(skill), 2)
end
end
end
end
end
스크린샷


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
637 스킬 훔치기 스킬을 만드는 스크립트! 5 우켈킁 2011.03.31 2390
636 기타 회피,명중,크리 스테이트를 작성하는 스크립트 9 카르와푸딩의아틀리에 2009.06.30 2394
635 기타 확장 에러 메시지 13 file 허걱 2009.08.17 2497
634 메뉴 확장 스테이터스 화면 - KGC 23 file 카르와푸딩의아틀리에 2009.08.19 5057
633 기타 화폐단위 구분해 주는 스크립트 38 file 허걱 2010.04.13 3652
632 이동 및 탈것 화면의 부드러운 스크롤 스크립트 32 카르와푸딩의아틀리에 2009.07.17 3817
631 기타 화면에 그림 그리는 스크립트 21 file 강진수 2010.02.27 2962
630 기타 화면 확대 스크립트 12 file 에돌이 2011.07.22 3061
629 기타 화면 해상도(640 X 480) 스크립트 6 file 쿠쿠밥솥 2012.01.10 3972
628 아이템 현재있는 파티원 선택 레벨업 아이템 만들기 1 file 싸패 2016.06.06 713
627 헬프윈도우 확장 13 file RPGbooster 2008.10.08 2872
626 메뉴 헬프 윈도우 중앙표시 스크립트 11 file 양념통닼 2008.06.10 3348
625 키입력 해외 제작자 He Who Jets님의 마우스 스크립트(mouse system) 1 file 보자기군 2014.09.30 1261
624 기타 해상도 변경 스크립트 11 카리스 2011.07.19 2723
623 스킬 합성샾 스크립트 ^^ [동영상 포함] 6 file 아방스 2008.09.23 6038
622 키입력 한글입력기(펌) 수정 10 전설의달빛조각사 2011.04.03 2674
621 이름입력 한글로 이름 입력하는 스크립트입니다. 55 file 헤르코스 2009.03.18 6662
620 이름입력 한글 이름 입력 스크립트입니다.^^ 14 레시온 2008.03.18 4383
619 액터 한계돌파(렙9999) 18 작은샛별 2010.03.07 3273
618 이동 및 탈것 피티원이 따라다니는 스크립트 38 file 아방스 2009.02.05 5024
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