질문과 답변

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 21128
RMVXA VXA로 제작하면 네트워크가 가능한가요? 2 Guni 2014.08.06 616
RMVXA VXA로 만든 솔로 게임을 온라인상에 구축할수있나요? 1 ongirl 2015.06.10 211
RMVXA VXA는 이벤트가 다른 이벤트 위로 못지나 가나요? 1 Ripper 2015.07.23 159
RMVXA vxace질문좀요 3 퍼러진 2012.01.01 1928
RMVXA vxace의 파티체인저 비밀의회원 2018.06.15 80
RMVXA vxace에서 패시브 스킬을 만들수 있나요? 6 뿌잉뿌잉쨔응 2013.06.23 838
RMVXA vxace에서 탈것에관한것들좀 알려주세요 4 game 光 ㅋㅋ 2013.01.06 815
RMVXA vxace에서 타격실패없애는 방법좀 가르쳐주세요 2 DiperiAn 2012.07.27 1870
스크립트 사용 RMVXA VXACE에서 2방향, 4방향의 동시 사용 믕믱이 2019.07.22 67
RMVXA VXACE는 글꼴을 어디서 바꾸죠? 2 Leonis 2013.11.02 1173
RMVXA vxace 해상도를 기본제한수치보다 더크게 올리고 싶습니다 5 지이스 2014.05.04 997
기본툴 사용법 RMVXA VXACE 텍스트 소리 어떻게 나게 하나요? rmqqoddl 2020.11.15 243
RMVXA VXace 제작자 성님들 도와주십시오.(물건을 정확한 위치에 옮겨놓으면 인식되는거.) 5 nimi070 2018.12.07 93
RMVXA VXACE 전투스크립트 중에서... 작은영웅 2012.03.11 2443
RMVXA vxace 이벤트가 자꾸 나옵니다 1 아고 2018.01.25 94
RMVXA VXace 스크립트 에러 2 rmkroar 2014.02.28 794
RMVXA VXAce 선택지표시 질문 2 file 올레올레 2014.07.28 1054
RMVXA vxace 문장의 표시를 느리게 하는법 1 file SteadfastLove 2015.03.17 454
RMVXA vxace 대쉬시 달리기모션.. 8 yellowcat 2013.04.07 1597
RMVXA vxace 게임 창크기 조절하는 스크립트질문좀할게요 1 상생 2015.12.13 349
Board Pagination Prev 1 ... 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 ... 150 Next
/ 150