RPGXP 스크립트
2007.12.02 06:59

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

조회 수 1450 추천 수 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. HUD (HP, MP, EXP, LEVEL 표시) 화면에 표시해주는 플러그인!

    Date2015.11.07 CategoryRPGMV 플러그인 Bywillmv Views1371 Votes2
    Read More
  2. 파티 선두 캐릭터 id 변수에 넣기

    Date2008.01.08 CategoryRPGXP 스크립트 ByEvangelista Views1381 Votes1
    Read More
  3. 메뉴 스크립트 Zer0 CMS

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1384 Votes0
    Read More
  4. Refresh Manager

    Date2016.05.24 CategoryRPGMV 플러그인 By러닝은빛 Views1389 Votes1
    Read More
  5. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1395 Votes2
    Read More
  6. Advanced Game Time (게임에 시간개념을 적용해주는 플러그인)

    Date2016.01.06 CategoryRPGMV 플러그인 Byplam Views1404 Votes0
    Read More
  7. 맵타일 크기 변경 플러그인!

    Date2015.10.26 CategoryRPGMV 플러그인 By파란별빛 Views1413 Votes0
    Read More
  8. RMMV 옵션 창에 메시지 속도 및 글자 크기 변경 기능 추가

    Date2018.07.15 CategoryRPGMV 플러그인 By러닝은빛 Views1415 Votes0
    Read More
  9. 대화 글씨가 한글자씩 나오는 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1417 Votes0
    Read More
  10. 공포게임에 장비착용메뉴

    Date2014.08.24 CategoryRPGXP 스크립트 By 운 Views1424 Votes0
    Read More
  11. [RPG MV] 퀘스트 마커 지속 표시 플러그인

    Date2017.04.09 CategoryRPGMV 플러그인 Bylklslel Views1425 Votes0
    Read More
  12. Mog_Battle_hud(MZ버전도 있습니다)

    Date2021.03.05 CategoryRPGMV 플러그인 By스트레이보우 Views1430 Votes0
    Read More
  13. 몬스터 도감

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1430 Votes0
    Read More
  14. 텍스트 입력창(Keyboard Input Dialog)

    Date2016.08.09 CategoryRPGMV 플러그인 By러닝은빛 Views1433 Votes1
    Read More
  15. c[n] 명령어 줄때의 색상 결정.

    Date2008.02.14 CategoryRPGXP 스크립트 By창조도시 Views1438 Votes1
    Read More
  16. 맵 이름 표시 스크립트

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1442 Votes0
    Read More
  17. 액알 스크립트

    Date2014.11.23 CategoryRPGXP 스크립트 By커비♥ Views1445 Votes1
    Read More
  18. 선택 메뉴를 가운데 정렬 해보자.

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views1450 Votes2
    Read More
  19. Font Setup

    Date2016.07.22 CategoryRPGXP 스크립트 By운님 Views1453 Votes0
    Read More
  20. 기차 파티 스크립트

    Date2008.07.24 CategoryRPGXP 스크립트 By창조도시 Views1466 Votes2
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 15 Next
/ 15






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

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