RPGXP 스크립트
2007.12.02 06:59

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

조회 수 1449 추천 수 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. 달리기스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views2309 Votes2
    Read More
  2. 3D스크립트!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Date2014.01.18 CategoryRPGXP 스크립트 By공박사 Views2807 Votes2
    Read More
  3. 메뉴에 퀘스트 있는거

    Date2013.10.12 CategoryRPGXP 스크립트 By 운 Views1959 Votes2
    Read More
  4. 퀘스트 스크립트

    Date2013.10.12 CategoryRPGXP 스크립트 By 운 Views3103 Votes2
    Read More
  5. 2D 마인크래프트 프로젝트

    Date2013.09.26 CategoryRPGXP 스크립트 By Views3048 Votes2
    Read More
  6. HUD (HP, MP, EXP, LEVEL 표시) 화면에 표시해주는 플러그인!

    Date2015.11.07 CategoryRPGMV 플러그인 Bywillmv Views1370 Votes2
    Read More
  7. 해상도 변경 플러그인 v0.1

    Date2015.10.24 CategoryRPGMV 플러그인 By카리스 Views5695 Votes2
    Read More
  8. 선택 메뉴를 가운데 정렬 해보자.

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views1955 Votes2
    Read More
  9. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1812 Votes2
    Read More
  10. 기차 파티 스크립트

    Date2008.07.24 CategoryRPGXP 스크립트 By창조도시 Views1879 Votes2
    Read More
  11. 이벤트커맨드 스크립트 사용법 모음

    Date2009.07.21 CategoryRPGVX 스크립트 ByEvangelista Views2645 Votes2
    Read More
  12. 스텟포인트투자

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2548 Votes2
    Read More
  13. 이벤트커맨드 스크립트 조건분기법 모음

    Date2009.11.18 CategoryRPGVX 스크립트 ByEvangelista Views2533 Votes2
    Read More
  14. 이벤트커맨드 스크립트 조건분기법 모음

    Date2009.11.18 CategoryRPGVX 스크립트 ByEvangelista Views2590 Votes2
    Read More
  15. 이벤트커맨드 스크립트 사용법 모음

    Date2009.07.21 CategoryRPGVX 스크립트 ByEvangelista Views2530 Votes2
    Read More
  16. 한글이름입력기 v1.76

    Date2008.07.24 CategoryRPGXP 스크립트 By창조도시 Views2698 Votes2
    Read More
  17. 기차 파티 스크립트

    Date2008.07.24 CategoryRPGXP 스크립트 By창조도시 Views1466 Votes2
    Read More
  18. 선택 메뉴를 가운데 정렬 해보자.

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views1449 Votes2
    Read More
  19. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1391 Votes2
    Read More
  20. 스텟포인트투자

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2142 Votes2
    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(김원배) | 사신지(김병국)