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. AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta

    Date2014.01.21 CategoryRPGXP 스크립트 By 운 Views1974 Votes1
    Read More
  2. 아이템소지 한계돌파

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1964 Votes0
    Read More
  3. 최초 시작화면에 제작자 정보를 띄워보자.

    Date2008.04.04 CategoryRPGXP 스크립트 By창조도시 Views1961 Votes5
    Read More
  4. 메뉴에 퀘스트 있는거

    Date2013.10.12 CategoryRPGXP 스크립트 By 운 Views1960 Votes2
    Read More
  5. 선택 메뉴를 가운데 정렬 해보자.

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views1955 Votes2
    Read More
  6. 컷신 플러그인

    Date2020.10.30 CategoryRPGMV 플러그인 By스트레이보우 Views1951 Votes0
    Read More
  7. 요청하신 게이지바 스크립트 입니다.

    Date2013.10.04 CategoryRPGXP 스크립트 By소년영남 Views1921 Votes1
    Read More
  8. RPG Maker MV 한글 데이타베이스 입니다.

    Date2015.10.25 CategoryRPGMV 플러그인 By천무 Views1905 Votes3
    Read More
  9. Rpg Vx Ace 에서 이벤트 이름 팝업

    Date2014.01.17 CategoryRPGVX Ace 스크립트 By빙냥이 Views1901 Votes0
    Read More
  10. 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전)

    Date2016.02.22 CategoryRPGXP 스크립트 By부초 Views1899 Votes0
    Read More
  11. 그림자문자 사용하기.. 바탕색이 무슨색이건 상관없이 글자가 잘보인다!!!

    Date2007.11.06 CategoryRPGXP 스크립트 By창조도시 Views1888 Votes1
    Read More
  12. 기차 파티 스크립트

    Date2008.07.24 CategoryRPGXP 스크립트 By창조도시 Views1879 Votes2
    Read More
  13. 미니맵 스크립트

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1875 Votes0
    Read More
  14. 말풍선 메세지 스크립트

    Date2014.02.24 CategoryRPGXP 스크립트 By천둥번들 Views1855 Votes0
    Read More
  15. Action Sequence Pack 2 (전투모드 액션 플러그인)

    Date2016.01.05 CategoryRPGMV 플러그인 Byplam Views1824 Votes0
    Read More
  16. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1818 Votes0
    Read More
  17. 게임프레임 조절

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1814 Votes0
    Read More
  18. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1813 Votes2
    Read More
  19. 직업명 표시

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1787 Votes0
    Read More
  20. 파티 선두 캐릭터 id 변수에 넣기

    Date2008.01.08 CategoryRPGXP 스크립트 ByEvangelista Views1786 Votes1
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15






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

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