질문과 답변

Extra Form
  1. #Basic Window Resizer v1.1
  2. #----------#
  3. #Features: Allows you to resize the window to whatever size you like! (This is not
  4. #            like Graphics.resize, this will scale to fit)
  5. #
  6. #Usage:   Script calls:
  7. #           Window_Resize.r(width, height)     - Self-explanatory
  8. #           Window_Resize.f                    - fits the game window to monitor size
  9. #           Window_Resize.full                 - switches to full screen unless already fullscreened
  10. #           Window_Resize.window               - same as full but opposite
  11. #           Window_Resize.toggle               - toggles between full and window
  12. #
  13. #No Customization
  14. #
  15. #----------#
  16. #-- Script by: V.M of D.T
  17. #
  18. #- Questions or comments can be:
  19. #    given by email: sumptuaryspade@live.ca
  20. #    provided on facebook: http://www.facebook.com/DaimoniousTailsGames
  21. #   All my other scripts and projects can be found here: http://daimonioustails.weebly.com/
  22. #
  23. #--- Free to use in any project, commercial or non-commercial, with credit given
  24. # - - Though a donation's always a nice way to say thank you~ (I also accept actual thank you's)
  25.  
  26. SWPO = Win32API.new 'user32''SetWindowPos'['l','i','i','i','i','i','p']'i'
  27. WINX = Win32API.new 'user32''FindWindowEx'['l','l','p','p']'i'
  28. SMET = Win32API.new 'user32''GetSystemMetrics'['i']'i'
  29.  
  30. module Window_Resize
  31.   def self.r(width, height)
  32.     resw = SMET.call(0)
  33.     resh = SMET.call(1)
  34.     window_loc = WINX.call(0,0,"RGSS Player",0)
  35.     width +(SMET.call(5) + SMET.call(45)) * 2
  36.     height +(SMET.call(6) + SMET.call(45)) * 2 + SMET.call(4)
  37.     x = (resw - width) / 2; y = (resh - height) / 2
  38.     y = 0 if y < 0;x = 0 if x < 0
  39.     SWPO.call(window_loc,0,x,y,width,height,0)
  40.   end
  41.   def self.f
  42.     resw = SMET.call(0)
  43.     resh = SMET.call(1)
  44.     window_loc = WINX.call(0,0,"RGSS Player",0)
  45.     SWPO.call(window_loc,0,0,0,resw,resh,0)
  46.   end
  47.   def self.full
  48.     resw = SMET.call(0)
  49.     return unless resw > 640
  50.     toggle
  51.   end
  52.   def self.window
  53.     resw = SMET.call(0)
  54.     return unless resw <640
  55.     toggle
  56.   end
  57.   def self.toggle
  58.     keybd = Win32API.new 'user32.dll''keybd_event'['i''i''l''l']'v'
  59.     keybd.call 0xA4, 000
  60.     keybd.call 13000
  61.     keybd.call 13020
  62.     keybd.call 0xA4, 020
  63.   end
  64. end



이런 스크립트를 찾았는데 이걸 어떻게 사용하는지 모르겠네요
이게 게임창 사이즈 바꿀수있는 스크립트 맞나요? 

Comment '1'
  • ?
    페렐 2015.12.14 22:09
    넵 맞는 것 같습니다. 해상도가 아니라 창 크기 말씀하시는 거 맞으시죠?
    사용법은 위에 영어로 나와있네요. 저 명령어들을 이벤트에서 스크립트로 불러오면 실행됩니다.

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12451
RMVXA 중간테스트 관련 질문 드립니다!! 2 쫑민 2017.09.25 225
RMVXA 엑터 얼굴 1 ERRCode404 2017.09.26 149
RMVXA 안녕하세요 이벤트 시작 관련 질문드립니다 1 딜풍a 2017.09.28 90
RMVXA 게임 만들고 있는 초보입니다 4 매지션k 2017.09.28 203
RMVXA 스크립트 에러 1 file 가온누리55 2017.10.01 212
RMVXA 마나 다 떨어지면 혼란상태 빠지게 하고 싶습니다 6 매지션k 2017.10.01 131
RMVXA 이것저것만지다가 타일색이 이상해졌어요... 도와주세요 3 file 지나가던팬더 2017.10.02 140
RMVXA 출현범위에 대해서 궁금합니다. 1 file 난몰라 2017.10.07 129
RMVXA 이거 일본어 지우는 방법 없을까요? 3 file 난몰라 2017.10.07 156
RMVXA 데미지 계산식에서 a.level을 사용한 수를 적이 사용하게 되면 어떻게 되나요. 4 NoaBlua 2017.10.09 132
RMVXA 스킬에 레벨 조건을 걸고 싶습니다. 3 NoaBlua 2017.10.10 126
RMVXA RMVXA 로고 관련 질문 입니다. 2 천지설화 2017.10.11 147
RMVXA 이벤트에서 문장에 파티원 페이스 그래픽에 따라 달라지게 하는방법 킹덤8456 2017.10.11 100
RMVXA 타이틀 new game, load, exit 디자인 바꾸는 방법 HABEOLMI1234 2017.10.15 184
RMVXA Rpg vx ace 자작 칩 file SEWASHI 2017.10.20 168
RMVXA 타이틀 시작화면 3 주말부엉이 2017.10.23 950
RMVXA rpg 메이커 처음 만져보는데..카톡이나 통화하면서 알려주실수 있나요?? 2 나호성 2017.11.07 174
RMVXA 액션알피지 스크립트 오류 약빨은ㄱㅏㅅㅣ 2017.11.08 100
RMVXA 게임에 엔딩 넣기 2 태태 2017.11.14 198
RMVXA 대사 박스에 캐릭터 일러스트 넣기 2 태태 2017.11.15 1034
Board Pagination Prev 1 ... 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 ... 149 Next
/ 149