질문과 답변

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 12460
RMVXA 적이 공격하는 이펙트가 화면 중앙에 뜨는 방법을 찾습니다! 자유기사 2014.12.07 327
RMVXA RPG VX ACE 해상도 높이는 방법 아시나요?! 뉴리키 2018.04.26 327
RMVXA 0데미지일 때 효과음 나오도록 우켈켈박사 2014.11.17 327
RMVXA 전체키 스크립트 사용 방법좀요 ㅠ 1 SKT스피릿 2015.08.15 327
RMVXA 캐릭터칩 적용과 만들기에대해 알려주세요!! 1 file 리렐리 2016.12.31 328
RMVXA 퍼즐 스크립트를 구하려고 합니다. 1 ehctj3673 2014.12.21 328
RMVXA 화면이 부드럽게 이동하는 스크립트 없나요? 라노스 2014.11.16 330
RMVXA 게임 데이터로 압축하기 질문합니다... 1 몽롱하다 2015.11.21 330
RMVXA 타이틀 메뉴 추가 2 u-ni 2016.03.13 330
RMVXA RPG maker vx ace 타일 적용 시키기 2 하루0117 2018.07.02 332
RMVXA 어디에 닿을시 화분이나 물건이 바닥으로 떨어지는 모습을 하고싶어요 2 다앙테 2015.08.04 332
RMVXA 세이브창 아이템창 크기 조절 못하나요 ㅠㅠ 2 EMSN 2015.01.19 333
RMVXA RPG VX ACE 툴로 SRPG제작 1 고빈 2016.03.02 333
RMVXA 아이템을 이용해 그림, 대사 띄우기 2 태태 2017.11.18 333
RMVXA 대기멤버는 전투멤버가 받는 경험치의 2/3만 받게 설정할 수도 있나요? 2 시캐 2014.11.05 334
RMVXA 퀘스트 알리미 창 계속 뜨게 하는 법 2 Leonis 2014.11.20 334
RMVXA 추가한 메뉴 이름 변경하는법 4 file 스풋 2017.08.01 334
RMVXA Victor 엔진을 활용한 animated battler 전투에서 반격 발동시에 전투가 멈추어버립니다. RAISON 2014.11.04 335
RMVXA 스킬 데미지 계산식 1 겜제작광 2014.12.30 336
RMVXA vxace 게임 창크기 조절하는 스크립트질문좀할게요 1 상생 2015.12.13 336
Board Pagination Prev 1 ... 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 ... 150 Next
/ 150