RPGXP 스크립트
2007.12.02 06:59

선택 메뉴를 가운데 정렬 해보자.

조회 수 1955 추천 수 2 댓글 1
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
asd.jpg

아 뭐... 간단한 겁니다...
혹시 몰라 검색을 해봤는데 없는거 같아서 올려봅니다.

있는데 제가 못찾은 거라면 대략 난감하구요...;;

XP를 시작하면
3가지의 메뉴가 나옵니다 (경우에 따라서 추가하신분들은 더있겠죠;;)
그런데 이 메뉴들이 다 왼쪽 정렬이지요.. 그거 바꾸는겁니다...;;

섹션 : Window_Command <-- 이 스크립트에서
  #--------------------------------------------------------------------------
  # ● 항목의 묘화
  #     index : 항목 번호
  #     color : 문자색
  #--------------------------------------------------------------------------
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index])
  end
이부분을 찾으세요...
찾으셧나요?
그럼 수정하세요...어느 부분이냐면..

    self.contents.draw_text(rect, @commands[index])

이부분...

@commands[index]

이거다음에 ,와 함께 1을 적어주시면 가운데 정렬
2를 적어주시면 오른쪽정렬입니다.

예) self.contents.draw_text(rect, @commands[index],1)

그럼 저는 이만 ~_~

 


출처는 : 루치아님 에게서..

?

  1. RPG Maker MV 한글 데이타베이스 입니다.

    Date2015.10.25 CategoryRPGMV 플러그인 By천무 Views1905 Votes3
    Read More
  2. 요청하신 게이지바 스크립트 입니다.

    Date2013.10.04 CategoryRPGXP 스크립트 By소년영남 Views1921 Votes1
    Read More
  3. 컷신 플러그인

    Date2020.10.30 CategoryRPGMV 플러그인 By스트레이보우 Views1949 Votes0
    Read More
  4. 선택 메뉴를 가운데 정렬 해보자.

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views1955 Votes2
    Read More
  5. 메뉴에 퀘스트 있는거

    Date2013.10.12 CategoryRPGXP 스크립트 By 운 Views1960 Votes2
    Read More
  6. 최초 시작화면에 제작자 정보를 띄워보자.

    Date2008.04.04 CategoryRPGXP 스크립트 By창조도시 Views1961 Votes5
    Read More
  7. 아이템소지 한계돌파

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1964 Votes0
    Read More
  8. AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta

    Date2014.01.21 CategoryRPGXP 스크립트 By 운 Views1974 Votes1
    Read More
  9. [VX] 메시지 표시를 한번에 표시로 전환하기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1975 Votes1
    Read More
  10. [ MV ] 심장[체력표시 하트] 플러그인

    Date2018.07.01 CategoryRPGMV 플러그인 By수성의물 Views1994 Votes0
    Read More
  11. 모바일 패드 플러그인입니다! MBS - Mobile DirPad & Action Button

    Date2015.11.07 CategoryRPGMV 플러그인 Bywillmv Views2007 Votes3
    Read More
  12. 타이틀 메뉴 위치 바꾸기 vx 및 vx ace

    Date2015.09.21 CategoryRPGVX Ace 스크립트 By여줄가리 Views2009 Votes0
    Read More
  13. [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views2014 Votes1
    Read More
  14. Kaus Ultimate Overlay v1.03 (강력레이아웃추가! 빛/포그/파노라마/맵)

    Date2015.11.08 CategoryRPGMV 플러그인 By파란별빛 Views2027 Votes0
    Read More
  15. 파이널 판타지 7 스타일 메뉴

    Date2013.10.01 CategoryRPGXP 스크립트 By Views2027 Votes0
    Read More
  16. 윈도우 시스템 트레이로 최소화

    Date2016.01.21 CategoryRPGMV 플러그인 By러닝은빛 Views2031 Votes0
    Read More
  17. 대각선 방향 이동추가로 8방향 이동 만들기.

    Date2008.08.14 CategoryRPGXP 스크립트 By창조도시 Views2043 Votes1
    Read More
  18. 부드러운화면이동

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2046 Votes0
    Read More
  19. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2057 Votes0
    Read More
  20. 모션 스크립트

    Date2013.12.06 CategoryRPGXP 스크립트 By 운 Views2057 Votes0
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)