XP 스크립트

http://www.gamebaker.com/rmxp/scripts/window-control.htm
  sandgolem님 스크립트 중 일부 윈도우 표시관련이 들어있는 스크립트를 위해 필요한 것입니다.  다른 SG스크립트들 위에 넣으세요.

#=============================================================================
# ** SG Window Control
#=============================================================================
# sandgolem
# Version 2
# 12.06.06
#=============================================================================
#
# Thanks Saucetenuto, SephirothSpawn & Trickster!
# This script wouldn't exist without their help
#
#=============================================================================

# This script is used to display windows in their various settings, and is
# not required for all of the SG Scripts to work

# Display types:

#  0 or nothing = Icon on left
#  1            = Icon on right, with string a little ahead
#  2            = Icon on right, with string on left
#  3            = Text name on right, same as default gold window
#  4            = Text name on right, better spacing
#  5            = Text name on right, with string on left
#  6            = Text name on left
#  7            = Text name on left, followed by a :
#  8            = Icon only, centered in the window
#  9            = Text only, centered in the window
#  10          = String only, centered in the window
#  11          = Icon on right, with string a little more ahead

#=============================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# but under the default scripts and the SDK if you're using it. This script
# MUST be above all the SG Scripts that require it
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
#=============================================================================

begin
  SDK.log("SG Window Control", "sandgolem", 2, "12.06.06")
  rescue
end

class Window_Base < Window
 
  def sg_draw_window(type,width,icon,text,string)
    if icon == nil
      icon = RPG::Cache.icon('049-Skill06')
    else
      icon = RPG::Cache.icon(icon)
    end
    if string == nil
      string = ' '
    end
    width -= 32
    cx = contents.text_size(text).width
    self.contents.clear
    case type.to_i
    when 0
      self.contents.draw_text(4, 0, width-8, 32, string, 2)
      src_rect = Rect.new(0, 0, 32, 32)
      self.contents.blt(0, 4, icon, src_rect)
    when 1
      self.contents.draw_text(4, 0, width-28, 32, string, 2)
      src_rect = Rect.new(0, 0, 32, 32)
      self.contents.blt(width-24, 4, icon, src_rect)
    when 2
      self.contents.draw_text(4, 0, width, 32, string)
      src_rect = Rect.new(0, 0, 32, 32)
      self.contents.blt(width-24, 4, icon, src_rect)
    when 3
      self.contents.draw_text(4, 0, width-8-cx, 32, string, 2)
      self.contents.font.color = system_color
      self.contents.draw_text(width-4-cx, 0, cx, 32, text, 2)
    when 4
      self.contents.draw_text(4, 0, width-14-cx, 32, string, 2)
      self.contents.font.color = system_color
      self.contents.draw_text(width-4-cx, 0, cx, 32, text, 2)
    when 5
      self.contents.draw_text(4, 0, width, 32, string)
      self.contents.font.color = system_color
      self.contents.draw_text(width-4-cx, 0, cx, 32, text, 2)
    when 6
      self.contents.draw_text(4, 0, width-8, 32, string, 2)
      self.contents.font.color = system_color
      self.contents.draw_text(4, 0, cx, 32, text)
    when 7
      self.contents.draw_text(4, 0, width-8, 32, string, 2)
      self.contents.font.color = system_color
      self.contents.draw_text(4, 0, cx, 32, text)
      self.contents.draw_text(cx+4, 0, 8, 32, ':')
    when 8
      cx = width / 2 - 12
      src_rect = Rect.new(0, 0, 32, 32)
      self.contents.blt(cx, 4, icon, src_rect)
    when 9
      self.contents.draw_text(0, 0, width, 32, text, 1)
    when 10
      self.contents.draw_text(0, 0, width, 32, string, 1)
    when 11
      self.contents.draw_text(4, 0, width-34, 32, string, 2)
      src_rect = Rect.new(0, 0, 32, 32)
      self.contents.blt(width-24, 4, icon, src_rect)
    end
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6154
521 온라인 광넷[ 광땡 온라인 + 넷플레이 ] 62 - 하늘 - 2009.08.02 9003
520 메시지 공지(?)를 띄우는 스크립트 23 file - 하늘 - 2009.08.06 4007
519 기타 경험치 퍼센트 수정 백호 2009.02.22 1209
518 게임화면의 해상도를 변경하는 스크립트 6 제로스S2 2009.08.06 3334
517 온라인 게임화면을 전체화면으로 하기 27 file 이씨 2010.03.09 4052
516 타이틀/게임오버 게임오버 화면 에서 커맨드 윈도우 스크립트 12 file 백호 2009.02.21 3031
515 HUD 게임 플레이시 맵의 이름을 표시하는 스크립트 1 file 백호 2009.02.21 1935
514 게이지바 만들기 [헬악이님 제공] 12 file 아방스 2007.11.09 4416
513 기타 게이지 3 백호 2009.02.21 1395
512 타이틀/게임오버 게..임..오버.. ps인간 2009.01.23 2636
511 기타 거울에 캐릭터의 모습을 반사하는 효과 5 file 백호 2009.02.21 1472
510 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
509 기타 거울에 자신의모습이 비춰지는 스크립트 2 백호 2009.02.22 1489
508 메뉴 개별 메뉴 호출 단축키 스크립트 5 file 백호 2009.02.21 1965
507 HUD 강화 나침반 스크립트 (원본 by 허걱) 16 file JACKY 2010.08.16 3105
506 기타 강제 종료시키기 1 file 백호 2009.02.22 1015
505 상점 간단한 여관 by Tsunokiette@Creation Asylum 2 백호 2009.02.22 1530
504 전투 간단한 액알 스크립트!(1번째) 2 백호 2009.02.21 3166
503 기타 간단한 Scene_Base #2 2 Alkaid 2012.01.15 1738
502 기타 간단한 Scene_Base Alkaid 2010.09.09 1390
Board Pagination Prev 1 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 52 Next
/ 52