VX 스크립트

class Window_Base
def draw_icon2(icon_file, x, y, enabled = true)
bitmap = Cache.load_bitmap("Graphics/Icons/", icon_file)
rect = Rect.new(0, 0, 24, 24)
self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128)
end

def draw_item_name(item, x, y, enabled = true)
if item != nil
if item.get_icon
draw_icon2(item.get_icon.to_s, x, y, enabled)
else
draw_icon(item.icon_index, x, y, enabled)
end
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x + 24, y, 172, WLH, item.name)
end
end
end

module Item
ICON = /<ICON*(.*)>/i
end

class RPG::BaseItem
def get_icon
self.note.split(/[rn]+/).each { |line|
if line =~ Item::ICON
a = line.split(/ /)[1]
d = ""
while ((c = a.slice!(/./m)) != nil)
d += c if c != ">"
end
return d
end
}
return nil
end

endin the meno of skill, item, armor or weapon, write:

<ICON filename>

create a new folder and call it "Icons"
put the icon files in the folder

if nothing is written in the memo, then the original icon set from the iconset is used
Comment '2'
  • ?
    Man... 2008.10.27 21:43
    여기다가 무슨 내용인지 댓글 써주세요.
    물론 해석하고..
    그럼 구해 드릴게요....
  • ?
    21stcentury 2008.10.27 22:28
    이거 뭐야...아이템 아이콘을 바꾸는 거네...ㄷㄷ

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5408
17 버그픽스 애니메이션 표시 위치 수정 (Fix Animation Position) 2 file AltusZeon 2014.02.12 1289
16 기타 장애물을 피하고 다가오게 하는 스크립트 5 file 박력남 2014.02.25 1877
15 버그픽스 Graphical Object Global Reference VX by Mithran Alkaid 2014.03.03 1027
14 타이틀/게임오버 Title Skip System : 타이틀 스킵 file 허걱 2014.03.19 1510
13 이동 및 탈것 이동 기능 파워업 (장애물 등을 피하는 이동방식) 8 file 파노 2014.04.27 1723
12 메뉴 MOG - Scroll Bar for VX file 습작 2014.07.06 1115
11 메시지 Etude87 Dialogue History Scene file 습작 2014.07.07 1070
10 키입력 해외 제작자 He Who Jets님의 마우스 스크립트(mouse system) 1 file 보자기군 2014.09.30 1261
9 메뉴 Etude87_Ace_Style_Formation_Change ver.1.01 습작 2014.10.05 758
8 장비 방어구 착용시 최대HP, MP증가 스크립트(턴알) 3 file 기관차 2014.11.06 1222
7 버그픽스 DerVVulfman's Tileset Reader VX Bug Fix 습작 2014.11.16 701
6 기타 Gamepad Extender VX 습작 2015.01.02 672
5 메뉴 Etude87's Menu Editor for VX 25 습작 2015.01.14 1461
4 메뉴 KGC - 커스텀 메뉴 커멘드 (번역) 1 듀란테 2015.07.27 1080
3 스킬 [RPG VX] 턴알 스킬 쿨타임 스크립트! (잘돌아감) 5 듀란테 2015.08.18 1671
2 저장 세이브 파일 개수 16개로 늘리기 (기본 세이브 엔진용) 1 file Bunny_Boy 2015.09.07 817
1 아이템 현재있는 파티원 선택 레벨업 아이템 만들기 1 file 싸패 2016.06.06 713
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