赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 8665 |
最后登录 | 2013-6-1 |
在线时间 | 1 小时 |
Lv1.梦旅人 冰
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 1 小时
- 注册时间
- 2007-1-6
- 帖子
- 165
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
这个是我修改后的:
- Playerdate_SWITCH = 1 # 当1号开关打开,本脚本才开始工作。
- Yellowkey_itemid=1
- Bluekey_itemid=2
- Redkey_itemid=3
- #==============================================================================
- # ■ Window_PlayerDate
- #------------------------------------------------------------------------------
- # 显示玩家状态的窗口。
- #==============================================================================
- class Window_PlayerDate < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化窗口
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 150, 460)#395)#192,416
- self.contents = Bitmap.new(width - 32, height - 32)
- self.z = 1
- self.opacity=0
- # self.back_opacity =255
- # self.contents_opacity = 0
- self.visible = false
- # self.contents.clear
- refresh
- # if $game_switches[XY_SWITCH]
- # self.contents_opacity = 0
- # else
- # self.contents_opacity = 5
- # end
-
- end
-
-
- def refresh
-
- self.contents.clear
- #actor = $game_party.actors[1]
- draw_actor_graphic($game_party.actors[0], 20, 45)
- self.contents.font.color = text_color(3)
- # self.contents.draw_text(4, 0, 70, 45, "第", 2)
- self.contents.draw_text(6, 0, 110, 45, "文", 2)
-
-
-
-
- # @xgraphic=$game_party.actors[0].battler_name
- @xfloor=$game_variables[2]
-
- self.contents.font.color = normal_color
- self.contents.draw_text(0, 0, 60, 45, @xfloor.to_s, 2)
-
-
-
-
-
-
- end
-
- def judge#用于判断是否数据变更,节约内存
- # return true if @xgraphic=$game_party.actors[0].battler_name
- return true if @xfloor!=$game_variables[2]
-
- end
- end
- ###########################################################################
- # 下面的东西不需要掌握~ #
- ###########################################################################
- class Scene_Map
- alias xy_66rpg_main main
- def main
- @Playerdate_window = Window_PlayerDate.new
- # @xy_window.x = 640 - 160
- # @xy_window.y = 480 - 96
- # @xy_window.opacity = 0
- xy_66rpg_main
- @Playerdate_window .dispose
- end
- #--------------------------------------------------------------------------
- # ● 刷新画面
- #--------------------------------------------------------------------------
- alias xy_66rpg_update update
- def update
- xy_66rpg_update
- if $game_switches[Playerdate_SWITCH]
- @Playerdate_window .visible = true
- @Playerdate_window .refresh if @Playerdate_window.judge
- else
- @Playerdate_window .visible = false
- end
- end
- end
- #==========================================================================
- # 本脚本来自www.66rpg.com,用于任何游戏请保留此信息。别以为加密就可以del哦
- #==========================================================================
复制代码 |
|