赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 6059 |
最后登录 | 2017-5-29 |
在线时间 | 274 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 274 小时
- 注册时间
- 2008-2-18
- 帖子
- 219
|
3楼
楼主 |
发表于 2008-10-2 18:43:46
|
只看该作者
以下引用「旅」于2008-10-2 9:19:32的发言:
http://rpg.blue/upload_program/goods/菜单_103366765.rar
请过目,稍微可以拿来用 = =
关于那个行走图的忘了加,请直接把以下内容添加到Window_Base脚本的最后一个end上方
def draw_头像(actor,x,y)
bitmap=Bitmap.new("Graphics/Pictures/#{actor}_Z")
src_rect = Rect.new(0, 0, 100, 100)
self.contents.blt(x, y, bitmap, src_rect)
end
搜索"draw_actor_graphic(@actor, 30, 102)"
在上方放入
draw_头像(@actor.name,X坐标,Y坐标)
[本贴由作者于 2008-10-2 9:21:54 最后编辑]
加点 后 原先的菜单不透明了 且加点菜单也不透明
请问该如何解决?
这是我的透明脚本,请看看:
- module Opacity_Menu
- def create_screen
- @screen = Spriteset_Map.new
- end
- def dispose_screen
- @screen.dispose
- end
- end
- class Window_Base < Window
- def initialize(x, y, width, height)
- super()
- @windowskin_name = $game_system.windowskin_name
- self.windowskin = RPG::Cache.windowskin(@windowskin_name)
- self.x = x
- self.y = y
- self.width = width
- self.height = height
- self.z = 100
- if $scene.is_a?(Scene_Menu) or
- $scene.is_a?(Scene_Item) or
- $scene.is_a?(Scene_Skill) or
- $scene.is_a?(Scene_Equip) or
- $scene.is_a?(Scene_Status) or
- $scene.is_a?(Scene_Change_Turn) or
- $scene.is_a?(Scene_Save) or
- $scene.is_a?(Scene_End) or
- $scene.is_a?(Scene_Shop)
- self.back_opacity = 160
- end
- end
- end
- class Scene_Menu
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
- class Scene_Item
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
- class Scene_Skill
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
- class Scene_Equip
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
- class Scene_Status
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
- class Scene_Change_Turn
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
复制代码
|
|