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
41 오디오 WhiteFlute - AudioEX (XP/VX/VXA) file Alkaid 2012.12.26 1255
40 메뉴 L's Simple Custom Menu #1 R2 (SDK 2.x 필요) Alkaid 2013.01.18 1227
39 저장 Woratana's Neo Save System for RMXP by LiTTleDRAgo 5 Alkaid 2013.01.19 1398
38 이동 및 탈것 RMVX dash for RMXP by PK8 2 Alkaid 2013.01.22 1194
37 기타 appletree님 요청) 화면 명암 주기 3 file 뮤바보 2013.01.31 2724
36 메시지 WhiteFlute 멀티메시지 스크립트 (XP/VX/VXA) 4 Alkaid 2013.02.05 2263
35 저장 Law's Custom Save System by The Law G14 & Night Runner 1 file Alkaid 2013.02.18 1073
34 메시지 Universal Message System 1.8.0 by ccoa 번역 4 file PerrS 2013.04.06 1738
33 키입력 No F1, F12 and Alt+Return (Kein F1, F12 und Alt+Eingabe) by cremno 습작 2013.04.19 995
32 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
31 키입력 Key Simulator by Fantasist 4 습작 2013.05.01 1143
30 기타 Resolution Changer Ultimate by Zeus81 7 file 습작 2013.05.05 1162
29 기타 Project RGSS3 by joe5491 6 습작 2013.05.06 1969
28 전투 SRPGコンバータⅡ by AD.Bank 1 습작 2013.05.13 1769
27 메시지 Etude87_Item_Choice_XP ver.1.10 13 file 습작 2013.05.19 2178
26 메시지 FontZ by DerVVulfman Alkaid 2013.07.19 1099
25 전투 The Lycan ABS by DerVVulfman Alkaid 2013.07.22 1895
24 기타 RPG 만들기 XP의 숨겨진 모듈/클래스 재정의 스크립트 모음 1 Alkaid 2013.08.31 1912
23 전투 전투배경확장 스크립트 3 file 아미상 2013.09.15 2768
22 키입력 [xp,vx]마우스 제스쳐 스크립트 2 클로시스 2013.09.26 2296
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