질문과 답변

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 창 페이드 효과를 없애는 방법이 있나요? aicarrot 2013.03.27 601
RMVXA 창 크기(해상도) 변형시 색조변경&원경 등 이레 2014.09.15 583
RMVXA 창 불투명하게 설정하는 법좀 알려주세요 1 민트Mint 2017.07.24 121
RMVXA 쯔꾸르창이 전체화면으로 됩니다... 4 마맨 2014.01.11 29572
RMVXA 쯔꾸르 시리즈는 게임패드로 플레이하는것이 가능한가요? 2 누룽누룽 2013.06.16 4563
기타 RMVXA 쯔꾸르 게임 실행후 캐릭터가 자동으로 이동하고 컨트롤이 되지않습니다. 귀여미드사미 2019.09.23 82
게임 번역 RMVXA 쯔꾸르 게임 번역 중 질문이 있어서 글 올립니다. 1 file note노트 2019.02.26 516
스크립트 추천 RMVXA 질문합니다. 아이템 위로 지나갈때 주워지는 이벤트에서 4 효잉 2021.01.04 172
RMVXA 질문합니다. 6 file 류미엘 2015.09.06 171
RMVXA 질문합니다. 1 류미엘 2015.10.07 95
RMVXA 질문있습니다. 설치부터.에러가 나네요. 2 자선1 2012.04.20 2624
RMVXA 질문이 좀 많아요 ㅠㅠ (맵 만들기) 4 file 시니쓰 2018.04.24 170
RMVXA 질문이 있으요..전투시 에너미 그래픽 관련 2 레이시아 2015.07.01 135
RMVXA 질문 입니다 2 Ice콘침 2014.02.06 685
RMVXA 진행하고 있는 캐릭터를 일정방향으로 밀어내는 이벤트 2 스네이쿠 2015.06.12 160
기본툴 사용법 RMVXA 직접 만든 도트를 불러오려면 어떻게 해야 하나요? 1 solbora 2019.08.24 84
RMVXA 직업을 변경해도 레벨이 그대로 유지되는법 1 CaliFA 2015.01.20 184
RMVXA 직업 최대 HP 제한 푸는법 2 귀성 2016.12.24 202
RMVXA 지형에 관한 질문입니다 6 zerlo 2012.07.14 1358
RMVXA 지형레이어가 아닌 레이어 위에 다른 타일로 덮어쓰게 하는 방법이 없나요? 4 repola 2014.05.22 532
Board Pagination Prev 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 149 Next
/ 149