| 
 
| 赞 | 2 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 8 |  
| 经验 | 0 |  
| 最后登录 | 2021-7-8 |  
| 在线时间 | 122 小时 |  
 Lv2.观梦者 
	梦石0 星屑814 在线时间122 小时注册时间2018-7-23帖子114 | 
| 
本帖最后由 leungzero 于 2021-4-8 10:57 编辑
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 #==============================================================================
 # ■ Game_Player
 #------------------------------------------------------------------------------
 #  处理玩家人物的类。拥有事件启动的判定、地图的卷动等功能。
 # 本类的实例请参考 $game_player 。
 $v_id1 = 198 #显示年的变量编号
 $v_id2 = 199 #显示月的变量编号
 $v_id3 = 200 #显示日的变量编号
 #==============================================================================
 
 
 class Game_Player < Game_Character
 
 def getX
 @x
 end
 
 def getY
 @y
 end
 
 end
 
 
 #encoding:utf-8
 #==============================================================================
 # ■ Scene_Menu
 #------------------------------------------------------------------------------
 #  菜单画面
 #==============================================================================
 
 
 class Scene_Menu < Scene_MenuBase
 
 
 #--------------------------------------------------------------------------
 # ● 生成窗口
 #--------------------------------------------------------------------------
 def create_gold_window
 @gold_window = Window_Gold.new
 @gold_window.x = 0
 @gold_window.y = Graphics.height - @gold_window.height
 # 生成地图信息窗口
 @mapinfos_window = Window_MapInfo.new
 @mapinfos_window.x = 0
 @mapinfos_window.y = Graphics.height - @mapinfos_window.height - @gold_window.height
 
 end
 
 end
 
 
 #==============================================================================
 # ■ Window_MapInfo
 #------------------------------------------------------------------------------
 #  显示当前信息的窗口。 By SkyZH
 #==============================================================================
 
 
 class Window_MapInfo < Window_Base
 #--------------------------------------------------------------------------
 # ● 初始化对像
 #--------------------------------------------------------------------------
 def initialize
 super(0, 0, window_width, fitting_height(3))
 refresh
 end
 #--------------------------------------------------------------------------
 # ● 获取窗口的宽度
 #--------------------------------------------------------------------------
 def window_width
 return 160
 end
 #--------------------------------------------------------------------------
 # ● 刷新
 #--------------------------------------------------------------------------
 def refresh
 self.contents.clear
 self.contents.font.color = normal_color
 
 @a=$game_map.width
 @b=$game_map.height
 @BGMNAME=RPG::BGM.last.name
 
 
 draw_text(0, line_height*0, window_width-24, line_height,"年:" + $game_variables[$v_id1].to_s,0)
 draw_text(0, line_height*1, window_width-24, line_height,"月:" + $game_variables[$v_id2].to_s,0)
 draw_text(0, line_height*2, window_width-24, line_height,"日:" + $game_variables[$v_id3].to_s,0)
 
 原本这个存档是没下面图示中年月日这三条的
 
   换句话说,显示这三行起码是这个脚本的功能之一。
 
 super(0, 0, window_width, fitting_height(3))
 这个脚本里,如果把上面这段的height(3))的数值3改为6,图示就会变成下面这样
 
   
 理论上,应该是多增加了三行位置吧?我也知道下面这三行就是通过这个插件脚本所增加显示内容。而这几条显示内容是跟
 super(0, 0, window_width, fitting_height(3))这个脚本条目所运行的内容属于平行层面关系(也许表述会让很多人都摸不着脑子。懂就最好不过)
 
 draw_text(0, line_height*0, window_width-24, line_height,"年:" + $game_variables[$v_id1].to_s,0)
 draw_text(0, line_height*1, window_width-24, line_height,"月:" + $game_variables[$v_id2].to_s,0)
 draw_text(0, line_height*2, window_width-24, line_height,"日:" + $game_variables[$v_id3].to_s,0)
 
 但是当我继续这样添加
 draw_text(0, line_height*3, window_width-24, line_height,"日:" + $game_variables[$v_id4].to_s,0)
 draw_text(0, line_height*4, window_width-24, line_height,"日:" + $game_variables[$v_id5].to_s,0)
 draw_text(0, line_height*5, window_width-24, line_height,"日:" + $game_variables[$v_id6].to_s,0)
 
 或者这几条的345 改为-1-2-3
 都会显示这边副本的错误
  。让我改19行?这什么鬼?明明完整的新增框是6行,但剩余那三行就是添加不了? 
 
 
 
 | 
 |