그대로 스크립트 복사해서 새스크립트에 넣어주세요.
이상입니다
-감사합니다-
라이센스 | BSD |
---|---|
출처 | 창조도시 |
강의종류 | 텍스트 |
사용/적용순서 | #============================================================================== # ■ Window_Map_Name #------------------------------------------------------------------------------ # 맵명을 표시하는 윈도우입니다. #============================================================================== class Window_Map_Name < Window_Base #-------------------------------------------------------------------------- # ● 오브젝트 초기 #-------------------------------------------------------------------------- def initialize super(460, 0, 180, 64) self.contents = Bitmap.new(width-32, height-32) @showing_time = 0 @text_color = Color.new(255,255, 0,255) # 지명문자색 end #-------------------------------------------------------------------------- # ● 텍스트 설정 # text : 윈도우에 표시하는 문자열 # align : alignment (0..왼쪽 , 1..중앙 , 2..오른쪽) #-------------------------------------------------------------------------- def set_text(text, align = 2) # 텍스트와 alignment의 적어도 한편이 전회와 다른 경우 if text != @text or align != @align # 텍스트를 표기 self.contents.clear @showing_time = 100 @text = text @align = align @actor = nil self.contents_opacity = 255 x = 4 y = 0 self.contents.font.color = Color.new( 0, 0, 0, 192) self.contents.draw_text(x+2, y+2, self.width - 40, 32, "-"+text+"-",align=1) self.contents.font.color = Color.new( 64, 64, 64, 192) self.contents.draw_text(x-1, y-1, self.width - 40, 32, "-"+text+"-", align=1) self.contents.draw_text(x+1, y-1, self.width - 40, 32, "-"+text+"-", align=1) self.contents.draw_text(x-1, y+1, self.width - 40, 32, "-"+text+"-", align=1) self.contents.draw_text(x+1, y+1, self.width - 40, 32, "-"+text+"-", align=1) self.contents.font.color = @text_color self.contents.draw_text(x, y, self.width - 40, 32, "-"+text+"-", align=1) else @showing_time -= 1 if @showing_time < 16 # 페이드아웃 하기 시작한다 self.contents_opacity = @showing_time * 16 elsif @showing_time <= 0 # 일정시간을 보냈으므로 표시를 지운다 self.contents.clear end end self.visible = true end end #============================================================================== # ■ Scene_Map #============================================================================== class Scene_Map #-------------------------------------------------------------------------- # ● 메인처리 #-------------------------------------------------------------------------- alias xrxs20_main main def main # 지명 윈도우를 작성 @map_name_window = Window_Map_Name.new @map_name_window.opacity = 0 # ? xrxs20_main # 지명 윈도우를 해방 @map_name_window.dispose end #-------------------------------------------------------------------------- # ● 프레임 갱신 #-------------------------------------------------------------------------- alias xrxs20_update update def update # 지명 윈도우의 갱신 @map_name_window.set_text($game_map.name,1) xrxs20_update end end #============================================================================== # ■ Scene_Title #============================================================================== class Scene_Title #-------------------------------------------------------------------------- # ● 메인처리 #-------------------------------------------------------------------------- alias xrxs20_main main def main $map_infos = load_data("Data/MapInfos.rxdata") for key in $map_infos.keys $map_infos[key] = $map_infos[key].name end xrxs20_main end end #============================================================================== # ■ Game_Map #============================================================================== class Game_Map #-------------------------------------------------------------------------- # ● 맵명을 취득 #-------------------------------------------------------------------------- def name $map_infos[@map_id] end end |
그대로 스크립트 복사해서 새스크립트에 넣어주세요.
이상입니다
-감사합니다-
분류 | 제목 | 글쓴이 | 날짜 | 조회 수 | 추천 수 |
---|---|---|---|---|---|
공지사항 | 일본어 스크립트를 번역하기 좋은 번역사이트 두곳입니다 | ruby | 2010.01.09 | 22091 | 0 |
공지사항 | 스크립트 게시판 관리자' ruby ' 입니다 | ruby | 2010.01.09 | 20728 | 0 |
공지사항 | 일본 스크립트/소스 공유 포럼 4 | 니오티 | 2010.01.05 | 22259 | 0 |
맵관련 | 혹시나해서 일정키로 스크롤X 화면 부드럽게만...(스크립트를 삭제를 조금 했습니다) | 호호리터엉 | 2012.02.13 | 1791 | 0 |
맵관련 | 조금 다른 맵표시 스크립트 | 노르 | 2011.08.08 | 1888 | 0 |
맵관련 | 맵이름 띄우기 (오류없이 진짜나옵니다) 6 | 지나가던개 | 2011.07.06 | 2247 | 0 |
맵관련 | W키눌러서 미니맵표시 12 | 호호리터엉 | 2011.01.22 | 2764 | 1 |
맵관련 | Shift키누르고 방향키누르면 화면스크롤되는것 7 | 호호리터엉 | 2011.01.21 | 2584 | 0 |
맵관련 | 맵이름 띄우기, 케릭터 ID띄우기 15 | 꼬마쟁이 | 2011.01.05 | 7405 | 0 |
맵관련 | 인터페이스에 현재 맵명 표시하기 (다른 버젼) 9 | windshy | 2010.01.18 | 1408 | 3 |
맵관련 | 미니맵 표시하기 6 | windshy | 2010.01.12 | 1658 | 2 |
맵관련 | 인터페이스에 현재 맵명 표기하기 17 | 니오티 | 2007.02.01 | 2798 | 3 |
헉 진짜되네요.
감사합니다.
덕분에 좋은게임을 짤수가있겠군요!