赞 | 0 |
VIP | 0 |
好人卡 | 110 |
积分 | 1 |
经验 | 24791 |
最后登录 | 2013-6-25 |
在线时间 | 687 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 687 小时
- 注册时间
- 2012-10-29
- 帖子
- 1543
|
本帖最后由 j433463 于 2012-11-30 15:35 编辑
喔,您问的对,Scene 中比较好改,经您一问我也换成在 Scene 中加背景,
物品 Scene_Item,菜单 Scene_Menu,特技 Scene_Skill 和 状态 Scene_Status 中找个位置放就可以了,
我用状态作例子好了:- #encoding:utf-8
- #==============================================================================
- # ■ Scene_Status
- #------------------------------------------------------------------------------
- # 状态画面
- #==============================================================================
- class Scene_Status < Scene_MenuBase
- #--------------------------------------------------------------------------
- # ● 开始处理
- #--------------------------------------------------------------------------
- def start
- super
- @status_window = Window_Status.new(@actor)
- @status_window.set_handler(:cancel, method(:return_scene))
- @status_window.set_handler(:pagedown, method(:next_actor))
- @status_window.set_handler(:pageup, method(:prev_actor))
- end
- #--------------------------------------------------------------------------
- # ● 生成背景
- #--------------------------------------------------------------------------
- def create_background
- @background_sprite = Sprite.new
- @background_sprite.bitmap = Cache.load_bitmap("Graphics/Titles1/","063")
- @background_sprite.color.set(0, 0, 0, 0)
- end
- #--------------------------------------------------------------------------
- # ● 切换角色
- #--------------------------------------------------------------------------
- def on_actor_change
- @status_window.actor = @actor
- @status_window.activate
- end
- end
复制代码 另外,逛国外 rgss 论坛看到有个不透明度脚本可以方便一次调整默认视窗的透明度,
但像对于敌人图鉴和任务系统脚本不起作用,但也很好用了,跟 XP 的那个一样好用:
- #===========================================================================
- # Window Color Opacity - v1.0
- # Author: Melkino
- #===========================================================================
- $imported = {} if $imported.nil?
- $imported["MK-WindowOpacity"] = true
- #-------------------------------------------------------------------------
- # ▼ About
- #-------------------------------------------------------------------------
- # This script lets you change the opacity of the colored portion of game
- # windows. Window borders are unaffected, though.
- #
- #-------------------------------------------------------------------------
- # ▼ Installation
- #-------------------------------------------------------------------------
- # Paste below Materials and above Main.
- #
- #-------------------------------------------------------------------------
- # ▼ Updates
- #-------------------------------------------------------------------------
- # May 9, 2012 - Started & finished script
- #
- #-------------------------------------------------------------------------
- class Window_Base < Window
- module MK_WIN_OPA
-
- # Input a value between 0-255.
- # 0 makes windows fully transparent, while 255 makes them opaque.
- OPACITY = 120 #<--只改这不透明值
-
- end #module
-
- #===========================================================================
- # Customization ends here.
- #===========================================================================
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
-
- alias mk_initialize initialize
- def initialize(x, y, width, height)
- super
- self.windowskin = Cache.system("Window")
- self.back_opacity = MK_WIN_OPA::OPACITY
- update_padding
- update_tone
- create_contents
- @opening = @closing = false
- end
-
- end # class
复制代码 |
|