设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 4850|回复: 4
打印 上一主题 下一主题

[已经解决] VA的全屏脚本~~~这地方标题也要长么?

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
8 小时
注册时间
2013-2-13
帖子
14
跳转到指定楼层
1
 楼主| 发表于 2013-2-17 23:33:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
http://rpg.blue/forum.php?mod=viewthread&tid=276859
在论坛上看到了这个脚本的说,可惜这个脚本是XP的,在论坛搜类似VA的脚本没发现~不知哪位大大给个类似的全屏脚本,或者改一下这个脚本,
本人小白看不懂不会改脚本。。。谢谢了~~~

Lv5.捕梦者

梦石
0
星屑
22713
在线时间
8623 小时
注册时间
2011-12-31
帖子
3367
2
发表于 2013-2-18 00:03:31 | 只看该作者

  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.     #
  12.     #No Customization
  13.     #
  14.     #----------#
  15.     #-- Script by: V.M of D.T
  16.     #--- Free to use in any project with credit given
  17.      
  18.     SWPO = Win32API.new 'user32', 'SetWindowPos', ['l','i','i','i','i','i','p'], 'i'
  19.     WINX = Win32API.new 'user32', 'FindWindowEx', ['l','l','p','p'], 'i'
  20.     SMET = Win32API.new 'user32', 'GetSystemMetrics', ['i'], 'i'
  21.      
  22.     module Window_Resize
  23.       def self.r(width, height)
  24.         resw = SMET.call(0)
  25.         resh = SMET.call(1)
  26.         window_loc = WINX.call(0,0,"RGSS Player",0)
  27.         width += (SMET.call(5) + SMET.call(45)) * 2
  28.         height += (SMET.call(6) + SMET.call(45)) * 2 + SMET.call(4)
  29.         x = (resw - width) / 2; y = (resh - height) / 2
  30.         y = 0 if y < 0;x = 0 if x < 0
  31.         SWPO.call(window_loc,0,x,y,width,height,0)
  32.       end
  33.       def self.f
  34.         resw = SMET.call(0)
  35.         resh = SMET.call(1)
  36.         window_loc = WINX.call(0,0,"RGSS Player",0)
  37.         SWPO.call(window_loc,0,0,0,resw,resh,0)
  38.       end
  39.       def self.full
  40.         resw = SMET.call(0)
  41.         return unless resw > 640
  42.         toggle
  43.       end
  44.       def self.window
  45.         resw = SMET.call(0)
  46.         return unless resw < 640
  47.         toggle
  48.       end
  49.       def self.toggle
  50.         keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v'
  51.         keybd.call 0xA4, 0, 0, 0
  52.         keybd.call 13, 0, 0, 0
  53.         keybd.call 13, 0, 2, 0
  54.         keybd.call 0xA4, 0, 2, 0
  55.       end
  56.     end
  57. #Basic Window Resizer v1.1
  58. #----------#
  59. #Features: Allows you to resize the window to whatever size you like! (This is not
  60. #            like Graphics.resize, this will scale to fit)
  61. #
  62. #Usage:   Script calls:
  63. #           Window_Resize.r(width, height)     - Self-explanatory
  64. #           Window_Resize.f                    - fits the game window to monitor size
  65. #           Window_Resize.full                 - switches to full screen unless already fullscreened
  66. #           Window_Resize.window               - same as full but opposite
  67. #
  68. #No Customization
复制代码

点评

脚本最后有 Script calls 介绍,您有没有使用?  发表于 2013-2-18 00:16
啊哦~我装上之后怎么没有效果呢~求大大解答。  发表于 2013-2-18 00:11

评分

参与人数 1梦石 +1 收起 理由
Mic_洛洛 + 1 认可答案

查看全部评分

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
8 小时
注册时间
2013-2-13
帖子
14
3
 楼主| 发表于 2013-2-18 00:06:52 | 只看该作者
tseyik 发表于 2013-2-18 00:03

啊哦~厉害哈~我去试试~谢谢。
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
22713
在线时间
8623 小时
注册时间
2011-12-31
帖子
3367
4
发表于 2013-2-18 00:19:13 | 只看该作者
本帖最后由 tseyik 于 2013-2-18 00:24 编辑

在事件中使用劇本使用這些指令

#           Window_Resize.r(width, height)     - Self-explanatory
例Window_Resize.r(640, 480)-画面改成640x480
#           Window_Resize.f                    - fits the game window to monitor size
#           Window_Resize.full                 - switches to full screen unless already fullscreened
#           Window_Resize.window         - same as full but opposite
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
91 小时
注册时间
2012-1-31
帖子
66
5
发表于 2013-2-18 13:36:49 | 只看该作者
va好像可以直接全频吧,在游戏运行中按F1。

点评

F1是帮助,是F4  发表于 2013-2-19 18:44
嗯哪?反正我记着可以按F1吧、、  发表于 2013-2-19 12:22
ALT+ENTER  发表于 2013-2-18 16:56
↖这位是帅哥噢耶。

~~~模拟世界v1.0正在制作...
欢迎各位加入彩虹工作室,有意者私聊哈~~~

各位:发帖注意你的马甲,编辑注意你的节操!

↙这位是基佬噢耶。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-25 23:16

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表