赞 | 0 |
VIP | 0 |
好人卡 | 110 |
积分 | 1 |
经验 | 24791 |
最后登录 | 2013-6-25 |
在线时间 | 687 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 687 小时
- 注册时间
- 2012-10-29
- 帖子
- 1543
|
本帖最后由 j433463 于 2013-2-3 09:32 编辑
这一段直接贴到您那国外脚本的最底下即可:- #==============================================================================
- # ■ Window_Completion
- #------------------------------------------------------------------------------
- # 显示完成度的视窗
- #==============================================================================
- class Window_Completion < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化物件
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, window_width, fitting_height(1))
- @prestige = "完成" #单位名,不喜欢自己改
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 取得视窗的宽度
- #--------------------------------------------------------------------------
- def window_width
- return 160
- end
- #--------------------------------------------------------------------------
- # ● 重新整理
- #--------------------------------------------------------------------------
- def refresh
- contents.clear
- cx = text_size(@prestige).width
- change_color(normal_color)
- draw_text(x, y, contents_width - cx - 6, line_height, $game_variables[1], 2) #描绘完成值,如果不是用1号变量,自己改 1 的值
- change_color(system_color)
- draw_text(x, y, contents_width - 4, line_height, @prestige, 2) #描绘单位名,这个不必动它
- end
- #--------------------------------------------------------------------------
- # ● 开启视窗
- #--------------------------------------------------------------------------
- def open
- refresh
- super
- end
- end
- class Scene_Menu < Scene_MenuBase
- #--------------------------------------------------------------------------
- # ● 生成金钱窗口
- #--------------------------------------------------------------------------
- alias create_completion_window create_gold_window
- def create_gold_window
- create_completion_window
- @completion_window = Window_Completion.new
- @completion_window.x = 0
- @completion_window.y = Graphics.height - @completion_window.height * 2 #窗口位置高度改这儿
- end
- end
复制代码 |
评分
-
查看全部评分
|