设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 478|回复: 0
打印 上一主题 下一主题

[已经过期] 物品图鉴问题

[复制链接]

Lv2.观梦者

梦石
0
星屑
284
在线时间
34 小时
注册时间
2022-10-6
帖子
5
跳转到指定楼层
1
发表于 2023-8-14 09:18:22 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 x24678 于 2023-8-14 09:24 编辑

我用了白魔的物品脚本,
然后刷怪掉落的装备物品和商店买的物品都不在图鉴里显示,
工程是用的重装机兵V1开源系统
  1. #==============================================================================
  2. # ■ RGSS3 物品图鉴 ver 1.01 初期設定
  3. #------------------------------------------------------------------------------
  4. #  配布元:
  5. #     白の魔 http://izumiwhite.web.fc2.com/
  6. #
  7. #  利用規約:
  8. #     RPGツクールVX Aceの正規の登録者のみご利用になれます。
  9. #     利用報告?著作権表示とかは必要ありません。
  10. #     改造もご自由にどうぞ。
  11. #     何か問題が発生しても責任は持ちません。
  12. #==============================================================================
  13. =begin

  14. 可用脚本:

  15. SceneManager.call(Scene_ItemDictionary)  显示物品图鉴画面

  16. i_dictionary_switch_on(n)          在图鉴中显示n号物品
  17. i_dictionary_switch_off(n)        在图鉴中消除n号物品
  18. w_dictionary_switch_on(n)          在图鉴中显示n号武器
  19. w_dictionary_switch_off(n)        在图鉴中消除n号武器
  20. a_dictionary_switch_on(n)          在图鉴中显示n号护甲
  21. a_dictionary_switch_off(n)        在图鉴中消除n号护甲

  22. $game_variables[n] = item_dictionary_perfection   图鉴完成度 = n号变量的值(100 = 全部搜集)

  23. 可用备注:

  24. <图鉴特性:文本>  在图鉴中,该物品的特性为“文本”
  25. <图鉴无效>   该物品不显示在物品图鉴中


  26. 注意事项:
  27. 1.初始装备不会显示在图鉴中,需要你使用脚本手动添加
  28. 2.空白名称的物品不会显示在图鉴中


  29. =end
  30. #-------------------------------------------------------------------------------
  31. # ★ 初期設定。
  32. #-------------------------------------------------------------------------------
  33. module WD_itemdictionary_layout

  34. #=== 各物品类别的设定 ================================================
  35. #
  36. #   *_***_display       : true则显示。false则不表示。
  37. #   *_***_display_x     : 显示位置的x座标
  38. #   *_***_display_y     : 显示位置的y座标
  39. #   *_***_display_width : 文本宽度
  40. #   *_***_display_text* : 文本
  41. #
  42. #===============================================================================

  43. #===全图鉴通用設定==============================================================

  44.   #字体大小
  45.   C_font_size = 20

  46. #===道具図鑑設定================================================================

  47.   #id
  48.   I_id_display        = true
  49.   I_id_display_x      = 0
  50.   I_id_display_y      = 0
  51.   I_id_display_width  = 60
  52.   I_id_display_digit  = 3 #行数
  53.   
  54.   #名称
  55.   I_name_display        = true
  56.   I_name_display_x      = 84
  57.   I_name_display_y      = 0
  58.   I_name_display_width  = 172

  59.   #价格
  60.   I_price_display        = true
  61.   I_price_display_x      = 150
  62.   I_price_display_y      = 32
  63.   I_price_display_width  = 136
  64.   I_price_display_text1  = "价格"

  65.   #使用场合
  66.   I_occasion_display        = true
  67.   I_occasion_display_x      = 0
  68.   I_occasion_display_y      = 62
  69.   I_occasion_display_width  = 140
  70.   I_occasion_display_text1  = "使用"
  71.   I_occasion_display_text2  = "通常时"
  72.   I_occasion_display_text3  = "战斗时"
  73.   I_occasion_display_text4  = "菜单中"
  74.   I_occasion_display_text5  = "-"

  75.   #消耗
  76.   I_consumable_display        = true
  77.   I_consumable_display_x      = 150
  78.   I_consumable_display_y      = 62
  79.   I_consumable_display_width  = 140
  80.   I_consumable_display_text1  = "消耗"
  81.   I_consumable_display_text2  = "消耗品"
  82.   I_consumable_display_text3  = "非消耗品"

  83.   #特性
  84.   I_option_display       = true
  85.   I_option_display_x     = 0
  86.   I_option_display_y     = 92
  87.   I_option_display_width = 286
  88.   I_option_display_text1 = "特性"
  89.   I_option_display_text2 = "无"

  90. #===武器图鉴設定================================================================

  91.   #id
  92.   W_id_display        = true
  93.   W_id_display_x      = 0
  94.   W_id_display_y      = 0
  95.   W_id_display_width  = 60
  96.   W_id_display_digit  = 3 #桁数

  97.   #名称
  98.   W_name_display        = true
  99.   W_name_display_x      = 84
  100.   W_name_display_y      = 0
  101.   W_name_display_width  = 172

  102.   #类型
  103.   W_type_display        = true
  104.   W_type_display_x      = 0
  105.   W_type_display_y      = 32
  106.   W_type_display_width  = 136
  107.   W_type_display_text1  = "类型"

  108.   #价格
  109.   W_price_display       = true
  110.   W_price_display_x     = 150
  111.   W_price_display_y     = 32
  112.   W_price_display_width = 136
  113.   W_price_display_text1 = "价格"

  114.   #物理攻击
  115.   W_atk_display         = true
  116.   W_atk_display_x       = 0
  117.   W_atk_display_y       = 62
  118.   W_atk_display_width   = 136

  119.   #物理防御
  120.   W_def_display         = true
  121.   W_def_display_x       = 150
  122.   W_def_display_y       = 62
  123.   W_def_display_width   = 136

  124.   #魔法攻击
  125.   W_mat_display         = true
  126.   W_mat_display_x       = 0
  127.   W_mat_display_y       = 82
  128.   W_mat_display_width   = 136

  129.   #魔法防御
  130.   W_mdf_display         = true
  131.   W_mdf_display_x       = 150
  132.   W_mdf_display_y       = 82
  133.   W_mdf_display_width   = 136

  134.   #敏捷值
  135.   W_agi_display         = true
  136.   W_agi_display_x       = 0
  137.   W_agi_display_y       = 102
  138.   W_agi_display_width   = 136

  139.   #幸运值
  140.   W_luk_display         = true
  141.   W_luk_display_x       = 150
  142.   W_luk_display_y       = 102
  143.   W_luk_display_width   = 136

  144.   #最大HP
  145.   W_mhp_display         = true
  146.   W_mhp_display_x       = 0
  147.   W_mhp_display_y       = 122
  148.   W_mhp_display_width   = 136

  149.   #最大MP
  150.   W_mmp_display         = true
  151.   W_mmp_display_x       = 150
  152.   W_mmp_display_y       = 122
  153.   W_mmp_display_width   = 136

  154.   #特性
  155.   W_option_display       = true
  156.   W_option_display_x     = 0
  157.   W_option_display_y     = 152
  158.   W_option_display_width = 286
  159.   W_option_display_text1 = "特性"
  160.   W_option_display_text2 = "无"


  161. #===护甲图鉴設定================================================================

  162.   #id
  163.   A_id_display        = true
  164.   A_id_display_x      = 0
  165.   A_id_display_y      = 0
  166.   A_id_display_width  = 60
  167.   A_id_display_digit  = 3 #桁数

  168.   #名称
  169.   A_name_display        = true
  170.   A_name_display_x      = 84
  171.   A_name_display_y      = 0
  172.   A_name_display_width  = 172

  173.   #类型
  174.   A_type_display        = true
  175.   A_type_display_x      = 0
  176.   A_type_display_y      = 32
  177.   A_type_display_width  = 136
  178.   A_type_display_text1  = "类型"

  179.   #价格
  180.   A_price_display       = true
  181.   A_price_display_x     = 150
  182.   A_price_display_y     = 32
  183.   A_price_display_width = 136
  184.   A_price_display_text1 = "价格"

  185.   #物理攻击
  186.   A_atk_display         = true
  187.   A_atk_display_x       = 0
  188.   A_atk_display_y       = 62
  189.   A_atk_display_width   = 136

  190.   #物理防御
  191.   A_def_display         = true
  192.   A_def_display_x       = 150
  193.   A_def_display_y       = 62
  194.   A_def_display_width   = 136

  195.   #魔法攻击
  196.   A_mat_display         = true
  197.   A_mat_display_x       = 0
  198.   A_mat_display_y       = 82
  199.   A_mat_display_width   = 136

  200.   #魔法防御
  201.   A_mdf_display         = true
  202.   A_mdf_display_x       = 150
  203.   A_mdf_display_y       = 82
  204.   A_mdf_display_width   = 136

  205.   #敏捷值
  206.   A_agi_display         = true
  207.   A_agi_display_x       = 0
  208.   A_agi_display_y       = 102
  209.   A_agi_display_width   = 136

  210.   #幸运值
  211.   A_luk_display         = true
  212.   A_luk_display_x       = 150
  213.   A_luk_display_y       = 102
  214.   A_luk_display_width   = 136

  215.   #最大HP
  216.   A_mhp_display         = true
  217.   A_mhp_display_x       = 0
  218.   A_mhp_display_y       = 122
  219.   A_mhp_display_width   = 136

  220.   #最大MP
  221.   A_mmp_display         = true
  222.   A_mmp_display_x       = 150
  223.   A_mmp_display_y       = 122
  224.   A_mmp_display_width   = 136

  225.   #特性
  226.   A_option_display       = true
  227.   A_option_display_x     = 0
  228.   A_option_display_y     = 152
  229.   A_option_display_width = 286
  230.   A_option_display_text1 = "特性"
  231.   A_option_display_text2 = "无"


  232. end
  233. #-------------------------------------------------------------------------------
  234. # ★ 初期設定结束
  235. #-------------------------------------------------------------------------------
