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 6153
21 기타 한글 입력 스크립트 입니다. (vx -> xp) 23 file 헤르코스 2009.04.18 3397
20 메시지 한글 채팅 스크립트 32 file こなた 2009.01.22 4947
19 이름입력 한글이름 입력기 스크립트 14 백호 2009.02.22 4205
18 키입력 한글입력기 6 백호 2009.02.22 4302
17 키입력 한글입력기(자음, 모음 분리. 아마 중복일 듯...) 11 캉쿤 2011.09.13 3225
16 키입력 한글입력스크립트 16 file 아방스 2007.11.09 11823
15 메시지 한글자씩 뜨는 스크립트 6 백호 2009.02.21 3001
14 이름입력 한글조합입력기(영어가능) file 조규진1 2019.11.10 497
13 기타 현재 맵BGM을 그대로 전투 BGM으로 연결 from phylomortis.com 백호 2009.02.22 1180
12 기타 현재시간표시 33 file 코아 코스튬 2010.10.09 2529
» 메뉴 혹시있나해서-_-.. 대화창에 테두리치기 스크립트 7 백호 2009.02.22 2592
10 기타 홈페이지 띄우기 (VX 상관없음.) 6 KNAVE 2009.08.25 2137
9 화면에 축소된 맵을 표시하는 스크립트 7 file 백호 2009.02.21 2394
8 미니맵 화면에 축소된 미니맵을 표시하는 스크립트 - 한글 번역 - 6 file 백호 2009.02.21 2560
7 그래픽 화면을 부드럽게 해주는스크립트[ 아주 유용] 56 file - 하늘 - 2009.08.05 6561
6 메뉴 화살표 모양 셀렉트 커서 사용 2 백호 2009.02.22 2118
5 기타 회복으로 데미지를 받는 좀비 스크립트 7 백호 2009.02.22 2004
4 기타 횡스크롤 스크립트 한국말 번역. 15 file 백호 2009.02.21 3311
3 전투 횡스크롤형식의 스크립트 7 백호 2009.02.21 2975
2 전투 흠.. 아직도 이 스크립트가 없군요 ㅋㅋ(제가올림..) 1 file 백호 2009.02.21 3335
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52