XP 스크립트

#==============================================================================
# ■ Bitmap
#------------------------------------------------------------------------------
#  Bitmap 클래스(class) 방법(method) 추가
#==============================================================================

class Bitmap
  #--------------------------------------------------------------------------
  # ● 테두리 두르기 문자 묘화
  #--------------------------------------------------------------------------
  def draw_frame_text(x, y, width, height, string, align = 0,
      frame_color = Color.new(0, 0, 0))
    # 원래의 색을 보존해 둔다
    origin_color = font.color.dup
    # 테두리 두르기
    font.color = frame_color
    draw_text(x - 1, y - 1, width, height, string, align)
    draw_text(x - 1, y + 1, width, height, string, align)
    draw_text(x + 1, y - 1, width, height, string, align)
    draw_text(x + 1, y + 1, width, height, string, align)
    # 원래의 색에 되돌리고 묘화
    font.color = origin_color
    draw_text(x, y, width, height, string, align)
  end
  #--------------------------------------------------------------------------
  # ● 영 문자 묘화
  #--------------------------------------------------------------------------
  def draw_shadow_text(x, y, width, height, string, align = 0,
      shadow_color = Color.new(0, 0, 0))
    # 원래의 색을 보존해 둔다
    origin_color = font.color.dup
    # 영 묘화
    font.color = shadow_color
    draw_text(x + 2, y + 2, width, height, string, align)
    # 원래의 색에 되돌리고 묘화
    font.color = origin_color
    draw_text(x, y, width, height, string, align)
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '7'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7314
48 메뉴 자작 커스텀 메뉴(데모 첨부) 3 백호 2009.02.22 2362
47 메뉴 KGC 메뉴화면 개조 스크립트 번역 3 file 백호 2009.02.22 1953
46 메뉴 링 메뉴 Edited by Hypershadow180@rmxp.net 1 file 백호 2009.02.22 1982
45 메뉴 넷플레이 업그레이드됀 메뉴 스크립트 4 백호 2009.02.22 2055
44 메뉴 스테이터스 화면 from Harts Horn 2 백호 2009.02.22 1598
43 메뉴 SG_Artifact Colors by sandgolem (SDK 호환) 1 백호 2009.02.22 1019
42 메뉴 SG_Hide zero SP cost by sandgolem (SDK호환) 백호 2009.02.22 1083
41 메뉴 수정, 추가 링메뉴 10 file 백호 2009.02.22 2925
40 메뉴 Customizable Ring Menu by SephirothSpawn 백호 2009.02.22 904
39 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4336
38 메뉴 1-Scene CMS 1.03 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 892
37 메뉴 제가추천하는 메뉴스크립트 11 file 백호 2009.02.22 5322
36 메뉴 1-Scene CMS 1.1 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 967
» 메뉴 혹시있나해서-_-.. 대화창에 테두리치기 스크립트 7 백호 2009.02.22 2610
34 메뉴 Advanced Command Windows by Tsunokiette file 백호 2009.02.22 1319
33 메뉴 CogWheel Plug'n'Play Menu Bar by DerVVulfman@rmxp.org 2 백호 2009.02.22 1231
32 메뉴 1-Scene CMS 1.16 by LegACy (SDK호환) 3 file 백호 2009.02.22 1587
31 메뉴 Trickster's Plug 'n' Play Gradient Bar 2.0 1 file 백호 2009.02.22 2065
30 메뉴 Options System by slipknot 3 file 백호 2009.02.22 2120
29 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1805
Board Pagination Prev 1 2 3 4 5 Next
/ 5