RPGXP スクリプト
2013.09.24 07:28

메뉴에 얼굴 그래픽 표시

閲覧数 1045 推奨数 0 コメント 0
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
【사용 방법】   얼굴 그패픽으로 사용하고 싶은 사진을 Graphic/Picture에
  캐릭터명과 같은 이름의 파일로 준비 합니다.
  사진의 사이즈는 96×96 입니다.

# 긽긦깄?됪뽋?딁긐깋긲귻긞긏?렑 -둂-??by Claimh 
# 럊뾭뺴? 
#  ?긡깏귺깑긹?긚?Graphic/Picture궸 
#  긌긿깋긏?궴벏궣뼹멟궻긲?귽깑귩귽깛??긣 
#?긖귽긛궼96?96 

class Window_Base < Window 
  #-------------------------------------------------------------------------- 
  # 걶 긐깋긲귻긞긏궻?됪 
  #     actor : 귺긏?? 
  #     x     : ?됪먩 X 띆뷭 
  #     y     : ?됪먩 Y 띆뷭 
  #-------------------------------------------------------------------------- 
  def draw_actor_face_graphic(actor, x, y) 
    bitmap = RPG::Cache.picture(actor.name) 
    cw = bitmap.width 
    ch = bitmap.height 
    src_rect = Rect.new(0, 0, cw, ch) 
    self.contents.blt(x - cw/2+20, y - ch + 15, bitmap, src_rect) 
  end 
end 


class Window_MenuStatus < Window_Selectable 
  #-------------------------------------------------------------------------- 
  # 걶 깏긲깒긞긘깄 
  #-------------------------------------------------------------------------- 
  def refresh 
    self.contents.clear 
    @item_max = $game_party.actors.size 
    for i in 0...$game_party.actors.size 
      x = 64 
      y = i * 116 
      actor = $game_party.actors[i] 
      if (i % 2) == 0 
        draw_actor_face_graphic(actor, x - 40, y + 80) 
        draw_actor_name(actor, x+50, y) 
        draw_actor_class(actor, x + 194, y) 
        draw_actor_level(actor, x+50, y + 32) 
        draw_actor_state(actor, x + 130, y + 32) 
        draw_actor_exp(actor, x+50, y + 64) 
        draw_actor_hp(actor, x + 236, y + 32) 
        draw_actor_sp(actor, x + 236, y + 64) 
      else 
        draw_actor_face_graphic(actor, x + 310, y + 80) 
        draw_actor_name(actor, x-60, y) 
        draw_actor_class(actor, x +84, y) 
        draw_actor_level(actor, x-60, y + 32) 
        draw_actor_state(actor, x + 30, y + 32) 
        draw_actor_exp(actor, x-60, y + 64) 
        draw_actor_hp(actor, x +136, y + 32) 
        draw_actor_sp(actor, x +136, y + 64) 
      end 
    end 
  end 
end 
 
출처: 게임공작소
?

List of Articles
番号 カテゴリ タイトル 投稿者 日付 閲覧数 推奨数
160 RPGXP スクリプト 한글조합입력기(영어가능) file 조규진1 2019.11.10 1196 0
159 RPGXP スクリプト RPG XP Xas액알 1 file 심심치 2018.10.30 1317 0
158 RPGXP スクリプト Font Setup file 운님 2016.07.22 1772 0
157 RPGXP スクリプト 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전) 1 부초 2016.02.22 2174 0
156 RPGXP スクリプト RPGXP ATB전투 시스템 예제(스크립트는 예제 안에 포함) 3 MagNesium 2015.11.17 1005 0
155 RPGXP スクリプト 스테이터스,보수,골드,플레임 타임 삭제 rpgmakingbot 2015.06.02 991 0
154 RPGXP スクリプト 헤드 업 디스플레이 스크립트 3  운 2015.01.30 1089 0
153 RPGXP スクリプト 컬러 비트맵 타이틀 스크립트 3  운 2015.01.20 1041 1
152 RPGXP スクリプト 로고 스크립트 1  운 2014.12.10 1392 1
151 RPGXP スクリプト 타이틀 로딩 스크립트  운 2014.12.07 1298 0
150 RPGXP スクリプト 타이틀 스크립트 3  운 2014.12.05 1260 0
149 RPGXP スクリプト 액알 스크립트 4 커비♥ 2014.11.23 1653 1
148 RPGXP スクリプト 공포게임에 장비착용메뉴 3  운 2014.08.24 1666 0
147 RPGXP スクリプト 얼굴표시/문장을 한글자씩 나타내주는 스크립트 (출처-히페리온) 4 시르카 2014.06.22 1409 0
146 RPGXP スクリプト 횡스크롤 점프 [버튼허용스위치추가] 3  운 2014.06.01 1854 0
145 RPGXP スクリプト 말풍선 메세지 스크립트 2 천둥번들 2014.02.24 2042 0
144 RPGXP スクリプト 스텟찍기스크립트 12 천둥번들 2014.02.22 2060 3
143 RPGXP スクリプト 달리기스크립트 4 천둥번들 2014.02.22 2514 2
142 RPGXP スクリプト 8방향 이동스크립트 5 천둥번들 2014.02.22 1970 6
141 RPGXP スクリプト AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta 3  운 2014.01.21 2191 1
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8