赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 11 |
经验 | 0 |
最后登录 | 2025-4-3 |
在线时间 | 147 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1065
- 在线时间
- 147 小时
- 注册时间
- 2019-3-30
- 帖子
- 25
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
扩展装备种类减小装备大小以后,下边的添加的装备种类和装备都不能显示了这怎么办[index]- #==============================================================================
- # ■ Window_EquipRight
- #------------------------------------------------------------------------------
- # 装备画面、显示角色现在装备的物品的窗口。
- #==============================================================================
- class Window_EquipRight < Window_Selectable
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # actor : 角色
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(30, 230, 308, 155)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.opacity = 0
- @actor = actor
- refresh
- self.index = 0
- end
- #--------------------------------------------------------------------------
- # ● 获取物品
- #--------------------------------------------------------------------------
- def item
- return @data[self.index]
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- @data = []
- @data.push($data_weapons[@actor.weapon_id])
- @data.push($data_armors[@actor.armor1_id])
- @data.push($data_armors[@actor.armor2_id])
- @data.push($data_armors[@actor.armor3_id])
- @data.push($data_armors[@actor.armor4_id])
- @data.push($data_armors[@actor.armor5_id])
- @data.push($data_armors[@actor.armor6_id])
- @data.push($data_armors[@actor.armor7_id])
- @item_max = @data.size
- self.contents.font.color = system_color
- self.contents.font.size = 25
- a = 32
- b = 0
- self.contents.draw_text(4, a * 0, 92, a, $data_system.words.weapon)
- self.contents.draw_text(4, a * 1, 92, a, $data_system.words.armor1)
- self.contents.draw_text(4, a * 2, 92, a, $data_system.words.armor2)
- self.contents.draw_text(4, a * 3, 92, a, $data_system.words.armor3)
- self.contents.draw_text(5, a * 4, 92, a, $data_system.words.armor4)
- self.contents.draw_text(5, a * 5, 92, a, "马匹")
- self.contents.draw_text(5, a * 6, 92, a, "石")
- self.contents.draw_text(5, a * 7, 92, a, "玉")
- draw_item_name(@data[0], 92, a * 0)
- draw_item_name(@data[1], 92, a * 1)
- draw_item_name(@data[2], 92, a * 2)
- draw_item_name(@data[3], 92, a * 3)
- draw_item_name(@data[4], 92, a * 4)
- draw_item_name(@data[5], 92, a * 5)
- draw_item_name(@data[6], 92, a * 6)
- draw_item_name(@data[7], 92, a * 7)
- end
- #--------------------------------------------------------------------------
- # ● 刷新帮助文本
- #--------------------------------------------------------------------------
- def update_help
- @help_window.set_text(self.item == nil ? "" : self.item.description)
- end
- end
复制代码
|
|