질문과 답변

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 50368
RMVXA 일반적인 턴제가 아니라 게이지가 차면 자기차례가 되는 전투방식을 뭐라고 하나요 3 씨-존 2015.12.26 244
툴선택 VX ACE vs MV 1 뒤리 2015.12.25 314
울프툴 한글화제작 하려는데 한자가 그대로 나옵니다 4 file uline 2015.12.24 754
기타 mv를 홈페이지에서 다운 받았으면 업데이트를 어떻게 하죠? 3 무명시절 2015.12.24 159
RMVXA 이벤트 스크립트 추가로 메뉴부르기 2 준준이 2015.12.24 139
RMMV 원경(배경화면) 삽입 질문 3 잠행인 2015.12.21 264
RMMV 심각한 고민인데 질문좀 3 잠행인 2015.12.21 226
RMMV MV에서 BGM은 따로 못넣나요?? 5 Luckypup1 2015.12.20 2607
RMMV RPGMV실행이 안됩니다. 2 게임잘날아가는닝겐 2015.12.20 944
RMMV 그림 불러오기 기능 어떻게 써요? 7 잠행인 2015.12.20 233
RMMV MV는 맵 복붙이 안되나요? 2 잠행인 2015.12.20 225
RMVXA 혹시 VX ACE 예제 맵칩 스샷 찍어주실수 있으신분? 잠행인 2015.12.20 123
기타 bgm은 어떻게 만들수있나요?? 2 히마 2015.12.20 140
RMVX 맵타일이 중간에서 끊기는 현상은 어떻게 해야 하나요? 2 file 위리리릴 2015.12.20 175
RMMV mv 아이콘 크기 조절 질문 2 file 체력을가르다. 2015.12.19 967
RMVX 보행금지 기능이 있을까요? 1 바다사자 2015.12.19 197
GM 스프라이트나 오브젝트창 등등에 글씨 몇몇개가 잘려보입니다. 1 file 츠르 2015.12.18 271
RMXP 다른 플레이어와 대전 1 Fernandez 2015.12.17 144
RMMV 이벤트의 이벤트 인식 1 Crze 2015.12.17 123
RMMV 앱으로 변환시 조이스틱 질문합니다. 2 ung 2015.12.15 186
Board Pagination Prev 1 ... 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 ... 518 Next
/ 518