复制代码
  1. #==============================================================================
  2. # ■ RGSS3 物品图鉴 ver 1.01 本体プログラム
  3. #------------------------------------------------------------------------------
  4. #  配布元:
  5. #     白の魔 http://izumiwhite.web.fc2.com/
  6. #
  7. #  利用規約:
  8. #     RPGツクールVX Aceの正規の登録者のみご利用になれます。
  9. #     利用報告?著作権表示とかは必要ありません。
  10. #     改造もご自由にどうぞ。
  11. #     何か問題が発生しても責任は持ちません。
  12. #==============================================================================

  13. #==============================================================================
  14. # ■ WD_itemdictionary
  15. #------------------------------------------------------------------------------
  16. #  アイテム図鑑用の共通メソッドです。
  17. #==============================================================================

  18. module WD_itemdictionary
  19.   def i_dictionary_switch_on(id)
  20.     $game_system.i_dic_sw = [] if $game_system.i_dic_sw == nil
  21.     $game_system.i_dic_sw[id] = false if $game_system.i_dic_sw[id] == nil
  22.     $game_system.i_dic_sw[id] = true
  23.   end
  24.   def i_dictionary_switch_off(id)
  25.     $game_system.i_dic_sw = [] if $game_system.i_dic_sw == nil
  26.     $game_system.i_dic_sw[id] = false if $game_system.i_dic_sw[id] == nil
  27.     $game_system.i_dic_sw[id] = false
  28.   end
  29.   def i_dictionary_switch_on?(id)
  30.     $game_system.i_dic_sw = [] if $game_system.i_dic_sw == nil
  31.     $game_system.i_dic_sw[id] = false if $game_system.i_dic_sw[id] == nil
  32.     return $game_system.i_dic_sw[id]
  33.   end
  34.   def w_dictionary_switch_on(id)
  35.     $game_system.w_dic_sw = [] if $game_system.w_dic_sw == nil
  36.     $game_system.w_dic_sw[id] = false if $game_system.w_dic_sw[id] == nil
  37.     $game_system.w_dic_sw[id] = true
  38.   end
  39.   def w_dictionary_switch_off(id)
  40.     $game_system.w_dic_sw = [] if $game_system.w_dic_sw == nil
  41.     $game_system.w_dic_sw[id] = false if $game_system.w_dic_sw[id] == nil
  42.     $game_system.w_dic_sw[id] = false
  43.   end
  44.   def w_dictionary_switch_on?(id)
  45.     $game_system.w_dic_sw = [] if $game_system.w_dic_sw == nil
  46.     $game_system.w_dic_sw[id] = false if $game_system.w_dic_sw[id] == nil
  47.     return $game_system.w_dic_sw[id]
  48.   end
  49.   def a_dictionary_switch_on(id)
  50.     $game_system.a_dic_sw = [] if $game_system.a_dic_sw == nil
  51.     $game_system.a_dic_sw[id] = false if $game_system.a_dic_sw[id] == nil
  52.     $game_system.a_dic_sw[id] = true
  53.   end
  54.   def a_dictionary_switch_off(id)
  55.     $game_system.a_dic_sw = [] if $game_system.a_dic_sw == nil
  56.     $game_system.a_dic_sw[id] = false if $game_system.a_dic_sw[id] == nil
  57.     $game_system.a_dic_sw[id] = false
  58.   end
  59.   def a_dictionary_switch_on?(id)
  60.     $game_system.a_dic_sw = [] if $game_system.a_dic_sw == nil
  61.     $game_system.a_dic_sw[id] = false if $game_system.a_dic_sw[id] == nil
  62.     return $game_system.a_dic_sw[id]
  63.   end
  64.   def t_dictionary_switch_on(item)
  65.     if item.is_a?(RPG::Item)
  66.       i_dictionary_switch_on(item.id)
  67.     end
  68.     if item.is_a?(RPG::Weapon)
  69.       w_dictionary_switch_on(item.id)
  70.     end
  71.     if item.is_a?(RPG::Armor)
  72.       a_dictionary_switch_on(item.id)
  73.     end
  74.   end
  75.   def t_dictionary_switch_on?(item)
  76.     if item.is_a?(RPG::Item)
  77.       return i_dictionary_switch_on?(item.id)
  78.     end
  79.     if item.is_a?(RPG::Weapon)
  80.       return w_dictionary_switch_on?(item.id)
  81.     end
  82.     if item.is_a?(RPG::Armor)
  83.       return a_dictionary_switch_on?(item.id)
  84.     end
  85.   end
  86.   def print_dictionary?(item)
  87.     if item != nil
  88.       if item.name.size > 0
  89.         hantei = /<图鉴无效>/ =~ item.note
  90.         if hantei == nil
  91.           return true
  92.         end
  93.       end
  94.     end
  95.     return false
  96.   end
  97.   def item_dictionary_perfection
  98.     dic_max = 0
  99.     dic_num = 0
  100.     $data_items.each do |item|
  101.       if print_dictionary?(item)
  102.         dic_max += 1
  103.         if i_dictionary_switch_on?(item.id) == true
  104.           dic_num += 1
  105.         end
  106.       end
  107.     end
  108.     $data_weapons.each do |item|
  109.       if print_dictionary?(item)
  110.         dic_max += 1
  111.         if w_dictionary_switch_on?(item.id) == true
  112.           dic_num += 1
  113.         end
  114.       end
  115.     end
  116.     $data_armors.each do |item|
  117.       if print_dictionary?(item)
  118.         dic_max += 1
  119.         if a_dictionary_switch_on?(item.id) == true
  120.           dic_num += 1
  121.         end
  122.       end
  123.     end
  124.     return (100*dic_num)/dic_max
  125.   end
  126. end

  127. class Game_Interpreter
  128.   include WD_itemdictionary
  129. end

  130. class Game_System
  131.   #--------------------------------------------------------------------------
  132.   # ● 公開インスタンス変数
  133.   #--------------------------------------------------------------------------
  134.   attr_accessor :i_dic_sw
  135.   attr_accessor :w_dic_sw
  136.   attr_accessor :a_dic_sw
  137.   #--------------------------------------------------------------------------
  138.   # ● オブジェクト初期化
  139.   #--------------------------------------------------------------------------
  140.   alias wd_orig_initialize001 initialize
  141.   def initialize
  142.     wd_orig_initialize001
  143.     @i_dic_sw = []
  144.     @w_dic_sw = []
  145.     @a_dic_sw = []
  146.   end
  147. end

  148. class Game_Party < Game_Unit
  149.   include WD_itemdictionary
  150.   #--------------------------------------------------------------------------
  151.   # ● アイテムの増加(減少)
  152.   #     include_equip : 装備品も含める
  153.   #--------------------------------------------------------------------------
  154.   alias wd_orig_gain_item001 gain_item
  155.   def gain_item(item, amount, include_equip = false)   
  156.     wd_orig_gain_item001(item, amount, include_equip)
  157.     if amount > 0
  158.       t_dictionary_switch_on(item)
  159.     end
  160.   end
  161. end


  162. #==============================================================================
  163. # ■ Scene_ItemDictionary
  164. #------------------------------------------------------------------------------
  165. #  アイテム図鑑画面の処理を行うクラスです。
  166. #==============================================================================

  167. class Scene_ItemDictionary < Scene_ItemBase
  168.   #--------------------------------------------------------------------------
  169.   # ● 開始処理
  170.   #--------------------------------------------------------------------------
  171.   def start
  172.     super
  173.     create_help_window
  174.     create_category_window
  175.     create_status_window
  176.     create_item_window
  177.     create_perfection_window
  178.   end
  179.   #--------------------------------------------------------------------------
  180.   # ● カテゴリウィンドウの作成
  181.   #--------------------------------------------------------------------------
  182.   def create_category_window
  183.     @category_window = Window_ItemCategory.new
  184.     @category_window.viewport = @viewport
  185.     @category_window.help_window = @help_window
  186.     @category_window.y = @help_window.height
  187.     @category_window.set_handler(:ok,     method(:on_category_ok))
  188.     @category_window.set_handler(:cancel, method(:return_scene))
  189.   end
  190.   #--------------------------------------------------------------------------
  191.   # ● アイテムウィンドウの作成
  192.   #--------------------------------------------------------------------------
  193.   def create_item_window
  194.     wy = @category_window.y + @category_window.height
  195.     wh = Graphics.height - wy - 48
  196.     @item_window = Window_ItemDictionaryList.new(Graphics.width-172-48, wy, 172+48, wh)
  197.     @item_window.viewport = @viewport
  198.     @item_window.help_window = @help_window
  199.     @item_window.status_window = @status_window
  200.     @item_window.set_handler(:cancel, method(:on_item_cancel))
  201.     @category_window.item_window = @item_window
  202.   end
  203.   #--------------------------------------------------------------------------
  204.   # ● アイテムステータスウィンドウの作成
  205.   #--------------------------------------------------------------------------
  206.   def create_status_window
  207.     wy = @category_window.y + @category_window.height
  208.     wh = Graphics.height - wy
  209.     @status_window = Window_ItemDictionaryStatus.new(0, wy, Graphics.width-172-48, wh)
  210.     @status_window.viewport = @viewport
  211.     @status_window.set_item(nil)
  212.   end
  213.   #--------------------------------------------------------------------------
  214.   # ● 図鑑完成度ウィンドウの作成
  215.   #--------------------------------------------------------------------------
  216.   def create_perfection_window
  217.     wy = @item_window.y + @item_window.height
  218.     wh = 48
  219.     @perfection_window = Window_ItemDictionaryPerfection.new(Graphics.width-172-48, wy, 172+48, wh)
  220.     @perfection_window.viewport = @viewport
  221.   end
  222.   #--------------------------------------------------------------------------
  223.   # ● カテゴリ[決定]
  224.   #--------------------------------------------------------------------------
  225.   def on_category_ok
  226.     @item_window.activate
  227.     @item_window.select_last
  228.   end
  229.   #--------------------------------------------------------------------------
  230.   # ● アイテム[キャンセル]
  231.   #--------------------------------------------------------------------------
  232.   def on_item_cancel
  233.     @item_window.unselect
  234.     @category_window.activate
  235.     @status_window.set_item(nil)
  236.   end
  237. end


  238. #==============================================================================
  239. # ■ Window_ItemDictionaryList
  240. #------------------------------------------------------------------------------
  241. #  アイテム図鑑画面で、アイテムの一覧を表示するウィンドウです。
  242. #==============================================================================

  243. class Window_ItemDictionaryList < Window_Selectable
  244.   include WD_itemdictionary
  245.   #--------------------------------------------------------------------------
  246.   # ● オブジェクト初期化
  247.   #--------------------------------------------------------------------------
  248.   def initialize(x, y, width, height)
  249.     super
  250.     @category = :none
  251.     @data = []
  252.   end
  253.   #--------------------------------------------------------------------------
  254.   # ● カテゴリの設定
  255.   #--------------------------------------------------------------------------
  256.   def category=(category)
  257.     return if @category == category
  258.     @category = category
  259.     refresh
  260.     self.oy = 0
  261.   end
  262.   #--------------------------------------------------------------------------
  263.   # ● 桁数の取得
  264.   #--------------------------------------------------------------------------
  265.   def col_max
  266.     return 1
  267.   end
  268.   #--------------------------------------------------------------------------
  269.   # ● 項目数の取得
  270.   #--------------------------------------------------------------------------
  271.   def item_max
  272.     @data ? @data.size : 1
  273.   end
  274.   #--------------------------------------------------------------------------
  275.   # ● アイテムの取得
  276.   #--------------------------------------------------------------------------
  277.   def item
  278.     @data && index >= 0 ? @data[index] : nil
  279.   end
  280.   #--------------------------------------------------------------------------
  281.   # ● 選択項目の有効状態を取得
  282.   #--------------------------------------------------------------------------
  283.   def current_item_enabled?
  284.     enable?(@data[index])
  285.   end
  286.   #--------------------------------------------------------------------------
  287.   # ● アイテムをリストに含めるかどうか
  288.   #--------------------------------------------------------------------------
  289.   def include?(item)
  290.     case @category
  291.     when :item
  292.       item.is_a?(RPG::Item) && !item.key_item?
  293.     when :weapon
  294.       item.is_a?(RPG::Weapon)
  295.     when :armor
  296.       item.is_a?(RPG::Armor)
  297.     when :key_item
  298.       item.is_a?(RPG::Item) && item.key_item?
  299.     else
  300.       false
  301.     end
  302.   end
  303.   #--------------------------------------------------------------------------
  304.   # ● アイテムリストの作成
  305.   #--------------------------------------------------------------------------
  306.   def make_item_list
  307.     @data = []
  308.     $data_items.each do |item|
  309.       if print_dictionary?(item)
  310.         @data.push(item) if include?(item)
  311.       end
  312.     end
  313.     $data_weapons.each do |item|
  314.       if print_dictionary?(item)
  315.         @data.push(item) if include?(item)
  316.       end
  317.     end
  318.     $data_armors.each do |item|
  319.       if print_dictionary?(item)
  320.         @data.push(item) if include?(item)
  321.       end
  322.     end
  323.     @data.push(nil) if include?(nil)
  324.   end
  325.   #--------------------------------------------------------------------------
  326.   # ● 前回の選択位置を復帰
  327.   #--------------------------------------------------------------------------
  328.   def select_last
  329.     select(0)
  330.   end
  331.   #--------------------------------------------------------------------------
  332.   # ● 項目の描画
  333.   #--------------------------------------------------------------------------
  334.   def draw_item(index)
  335.     item = @data[index]
  336.     if item
  337.       rect = item_rect(index)
  338.       rect.width -= 4
  339.       if t_dictionary_switch_on?(item)
  340.         change_color(normal_color, true)
  341.         draw_item_name(item, rect.x, rect.y, true)
  342.       else
  343.         change_color(normal_color, false)
  344.         draw_text(rect.x + 24, rect.y, 172, line_height, "???????")
  345.       end
  346.     end
  347.   end
  348.   #--------------------------------------------------------------------------
  349.   # ● ヘルプテキスト更新
  350.   #--------------------------------------------------------------------------
  351.   def update_help
  352.     if t_dictionary_switch_on?(item)
  353.       @help_window.set_item(item)
  354.       @status_window.set_item(item, @index, true)
  355.     else
  356.       @help_window.set_text("???????")
  357.       @status_window.set_item(item, @index, false)
  358.     end
  359.   end
  360.   #--------------------------------------------------------------------------
  361.   # ● リフレッシュ
  362.   #--------------------------------------------------------------------------
  363.   def refresh
  364.     make_item_list
  365.     create_contents
  366.     draw_all_items
  367.   end
  368.   #--------------------------------------------------------------------------
  369.   # ● ステータスウィンドウの設定
  370.   #--------------------------------------------------------------------------
  371.   def status_window=(status_window)
  372.     @status_window = status_window
  373.   end
  374. end

  375. #==============================================================================
  376. # ■ Window_ItemDictionaryPerfection
  377. #------------------------------------------------------------------------------
  378. #  アイテム図鑑画面で、図鑑の完成度を表示するウィンドウです。
  379. #==============================================================================

  380. class Window_ItemDictionaryPerfection < Window_Selectable
  381.   include WD_itemdictionary
  382.   #--------------------------------------------------------------------------
  383.   # ● オブジェクト初期化
  384.   #--------------------------------------------------------------------------
  385.   def initialize(x, y, width, height)
  386.     super
  387.     refresh(width)
  388.   end
  389.   #--------------------------------------------------------------------------
  390.   # ● リフレッシュ
  391.   #--------------------------------------------------------------------------
  392.   def refresh(width)
  393.     contents.clear
  394.     draw_text(0, 0, width-24, line_height, "图鉴完成度: #{item_dictionary_perfection} %", 1)
  395.   end
  396. end


  397. #==============================================================================
  398. # ■ Window_ItemDictionaryStatus
  399. #------------------------------------------------------------------------------
  400. #  アイテム図鑑画面で、アイテムの詳細を表示するウィンドウです。
  401. #==============================================================================

  402. class Window_ItemDictionaryStatus < Window_Selectable
  403.   include WD_itemdictionary
  404.   #--------------------------------------------------------------------------
  405.   # ● オブジェクト初期化
  406.   #--------------------------------------------------------------------------
  407.   def initialize(x, y, width, height)
  408.     super
  409.     @item = nil
  410.     refresh
  411.   end
  412.   #--------------------------------------------------------------------------
  413.   # ● アイテムの設定
  414.   #--------------------------------------------------------------------------
  415.   def set_item(item, index=-1, print=false)
  416.     return if ((@item == item) and (@index == index))
  417.     @item = item
  418.     @index = index
  419.     @print = print
  420.     refresh
  421.   end
  422.   #--------------------------------------------------------------------------
  423.   # ● リフレッシュ
  424.   #--------------------------------------------------------------------------
  425.   def refresh
  426.     contents.clear
  427.     contents.font.size = 24

  428.     if @print

  429.       if @item.is_a?(RPG::Item)
  430.         if WD_itemdictionary_layout::I_id_display
  431.           text1  = sprintf("%0#{WD_itemdictionary_layout::I_id_display_digit}d",@index+1)
  432.           x      = WD_itemdictionary_layout::I_id_display_x
  433.           y      = WD_itemdictionary_layout::I_id_display_y
  434.           width  = WD_itemdictionary_layout::I_id_display_width
  435.           height = line_height
  436.           draw_text(x, y, width, height, text1, 0)
  437.         end
  438.         if WD_itemdictionary_layout::I_name_display
  439.           x      = WD_itemdictionary_layout::I_name_display_x
  440.           y      = WD_itemdictionary_layout::I_name_display_y
  441.           draw_item_name(@item, x, y, true)
  442.         end
  443.         font_size = WD_itemdictionary_layout::C_font_size
  444.         contents.font.size = font_size
  445.         if WD_itemdictionary_layout::I_price_display
  446.           text1  = WD_itemdictionary_layout::I_price_display_text1
  447.           text2  = @item.price
  448.           text3  = Vocab::currency_unit
  449.           x      = WD_itemdictionary_layout::I_price_display_x
  450.           y      = WD_itemdictionary_layout::I_price_display_y
  451.           width  = WD_itemdictionary_layout::I_price_display_width
  452.           change_color(system_color)
  453.           draw_text(x, y, width, font_size, text1, 0)
  454.           cx = text_size(Vocab::currency_unit).width
  455.           change_color(normal_color)
  456.           draw_text(x, y, width - cx - 2, font_size, text2, 2)
  457.           change_color(system_color)
  458.           draw_text(x, y, width, font_size, text3, 2)
  459.           change_color(normal_color)
  460.         end
  461.         if WD_itemdictionary_layout::I_occasion_display
  462.           text1  = WD_itemdictionary_layout::I_occasion_display_text1
  463.           text2  = WD_itemdictionary_layout::I_occasion_display_text2
  464.           text3  = WD_itemdictionary_layout::I_occasion_display_text3
  465.           text4  = WD_itemdictionary_layout::I_occasion_display_text4
  466.           text5  = WD_itemdictionary_layout::I_occasion_display_text5
  467.           x      = WD_itemdictionary_layout::I_occasion_display_x
  468.           y      = WD_itemdictionary_layout::I_occasion_display_y
  469.           width  = WD_itemdictionary_layout::I_occasion_display_width
  470.           change_color(system_color)
  471.           draw_text(x, y, width, font_size, text1, 0)
  472.           change_color(normal_color)
  473.           case @item.occasion
  474.           when 0
  475.             draw_text(x, y, width, font_size, text2, 2)
  476.           when 1
  477.             draw_text(x, y, width, font_size, text3, 2)
  478.           when 2
  479.             draw_text(x, y, width, font_size, text4, 2)
  480.           when 3
  481.             draw_text(x, y, width, font_size, text5, 2)
  482.           end
  483.         end
  484.         if WD_itemdictionary_layout::I_consumable_display
  485.           text1  = WD_itemdictionary_layout::I_consumable_display_text1
  486.           text2  = WD_itemdictionary_layout::I_consumable_display_text2
  487.           text3  = WD_itemdictionary_layout::I_consumable_display_text3
  488.           x      = WD_itemdictionary_layout::I_consumable_display_x
  489.           y      = WD_itemdictionary_layout::I_consumable_display_y
  490.           width  = WD_itemdictionary_layout::I_consumable_display_width
  491.           change_color(system_color)
  492.           draw_text(x, y, width, font_size, text1, 0)
  493.           change_color(normal_color)
  494.           if @item.consumable
  495.             draw_text(x, y, width, font_size, text2, 2)
  496.           else
  497.             draw_text(x, y, width, font_size, text3, 2)
  498.           end
  499.         end  
  500.         if WD_itemdictionary_layout::I_option_display
  501.           text1  = WD_itemdictionary_layout::I_option_display_text1
  502.           text2  = WD_itemdictionary_layout::I_option_display_text2
  503.           x      = WD_itemdictionary_layout::I_option_display_x
  504.           y      = WD_itemdictionary_layout::I_option_display_y
  505.           width  = WD_itemdictionary_layout::I_option_display_width
  506.           change_color(system_color)
  507.           draw_text(x, y, width, font_size, text1, 0)
  508.           change_color(normal_color)
  509.           i = 0
  510.           @item.note.scan(/<图鉴特性:(.*)>/){|matched|
  511.             i += 1
  512.             self.contents.draw_text(x + font_size, y + font_size * i, width - font_size, font_size, matched[0], 0)
  513.            }
  514.           if i == 0
  515.             self.contents.draw_text(x + font_size, y + font_size, width - font_size, font_size, text2, 0)
  516.           end
  517.         end

  518.       elsif @item.is_a?(RPG::Weapon)
  519.         if WD_itemdictionary_layout::W_id_display
  520.           text1  = sprintf("%0#{WD_itemdictionary_layout::W_id_display_digit}d",@index+1)
  521.           x      = WD_itemdictionary_layout::W_id_display_x
  522.           y      = WD_itemdictionary_layout::W_id_display_y
  523.           width  = WD_itemdictionary_layout::W_id_display_width
  524.           height = line_height
  525.           draw_text(x, y, width, height, text1, 0)
  526.         end
  527.         if WD_itemdictionary_layout::W_name_display
  528.           x      = WD_itemdictionary_layout::W_name_display_x
  529.           y      = WD_itemdictionary_layout::W_name_display_y
  530.           draw_item_name(@item, x, y, true)
  531.         end
  532.         font_size = WD_itemdictionary_layout::C_font_size
  533.         contents.font.size = font_size
  534.         if WD_itemdictionary_layout::W_type_display
  535.           text1  = WD_itemdictionary_layout::W_type_display_text1
  536.           text2  = $data_system.weapon_types[@item.wtype_id]
  537.           x      = WD_itemdictionary_layout::W_type_display_x
  538.           y      = WD_itemdictionary_layout::W_type_display_y
  539.           width  = WD_itemdictionary_layout::W_type_display_width
  540.           change_color(system_color)
  541.           draw_text(x, y, width, font_size, text1, 0)
  542.           change_color(normal_color)
  543.           draw_text(x, y, width, font_size, text2, 2)
  544.         end
  545.         if WD_itemdictionary_layout::W_price_display
  546.           text1  = WD_itemdictionary_layout::W_price_display_text1
  547.           text2  = @item.price
  548.           text3  = Vocab::currency_unit
  549.           x      = WD_itemdictionary_layout::W_price_display_x
  550.           y      = WD_itemdictionary_layout::W_price_display_y
  551.           width  = WD_itemdictionary_layout::W_price_display_width
  552.           change_color(system_color)
  553.           draw_text(x, y, width, font_size, text1, 0)
  554.           cx = text_size(Vocab::currency_unit).width
  555.           change_color(normal_color)
  556.           draw_text(x, y, width - cx - 2, font_size, text2, 2)
  557.           change_color(system_color)
  558.           draw_text(x, y, width, font_size, text3, 2)
  559.           change_color(normal_color)
  560.         end
  561.         if WD_itemdictionary_layout::W_atk_display
  562.           text1  = Vocab::param(2)
  563.           text2  = @item.params[2]
  564.           x      = WD_itemdictionary_layout::W_atk_display_x
  565.           y      = WD_itemdictionary_layout::W_atk_display_y
  566.           width  = WD_itemdictionary_layout::W_atk_display_width
  567.           change_color(system_color)
  568.           draw_text(x, y, width, font_size, text1, 0)
  569.           change_color(normal_color)
  570.           draw_text(x, y, width, font_size, text2, 2)
  571.         end
  572.         if WD_itemdictionary_layout::W_def_display
  573.           text1  = Vocab::param(3)
  574.           text2  = @item.params[3]
  575.           x      = WD_itemdictionary_layout::W_def_display_x
  576.           y      = WD_itemdictionary_layout::W_def_display_y
  577.           width  = WD_itemdictionary_layout::W_def_display_width
  578.           change_color(system_color)
  579.           draw_text(x, y, width, font_size, text1, 0)
  580.           change_color(normal_color)
  581.           draw_text(x, y, width, font_size, text2, 2)
  582.         end
  583.         if WD_itemdictionary_layout::W_mat_display
  584.           text1  = Vocab::param(4)
  585.           text2  = @item.params[4]
  586.           x      = WD_itemdictionary_layout::W_mat_display_x
  587.           y      = WD_itemdictionary_layout::W_mat_display_y
  588.           width  = WD_itemdictionary_layout::W_mat_display_width
  589.           change_color(system_color)
  590.           draw_text(x, y, width, font_size, text1, 0)
  591.           change_color(normal_color)
  592.           draw_text(x, y, width, font_size, text2, 2)
  593.         end
  594.         if WD_itemdictionary_layout::W_mdf_display
  595.           text1  = Vocab::param(5)
  596.           text2  = @item.params[5]
  597.           x      = WD_itemdictionary_layout::W_mdf_display_x
  598.           y      = WD_itemdictionary_layout::W_mdf_display_y
  599.           width  = WD_itemdictionary_layout::W_mdf_display_width
  600.           change_color(system_color)
  601.           draw_text(x, y, width, font_size, text1, 0)
  602.           change_color(normal_color)
  603.           draw_text(x, y, width, font_size, text2, 2)
  604.         end
  605.         if WD_itemdictionary_layout::W_agi_display
  606.           text1  = Vocab::param(6)
  607.           text2  = @item.params[6]
  608.           x      = WD_itemdictionary_layout::W_agi_display_x
  609.           y      = WD_itemdictionary_layout::W_agi_display_y
  610.           width  = WD_itemdictionary_layout::W_agi_display_width
  611.           change_color(system_color)
  612.           draw_text(x, y, width, font_size, text1, 0)
  613.           change_color(normal_color)
  614.           draw_text(x, y, width, font_size, text2, 2)
  615.         end
  616.         if WD_itemdictionary_layout::W_luk_display
  617.           text1  = Vocab::param(7)
  618.           text2  = @item.params[7]
  619.           x      = WD_itemdictionary_layout::W_luk_display_x
  620.           y      = WD_itemdictionary_layout::W_luk_display_y
  621.           width  = WD_itemdictionary_layout::W_luk_display_width
  622.           change_color(system_color)
  623.           draw_text(x, y, width, font_size, text1, 0)
  624.           change_color(normal_color)
  625.           draw_text(x, y, width, font_size, text2, 2)
  626.         end
  627.         if WD_itemdictionary_layout::W_mhp_display
  628.           text1  = Vocab::param(0)
  629.           text2  = @item.params[0]
  630.           x      = WD_itemdictionary_layout::W_mhp_display_x
  631.           y      = WD_itemdictionary_layout::W_mhp_display_y
  632.           width  = WD_itemdictionary_layout::W_mhp_display_width
  633.           change_color(system_color)
  634.           draw_text(x, y, width, font_size, text1, 0)
  635.           change_color(normal_color)
  636.           draw_text(x, y, width, font_size, text2, 2)
  637.         end
  638.         if WD_itemdictionary_layout::W_mmp_display
  639.           text1  = Vocab::param(1)
  640.           text2  = @item.params[1]
  641.           x      = WD_itemdictionary_layout::W_mmp_display_x
  642.           y      = WD_itemdictionary_layout::W_mmp_display_y
  643.           width  = WD_itemdictionary_layout::W_mmp_display_width
  644.           change_color(system_color)
  645.           draw_text(x, y, width, font_size, text1, 0)
  646.           change_color(normal_color)
  647.           draw_text(x, y, width, font_size, text2, 2)
  648.         end
  649.         if WD_itemdictionary_layout::W_option_display
  650.           text1  = WD_itemdictionary_layout::W_option_display_text1
  651.           text2  = WD_itemdictionary_layout::W_option_display_text2
  652.           x      = WD_itemdictionary_layout::W_option_display_x
  653.           y      = WD_itemdictionary_layout::W_option_display_y
  654.           width  = WD_itemdictionary_layout::W_option_display_width
  655.           change_color(system_color)
  656.           draw_text(x, y, width, font_size, text1, 0)
  657.           change_color(normal_color)
  658.           i = 0
  659.           @item.note.scan(/<图鉴特性:(.*)>/){|matched|
  660.             i += 1
  661.             self.contents.draw_text(x + font_size, y + font_size * i, width - font_size, font_size, matched[0], 0)
  662.            }
  663.           if i == 0
  664.             self.contents.draw_text(x + font_size, y + font_size, width - font_size, font_size, text2, 0)
  665.           end
  666.         end

  667.       elsif @item.is_a?(RPG::Armor)
  668.         if WD_itemdictionary_layout::A_id_display
  669.           text1  = sprintf("%0#{WD_itemdictionary_layout::A_id_display_digit}d",@index+1)
  670.           x      = WD_itemdictionary_layout::A_id_display_x
  671.           y      = WD_itemdictionary_layout::A_id_display_y
  672.           width  = WD_itemdictionary_layout::A_id_display_width
  673.           height = line_height
  674.           draw_text(x, y, width, height, text1, 0)
  675.         end
  676.         if WD_itemdictionary_layout::A_name_display
  677.           x      = WD_itemdictionary_layout::A_name_display_x
  678.           y      = WD_itemdictionary_layout::A_name_display_y
  679.           draw_item_name(@item, x, y, true)
  680.         end
  681.         font_size = WD_itemdictionary_layout::C_font_size
  682.         contents.font.size = font_size
  683.         if WD_itemdictionary_layout::A_type_display
  684.           text1  = WD_itemdictionary_layout::A_type_display_text1
  685.           text2  = $data_system.armor_types[@item.atype_id]
  686.           x      = WD_itemdictionary_layout::A_type_display_x
  687.           y      = WD_itemdictionary_layout::A_type_display_y
  688.           width  = WD_itemdictionary_layout::A_type_display_width
  689.           change_color(system_color)
  690.           draw_text(x, y, width, font_size, text1, 0)
  691.           change_color(normal_color)
  692.           draw_text(x, y, width, font_size, text2, 2)
  693.         end
  694.         if WD_itemdictionary_layout::A_price_display
  695.           text1  = WD_itemdictionary_layout::A_price_display_text1
  696.           text2  = @item.price
  697.           text3  = Vocab::currency_unit
  698.           x      = WD_itemdictionary_layout::A_price_display_x
  699.           y      = WD_itemdictionary_layout::A_price_display_y
  700.           width  = WD_itemdictionary_layout::A_price_display_width
  701.           change_color(system_color)
  702.           draw_text(x, y, width, font_size, text1, 0)
  703.           cx = text_size(Vocab::currency_unit).width
  704.           change_color(normal_color)
  705.           draw_text(x, y, width - cx - 2, font_size, text2, 2)
  706.           change_color(system_color)
  707.           draw_text(x, y, width, font_size, text3, 2)
  708.           change_color(normal_color)
  709.         end
  710.         if WD_itemdictionary_layout::A_atk_display
  711.           text1  = Vocab::param(2)
  712.           text2  = @item.params[2]
  713.           x      = WD_itemdictionary_layout::A_atk_display_x
  714.           y      = WD_itemdictionary_layout::A_atk_display_y
  715.           width  = WD_itemdictionary_layout::A_atk_display_width
  716.           change_color(system_color)
  717.           draw_text(x, y, width, font_size, text1, 0)
  718.           change_color(normal_color)
  719.           draw_text(x, y, width, font_size, text2, 2)
  720.         end
  721.         if WD_itemdictionary_layout::A_def_display
  722.           text1  = Vocab::param(3)
  723.           text2  = @item.params[3]
  724.           x      = WD_itemdictionary_layout::A_def_display_x
  725.           y      = WD_itemdictionary_layout::A_def_display_y
  726.           width  = WD_itemdictionary_layout::A_def_display_width
  727.           change_color(system_color)
  728.           draw_text(x, y, width, font_size, text1, 0)
  729.           change_color(normal_color)
  730.           draw_text(x, y, width, font_size, text2, 2)
  731.         end
  732.         if WD_itemdictionary_layout::A_mat_display
  733.           text1  = Vocab::param(4)
  734.           text2  = @item.params[4]
  735.           x      = WD_itemdictionary_layout::A_mat_display_x
  736.           y      = WD_itemdictionary_layout::A_mat_display_y
  737.           width  = WD_itemdictionary_layout::A_mat_display_width
  738.           change_color(system_color)
  739.           draw_text(x, y, width, font_size, text1, 0)
  740.           change_color(normal_color)
  741.           draw_text(x, y, width, font_size, text2, 2)
  742.         end
  743.         if WD_itemdictionary_layout::A_mdf_display
  744.           text1  = Vocab::param(5)
  745.           text2  = @item.params[5]
  746.           x      = WD_itemdictionary_layout::A_mdf_display_x
  747.           y      = WD_itemdictionary_layout::A_mdf_display_y
  748.           width  = WD_itemdictionary_layout::A_mdf_display_width
  749.           change_color(system_color)
  750.           draw_text(x, y, width, font_size, text1, 0)
  751.           change_color(normal_color)
  752.           draw_text(x, y, width, font_size, text2, 2)
  753.         end
  754.         if WD_itemdictionary_layout::A_agi_display
  755.           text1  = Vocab::param(6)
  756.           text2  = @item.params[6]
  757.           x      = WD_itemdictionary_layout::A_agi_display_x
  758.           y      = WD_itemdictionary_layout::A_agi_display_y
  759.           width  = WD_itemdictionary_layout::A_agi_display_width
  760.           change_color(system_color)
  761.           draw_text(x, y, width, font_size, text1, 0)
  762.           change_color(normal_color)
  763.           draw_text(x, y, width, font_size, text2, 2)
  764.         end
  765.         if WD_itemdictionary_layout::A_luk_display
  766.           text1  = Vocab::param(7)
  767.           text2  = @item.params[7]
  768.           x      = WD_itemdictionary_layout::A_luk_display_x
  769.           y      = WD_itemdictionary_layout::A_luk_display_y
  770.           width  = WD_itemdictionary_layout::A_luk_display_width
  771.           change_color(system_color)
  772.           draw_text(x, y, width, font_size, text1, 0)
  773.           change_color(normal_color)
  774.           draw_text(x, y, width, font_size, text2, 2)
  775.         end
  776.         if WD_itemdictionary_layout::A_mhp_display
  777.           text1  = Vocab::param(0)
  778.           text2  = @item.params[0]
  779.           x      = WD_itemdictionary_layout::A_mhp_display_x
  780.           y      = WD_itemdictionary_layout::A_mhp_display_y
  781.           width  = WD_itemdictionary_layout::A_mhp_display_width
  782.           change_color(system_color)
  783.           draw_text(x, y, width, font_size, text1, 0)
  784.           change_color(normal_color)
  785.           draw_text(x, y, width, font_size, text2, 2)
  786.         end
  787.         if WD_itemdictionary_layout::A_mmp_display
  788.           text1  = Vocab::param(1)
  789.           text2  = @item.params[1]
  790.           x      = WD_itemdictionary_layout::A_mmp_display_x
  791.           y      = WD_itemdictionary_layout::A_mmp_display_y
  792.           width  = WD_itemdictionary_layout::A_mmp_display_width
  793.           change_color(system_color)
  794.           draw_text(x, y, width, font_size, text1, 0)
  795.           change_color(normal_color)
  796.           draw_text(x, y, width, font_size, text2, 2)
  797.         end
  798.         if WD_itemdictionary_layout::A_option_display
  799.           text1  = WD_itemdictionary_layout::A_option_display_text1
  800.           text2  = WD_itemdictionary_layout::A_option_display_text2
  801.           x      = WD_itemdictionary_layout::A_option_display_x
  802.           y      = WD_itemdictionary_layout::A_option_display_y
  803.           width  = WD_itemdictionary_layout::A_option_display_width
  804.           change_color(system_color)
  805.           draw_text(x, y, width, font_size, text1, 0)
  806.           change_color(normal_color)
  807.           i = 0
  808.           @item.note.scan(/<图鉴特性:(.*)>/){|matched|
  809.             i += 1
  810.             self.contents.draw_text(x + font_size, y + font_size * i, width - font_size, font_size, matched[0], 0)
  811.            }
  812.           if i == 0
  813.             self.contents.draw_text(x + font_size, y + font_size, width - font_size, font_size, text2, 0)
  814.           end
  815.         end

  816.       end

  817.     elsif @item != nil
  818.       if @item.is_a?(RPG::Item)
  819.         if WD_itemdictionary_layout::I_id_display
  820.           text1  = sprintf("%0#{WD_itemdictionary_layout::I_id_display_digit}d",@index+1)
  821.           x      = WD_itemdictionary_layout::I_id_display_x
  822.           y      = WD_itemdictionary_layout::I_id_display_y
  823.           width  = WD_itemdictionary_layout::I_id_display_width
  824.           height = line_height
  825.           draw_text(x, y, width, height, text1, 0)
  826.         end
  827.         if WD_itemdictionary_layout::I_name_display
  828.           text1  = "- No Data -"
  829.           x      = WD_itemdictionary_layout::I_name_display_x
  830.           y      = WD_itemdictionary_layout::I_name_display_y
  831.           width  = WD_itemdictionary_layout::I_name_display_width
  832.           height = line_height
  833.           draw_text(x, y, width, height, text1, 0)
  834.         end
  835.       end
  836.       if @item.is_a?(RPG::Weapon)
  837.         if WD_itemdictionary_layout::W_id_display
  838.           text1  = sprintf("%0#{WD_itemdictionary_layout::W_id_display_digit}d",@index+1)
  839.           x      = WD_itemdictionary_layout::W_id_display_x
  840.           y      = WD_itemdictionary_layout::W_id_display_y
  841.           width  = WD_itemdictionary_layout::W_id_display_width
  842.           height = line_height
  843.           draw_text(x, y, width, height, text1, 0)
  844.         end
  845.         if WD_itemdictionary_layout::W_name_display
  846.           text1  = "- No Data -"
  847.           x      = WD_itemdictionary_layout::W_name_display_x
  848.           y      = WD_itemdictionary_layout::W_name_display_y
  849.           width  = WD_itemdictionary_layout::W_name_display_width
  850.           height = line_height
  851.           draw_text(x, y, width, height, text1, 0)
  852.         end
  853.       end
  854.       if @item.is_a?(RPG::Armor)
  855.         if WD_itemdictionary_layout::A_id_display
  856.           text1  = sprintf("%0#{WD_itemdictionary_layout::A_id_display_digit}d",@index+1)
  857.           x      = WD_itemdictionary_layout::A_id_display_x
  858.           y      = WD_itemdictionary_layout::A_id_display_y
  859.           width  = WD_itemdictionary_layout::A_id_display_width
  860.           height = line_height
  861.           draw_text(x, y, width, height, text1, 0)
  862.         end
  863.         if WD_itemdictionary_layout::A_name_display
  864.           text1  = "- No Data -"
  865.           x      = WD_itemdictionary_layout::A_name_display_x
  866.           y      = WD_itemdictionary_layout::A_name_display_y
  867.           width  = WD_itemdictionary_layout::A_name_display_width
  868.           height = line_height
  869.           draw_text(x, y, width, height, text1, 0)
  870.         end
  871.       end

  872.     end
  873.   end
  874. end
复制代码

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-28 07:52

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表