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

Project1

 找回密码
 注册会员
搜索
12
返回列表 发新帖
楼主: congwsbn
打印 上一主题 下一主题

[已经过期] [求救]VX如何只改变提示选择框的位置和大小

[复制链接]

Lv3.寻梦者

梦石
0
星屑
1257
在线时间
423 小时
注册时间
2011-6-30
帖子
497
11
发表于 2013-1-5 09:00:38 | 只看该作者
要是这么说的话,你应该参考window这个类,有关窗口的描绘上作出修改。你用了新的对话框样式,最好也参考一下你新增内容的脚本。单改选择项的窗口显示,我也是新手,也在钻研魔女之家的系统。。。
点这里给我发邮件
有事欢迎给我发邮件哟~~
不出意外的话都会回复的哟~~~
邮箱:[email protected]
个人主页:curatorjin.github.io
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1428
在线时间
1705 小时
注册时间
2011-8-17
帖子
818
12
发表于 2013-1-5 10:27:23 | 只看该作者
主要是改了837计算坐标下面的公式,自己对比一下吧
roguelike求生RPG研发中....
回复 支持 反对

使用道具 举报

Lv3.寻梦者

最萌的小猫

梦石
0
星屑
1347
在线时间
692 小时
注册时间
2011-11-5
帖子
3443
13
发表于 2013-1-5 17:48:05 | 只看该作者
VX区没人管了么……都连贴的有木有

点评

连三贴才扣分……  发表于 2013-1-17 17:44
小猫,感情浓郁的天然嘿啾一只,属性:水,嘿啾,无轨迹流线萌。喜欢在正午伸出小爪子卖着各种次元萌。平行穿越次元萌差。
如需要小猫,请认准啾怪时空电话。这宇宙萌源的秘密,需要找到时空边界萌源能量爆发的封印钥匙。快来和小猫一同去冒险吧!
回复 支持 反对

使用道具 举报

Lv5.捕梦者 (暗夜天使)

梦石
18
星屑
12191
在线时间
2049 小时
注册时间
2012-12-12
帖子
541
14
 楼主| 发表于 2013-1-5 23:42:33 | 只看该作者
congwsbn 发表于 2013-1-5 02:13
我之前看到一个用事件脚本做选择项的,但是英语不行,脚本又新手。怎么也改不到想要的效果……超级拙计! ...

  • module Choice_Configuration
  •   ColorLeft = Color.new(0,0,0,0)
  •   ColorRight = Color.new(0,0,0,0)
  •   WindowHeight = 56
  •   WindowWidth = 170
  •   WindowSpacing = -1
  •   ColorShadow = Color.new(0,0,0,0)
  •   VariableId = 54
  • end
  • class Scene_Choice < Scene_Base
  •   include Choice_Configuration
  •   def initialize(*list)
  •     @list = list   
  •   end
  •   
  •   def start
  •     @spriteset = Spriteset_Map.new
  •     @choice_windows = []
  •     @choice_number = @list.size
  •     start_y = (416 - @choice_number * WindowHeight - (@choice_number - 1) * WindowSpacing) / 2
  •     start_x = (544 - WindowWidth) / 2
  •     @list.each_with_index do |choice,index|
  •       window = Window_Base.new(start_x,start_y + index * (WindowHeight + WindowSpacing),WindowWidth,WindowHeight)
  •       window.contents.dispose
  •       window.contents = Bitmap.new(WindowWidth - 34,WindowHeight - 34)
  •       window.contents.gradient_fill_rect(2,2,WindowWidth - 32 - 2,22,ColorLeft,ColorRight)
  •       window.contents.draw_text(0,0,WindowWidth - 32,24,choice,1)
  •       window.opacity = 220
  •       @choice_windows.push(window)
  •     end
  •     for i in 0...@choice_number
  •       set_unactive(i)
  •     end
  •     @index = 0
  •     set_active(@index)
  •   end
  •   def terminate
  •     @spriteset.dispose
  •     @choice_windows.each{|window| window.dispose}
  •   end
  •    
  •   def set_unactive(index)
  •     target = @choice_windows[index]
  •     target.contents.clear_rect(0,0,WindowWidth - 32 - 2,2)
  •     target.contents.clear_rect(0,0,2,22)
  •     target.contents.fill_rect(2,22,WindowWidth - 32 - 2,2,ColorShadow)
  •     target.contents.fill_rect(WindowWidth - 32 - 2,2,2,22,ColorShadow)
  •     target.ox = -2
  •     target.oy = -2
  •   end
  •   
  •   def set_active(index)
  •     target = @choice_windows[index]
  •     target.contents.clear_rect(2,22,WindowWidth - 32 - 2,2)
  •     target.contents.clear_rect(WindowWidth - 32 - 2,2,2,22)
  •     target.contents.fill_rect(0,0,WindowWidth - 32 - 2,2,ColorShadow)
  •     target.contents.fill_rect(0,0,2,22,ColorShadow)
  •     target.ox = 0
  •     target.oy = 0
  •   end
  •   
  •   def update
  •     @choice_windows.each{|window| window.update}
  •     if Input.trigger?(Input::DOWN)
  •       Sound.play_cursor
  •       set_unactive(@index)
  •       @index += 1
  •       @index %= @choice_number
  •       set_active(@index)
  •     end
  •     if Input.trigger?(Input::UP)
  •       Sound.play_cursor
  •       set_unactive(@index)
  •       @index -= 1
  •       @index %= @choice_number
  •       set_active(@index)
  •     end
  •     if Input.trigger?(Input::C)
  •       Sound.play_decision
  •       $game_variables[VariableId] = @index + 1
  •       $scene = Scene_Map.new
  •     end
  •   end
  • end


通过编写“$scene=Scene_Choice.new("是","否")”脚本来用的……
这是被我稍微改过的……原本那个我没存。有两个问题,一个是“是”“否”的选项框不是在同一个框里。第二问题是没有光标框……(不太懂论坛,有格式不对的地方请原谅>_<

评分

参与人数 1星屑 +80 收起 理由
咕噜 + 80 用代码

查看全部评分


葱兔の游戏列表 (´・ω・`)
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-27 20:18

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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