查看: 4105|回复: 3

[有事请教] 请问这个物品栏应该怎么编辑?

[复制链接]
梦石
20
星屑
13972
在线时间
1744 小时
注册时间
2017-1-12
回帖
1666

MZ评测员开拓者

发表于 2019-6-23 23:24:19 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 火锅深处 于 2019-6-24 08:14 编辑

搞明白问题了,是因为我随手把插件名字改了,所以说不懂脚本和英文就是麻烦……
===============
原址是这个:https://forums.rpgmakerweb.com/i ... 104775/#post-935944
把原址放过来是因为我觉得是不是我理解错了。
总之把下面这个脚本丢到插件里以后打开物品栏,屏幕上空空如也,到底是哪部分设置错了呢?
脚本本体
  1. //===================================================================================
  2. // Astfgl Item menu
  3. // Date 20/10/2017
  4. // Free to use both commercialyy and non commercially, repost and
  5. // edit, as long as the final product is kept under the same terms of use.
  6. // Credits required, any of Astfgl, Astgfl (Pierre MATEO), Pierre MATEO
  7. //====================================================================================

  8. /*:
  9. * @plugindesc Item Menu
  10. * @author Astfgl
  11. * @help All parameters are evaled, meaning you can use a formula, or in game variables.
  12. * For example you can put $gameVariables.value(1) in the columns parameter field.
  13. * Then, each time you open the menu, the number of columns will be what's
  14. * inside variable 1.
  15. *
  16. * @param x
  17. * @desc The x coordinate of the item window
  18. * @default Graphics.boxWidth / 2 - SceneManager._scene._itemWindow.width / 2
  19. *
  20. * @param y
  21. * @desc The y coordinate of the item window
  22. * @default Graphics.boxHeight / 2 - SceneManager._scene._itemWindow.height / 2
  23. *
  24. * @param width
  25. * @desc The width coordinate of the item window
  26. * @default 300
  27. *
  28. * @param height
  29. * @desc The height coordinate of the item window
  30. * @default 500
  31. *
  32. * @param columns
  33. * @desc The number of columns
  34. * @default 1
  35. *
  36. *
  37. * @param category
  38. * @desc The starting category of the item list window. 'item','weapon','armor','keyItem'.
  39. * @default 'keyItem'
  40. */

  41. (function(){
  42.     var params = PluginManager.parameters("AstfglIM");
  43.    
  44.     var _Astfgl_newSIC = Scene_Item.prototype.create
  45.     Scene_Item.prototype.create = function() {
  46.         _Astfgl_newSIC.call(this);
  47.         this._helpWindow.hide();
  48.         this._categoryWindow.hide();
  49.         this._categoryWindow.deactivate();
  50.         this._categoryWindow.selectSymbol(eval(params.category));
  51.         this.onCategoryOk();
  52.         this._itemWindow.setHandler('cancel', this.popScene.bind(this));
  53.         this._itemWindow.width = eval(params.width) || 0;
  54.         this._itemWindow.height = eval(params.height) || 0;
  55.         this._itemWindow.x = eval(params.x) || 0;
  56.         this._itemWindow.y = eval(params.y) || 0;
  57.     }
  58.    
  59.     Window_ItemList.prototype.maxCols = function() {
  60.         return eval(params.columns);
  61.     };
  62.    
  63. })()
复制代码
梦石
0
星屑
16296
在线时间
4017 小时
注册时间
2015-9-14
回帖
1322

开拓者

发表于 2019-6-24 02:25:37 | 显示全部楼层
@param category
@desc The starting category of the item list window. 'item','weapon','armor','keyItem'.
@default 'keyItem'
// 'item','weapon','armor','keyItem'.選擇顯示其中一項.

点评

自己终于搞明白问题了……谢谢回答  发表于 2019-6-24 08:13
确实打开插件有一个填这个的地方,默认是关键物品,但是无论填什么画面都是空的,但是物品又确实存在,就好像窗口在一个看不见的地方  发表于 2019-6-24 08:02
https://rpg.blue/data/attachment/album/202003/28/021323lltgrsvfytfwuya5.gif
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部