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 6153
521 스킬 SG_Skill Invoking Battle Items by sandgolem (SDK호환) 백호 2009.02.22 894
520 전투 전투의 승리마다 행동에 따라서 능력치가 상승한다! 1 백호 2009.02.22 1238
519 기타 대화 글씨가 한글자씩 나오는 스크립트 2 백호 2009.02.22 2464
518 기타 소지금 7자리수(9,999,999원)돌파 6 백호 2009.02.22 1752
517 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2407
516 기타 SG_Call Script Fix by sandgolem (SDK호환) 백호 2009.02.22 802
515 전투 SG_Auto battle by sandgolem (SDK호환) 백호 2009.02.22 1031
514 기타 광물캐기 시스템 v2 3 백호 2009.02.22 1775
513 메뉴 Customizable Ring Menu by SephirothSpawn 백호 2009.02.22 884
512 기타 My메세지(메세지 출력 스크립트) 1 file 백호 2009.02.22 1533
511 장비 장비 전능력 스크립트 4 file 백호 2009.02.22 1783
510 기타 레벨,능력치 9999 3 백호 2009.02.22 1596
509 전투 Advanced Individual Battle Command v2.1 by Trickster@rmxp.org (SDK호환) 1 file 백호 2009.02.22 1189
508 기타 거울에 자신의모습이 비춰지는 스크립트 2 백호 2009.02.22 1488
» 기타 SG_Window Control v2 by sandgolem 백호 2009.02.22 823
506 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4313
505 기타 Rataime's Multi Demo 1 file 백호 2009.02.22 834
504 메뉴 1-Scene CMS 1.03 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 871
503 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1141
502 기타 SG_Multiple Currencies v3 by sandgolem (SDK호환) 백호 2009.02.22 803
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