XP 스크립트

#==============================================================================
# 걽 CUSTOM
#==============================================================================

module PLAN_SCREEN_XY
  VISIBLE    = true            # 궞궻긚긏깏긵긣귩럊뾭궥귡궔궵궎궔
                                # (true:궥귡, false:궢궶궋)
  WIN_X = 32                    # 긂귻깛긤긂궻 X 띆뷭
  WIN_Y = 32                    # 긂귻깛긤긂궻 Y 띆뷭
  FONT_SIZE  = 11              # 긲긅깛긣긖귽긛
  WIN_WIDTH  = 120            # 긂귻깛긤긂궻븴
  WIN_OPACITY = 128            # 긂귻깛긤긂궻벁뼻뱗
end


if PLAN_SCREEN_XY::VISIBLE

#==============================================================================
# 걾 Scene_Map
#============================================================================

class Scene_Map
  #--------------------------------------------------------------------------
  # 걶 긽귽깛룉뿚
  #--------------------------------------------------------------------------
  alias plan_screen_xy_main main
  def main
    # 긂귻깛긤긂귩띿맟
    @screen_xy_window = Window_Screen_XY.new
    # 뙰궸뽣궥
    plan_screen_xy_main
    # 긂귻깛긤긂귩됶뺳
    @screen_xy_window.dispose
  end
  #--------------------------------------------------------------------------
  # 걶 긲깒??뛛륷
  #--------------------------------------------------------------------------
  alias plan_screen_xy_update update
  def update
    @screen_xy_window.update
    # 뙰궸뽣궥
    plan_screen_xy_update
  end
end


#==============================================================================
# 걾 Window_Screen_XY
#==============================================================================

class Window_Screen_XY < Window_Base
  #--------------------------------------------------------------------------
  # 걶 긆긳긙긃긏긣룊딖돸
  #--------------------------------------------------------------------------
  def initialize
    one_line = ((PLAN_SCREEN_XY::FONT_SIZE * 100 / 22) * 32) / 100
    super(PLAN_SCREEN_XY::WIN_X, PLAN_SCREEN_XY::WIN_Y, PLAN_SCREEN_XY::WIN_WIDTH, 32+one_line*2)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.size = PLAN_SCREEN_XY::FONT_SIZE
    self.opacity = PLAN_SCREEN_XY::WIN_OPACITY
    @old_x = $game_player.x
    @old_y = $game_player.y
    refresh
  end
  #--------------------------------------------------------------------------
  # 걶 깏긲깒긞긘깄
  #--------------------------------------------------------------------------
  def refresh
    one_line = ((PLAN_SCREEN_XY::FONT_SIZE * 100 / 22) * 32) / 100
    self.contents.clear
    self.contents.draw_text(4, 0, self.contents.width-8, one_line, "X:", 0)
    self.contents.draw_text(4, 0, self.contents.width-8, one_line, $game_player.x.to_s, 2)
    self.contents.draw_text(4, one_line, self.contents.width-8, one_line, "Y:", 0)
    self.contents.draw_text(4, one_line, self.contents.width-8, one_line, $game_player.y.to_s, 2)
  end
  #--------------------------------------------------------------------------
  # 걶 긲깒??뛛륷
  #--------------------------------------------------------------------------
  def update
    if @old_x != $game_player.x or @old_y != $game_player.y
      refresh
      @old_x = $game_player.x
      @old_y = $game_player.y
    end
  end
end

end

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '2'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
34 기타 Free Window Demo 1 file 백호 2009.02.22 1002
33 기타 FPLE 2 - First Person Labyrinth Explorer by MGC 1 Alkaid 2012.01.17 3415
32 기타 Etude87_Bone_Animation_Character ver.1.2 4 습작 2012.07.06 1255
31 기타 endroll 주석 번역 6 file insertend 2010.05.15 1638
30 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1157
29 기타 Economy System by Nick@Creation Asylum 1 file 백호 2009.02.22 934
28 기타 Dynamic Stores by Astro_mech@rmxp.net 1 file 백호 2009.02.22 878
27 기타 Drago - Custom Resolution by LiTTleDRAgo Alkaid 2014.02.13 1110
26 기타 Difficulty Options by SephirothSpawn 백호 2009.02.22 869
25 기타 Defining Encounter Areas by RPG Advocate (사용법 첨부) file 백호 2009.02.22 1201
24 기타 Damage Reductions by SephirothSpawn (SDK호환) 1 백호 2009.02.22 779
23 기타 Crafting/Recipe system script by Axe Man Deke 백호 2009.02.22 829
22 기타 Complete Climate and Time System 1.2 by ForeverZer0 1 Alkaid 2010.09.17 1310
21 기타 Character Creator by Leon@Creation Asylum 2 file 백호 2009.02.22 1511
20 기타 Chaos Project Debug System 1.06b by Blizzard file Alkaid 2010.09.07 1367
19 기타 CG모드 도입 스크립트 file 백호 2009.02.21 1383
18 기타 CG그림 감상 스크립트 file 백호 2009.02.21 1735
17 기타 Book Event v2 by Bruth 5 백호 2009.02.22 1694
16 기타 Boat Script 백호 2009.02.21 729
15 기타 ATS-Advanced Time System 1 file 백호 2009.02.21 964
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13