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 6661
597 기타 Base Project 15 아방스 2009.02.05 3090
596 메뉴 CogWheel Style Menu Bars 6 아방스 2008.03.09 2793
595 메뉴 CogWheelBars 시스템. 13 file 할렘 2009.02.20 4406
594 전투 Crissaegrim ABS 2.0.5 최신 48 file RPGbooster 2008.10.08 8790
593 기타 Crissaegrim Farm BETA 1.0.0 10 Man... 2008.11.22 3116
592 HUD Crissaegrim HUD 2.0!! 13 Man... 2008.10.29 2874
591 Crissaegrim SBABS BETA 1.0 12 file 21stcentury 2008.10.08 2552
590 기타 Crissaegrim 농장시스템 한글화 28 file 도심 2009.12.22 3633
589 버그픽스 DerVVulfman's Tileset Reader VX Bug Fix 습작 2014.11.16 737
588 Detailed Call Script Error Mesage 3 Man... 2008.10.28 1264
587 Direction Movement Style 4 Man... 2008.10.28 1723
586 메시지 Display Flipped Picture 스크립트 11 Love♡ 2009.11.09 3608
585 장비 Disposable Ammo(또 있는 곳을 잘 읽으셔야 합니다.) 2 Man... 2008.10.29 1725
584 스킬 DQ특기풍스킬 - KGC 4 카르와푸딩의아틀리에 2009.08.19 3316
583 기타 Drop Options 1.1 by Modern Algebra 4 Alkaid 2010.09.16 1534
582 Enable Usage of Rmxp 캐릭터(?) 5 Man... 2008.10.28 2424
581 장비 Equipment Constraints 2.5b by Modern Algebra 3 Alkaid 2010.09.17 2020
580 장비 Equipment Set Bonus 6 Man... 2008.10.25 1878
579 ES Character Info 6 file RPGbooster 2008.10.08 1838
578 메시지 Etude87 Dialogue History Scene file 습작 2014.07.07 1096
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