查看: 4052|回复: 3

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

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

MZ评测员开拓者

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

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

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

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

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

/*:
* @plugindesc Item Menu
* @author Astfgl
* @help All parameters are evaled, meaning you can use a formula, or in game variables.
* For example you can put $gameVariables.value(1) in the columns parameter field.
* Then, each time you open the menu, the number of columns will be what's
* inside variable 1.
*
* @param x
* @desc The x coordinate of the item window
* @default Graphics.boxWidth / 2 - SceneManager._scene._itemWindow.width / 2
*
* @param y
* @desc The y coordinate of the item window
* @default Graphics.boxHeight / 2 - SceneManager._scene._itemWindow.height / 2
*
* @param width
* @desc The width coordinate of the item window
* @default 300
*
* @param height
* @desc The height coordinate of the item window
* @default 500
*
* @param columns
* @desc The number of columns
* @default 1
*
*
* @param category
* @desc The starting category of the item list window. 'item','weapon','armor','keyItem'.
* @default 'keyItem'
*/

(function(){
    var params = PluginManager.parameters("AstfglIM");
   
    var _Astfgl_newSIC = Scene_Item.prototype.create
    Scene_Item.prototype.create = function() {
        _Astfgl_newSIC.call(this);
        this._helpWindow.hide();
        this._categoryWindow.hide();
        this._categoryWindow.deactivate();
        this._categoryWindow.selectSymbol(eval(params.category));
        this.onCategoryOk();
        this._itemWindow.setHandler('cancel', this.popScene.bind(this));
        this._itemWindow.width = eval(params.width) || 0;
        this._itemWindow.height = eval(params.height) || 0;
        this._itemWindow.x = eval(params.x) || 0;
        this._itemWindow.y = eval(params.y) || 0;
    }
   
    Window_ItemList.prototype.maxCols = function() {
        return eval(params.columns);
    };
   
})()[/pre]
梦石
0
星屑
16261
在线时间
4014 小时
注册时间
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.

在本版发帖返回顶部