赞 | 7 |
VIP | 866 |
好人卡 | 185 |
积分 | 32 |
经验 | 130059 |
最后登录 | 2024-11-27 |
在线时间 | 3618 小时 |
Lv3.寻梦者 双子人
- 梦石
- 0
- 星屑
- 3190
- 在线时间
- 3618 小时
- 注册时间
- 2009-4-4
- 帖子
- 4154
|
首先,打开脚本编辑器,在Main前面插入:- # ————————————————————————————————————
- # 分辨率放大
- # ————————————————————————————————————
- class Win32API
- GAME_INI_FILE = ".\\Game.ini"
- HWND_TOPMOST = 0
- HWND_TOP = -1
- SWP_NOMOVE = 0
- SWP_FRAMECHANGED = 0
- HWND_NOTTOPMOST = 0
- WM_GETMINMAXINFO = 24
- #——————————————————————————————————————
- def Win32API.GetPrivateProfileString(section, key)
- val = "\0"*256
- gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
- gps.call(section, key, "", val, 256, GAME_INI_FILE)
- val.delete!("\0")
- return val
- end
- #——————————————————————————————————————
- def Win32API.FindWindow(class_name, title)
- fw = Win32API.new('user32', 'FindWindow', %(p, p), 'i')
- hWnd = fw.call(class_name, title)
- return hWnd
- end
- #——————————————————————————————————————
- def Win32API.SetWindowPos(w, h)
- title = Win32API.GetPrivateProfileString("Game", "Title")
- hWnd = Win32API.FindWindow("RGSS Player", title)
- swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
- win = swp.call(hWnd, HWND_TOP, -3, -22, w + 6, h+32, WM_GETMINMAXINFO)
- return win
- end
- #——————————————————————————————————————
- def Win32API.client_size
- title = Win32API.GetPrivateProfileString("Game", "Title")
- hWnd = Win32API.FindWindow("RGSS Player", title)
- rect = [0, 0, 0, 0].pack('l4')
- Win32API.new('user32', 'GetClientRect', %w(l p), 'i').call(hWnd, rect)
- width, height = rect.unpack('l4')[2..3]
- return width, height
- end
- end
- $width = 800
- $height = 600
- win = Win32API.SetWindowPos($width, $height)
- if(win == 0)
- p "Size change has failed!"
- end
复制代码 然后找到Spriteset_Map这个脚本。
14行左右,- @viewport1 = Viewport.new(0, 0, 640, 480)
- @viewport2 = Viewport.new(0, 0, 640, 480)
- @viewport3 = Viewport.new(0, 0, 640, 480)
复制代码 其中640和480改为窗口大小 |
|