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

Project1

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

[有事请教] 打开装备物品窗口,设置的取消按钮不可用。

[复制链接]

Lv2.观梦者

梦石
0
星屑
927
在线时间
152 小时
注册时间
2018-3-16
帖子
70
跳转到指定楼层
1
发表于 2021-12-29 13:49:53 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 haosama 于 2021-12-29 13:51 编辑

如图所示,用的是GALV的按键脚本1.3,JS代码在下楼,请大佬帮帮看下应该如何解决

QQ图片20211229134704.png (200.88 KB, 下载次数: 29)

QQ图片20211229134704.png

Lv2.观梦者

梦石
0
星屑
927
在线时间
152 小时
注册时间
2018-3-16
帖子
70
2
 楼主| 发表于 2021-12-29 13:50:34 | 只看该作者
//-----------------------------------------------------------------------------
//  Galv's Screen Buttons
//-----------------------------------------------------------------------------
//  For: RPGMAKER MV
//  Galv_ScreenButtons.js
//-----------------------------------------------------------------------------
//  2017-01-06 - Version 1.3 - fixed a bug with mouse move enabled and no
//                             button with id 0
//  2016-12-15 - Version 1.2 - fixed a bug I created fixing the other bug
//  2016-12-13 - Version 1.1 - fixed a bug with mobile touch going into menus
//  2016-11-30 - Version 1.0 - release
//-----------------------------------------------------------------------------
// Terms can be found at:
// galvs-scripts.com
//-----------------------------------------------------------------------------

var Imported = Imported || {};
Imported.Galv_ScreenButtons = true;

var Galv = Galv || {};                  // Galv's main object
Galv.SBTNS = Galv.SBTNS || {};          // Galv's stuff

//-----------------------------------------------------------------------------
/*:
* @plugindesc (v.1.3) Show buttons on screen that can be touched or clicked.
*
* @author Galv - galvs-scripts.com
*
* @param Precache Buttons
* @desc A list of image names from /img/system/ for your buttons you wish to use should be precached
* @default BtnUp,BtnDown,BtnRight,BtnLeft,BtnOk,BtnCancel
*
* @param Disable Mouse Move
* @desc Disable moving character on the map with mouse click true/false
* @default true
*
* @param Button Fade
* @desc Speed that the buttons fade in/out when disabling/enabling
* @default 30
*
*
* @help
*   Galv's Screen Buttons
* ----------------------------------------------------------------------------
* This plugin enables you to create buttons on the screen that can be clicked
* and touched to run a script or emulate a button press.
*
* Buttons are given an id that can be used if you wish to replace an existing
* button with a new one during the game.
*
* ----------------------------------------------------------------------------
*  SCRIPT CALLS
* ----------------------------------------------------------------------------
*
*   Galv.SBTNS.addButton(id,'type','img',x,y,['actionType','action'],e);
*
* id            = the id of the button. Use a unique number for each button.
* 'type'        = can currently be 'map' or 'mapX' with x being map id
* 'img'         = the image name located in /img/system/
* x             = the x position of the button
* y             = the y postiion of the button
* 'actionType'  = You can choose one of the following types here:
*                 'button' to emulate a button while button is being pressed
*                 'buttonT' to emulate a button being triggered
*                 'script' to run script code when button is pressed
*                 'event' to run a common event when button is pressed
* 'action'      = The resulting action relating to the actionType
*                 'button' action is used for key press. Some examples:
*                          'ok','cancel','shift','up','down','left','right'
*                 'script' action is the script call you wish to run
*                 'event' action is the common event id to run
* e             = A number used for button opacity when events (such as show
*                 text) are running. 0-255. If it is 255 then the button
*                 will stay visible and still be able to be pressed.
*                 Less than 255 the button will be disabled. Leave this blank
*                 for the button to automatically be invisible during events.
*
* EXAMPLES:
* Galv.SBTNS.addButton(1,'map','BtnOk',570,500,['button','ok']);
* Galv.SBTNS.addButton(2,'map','BtnRun',690,500,['button','shift']);
* Galv.SBTNS.addButton(3,'map','BtnMenu',0,0,['script','SceneManager.push(Scene_Equip)']);
* Galv.SBTNS.addButton(4,'map1','BtnEvent',0,0,['event',1]);
*
*
*   $gameSystem._hideBtns = status;    // status can be true or false to hide
*                                      // or show all buttons
* ----------------------------------------------------------------------------
*/



//-----------------------------------------------------------------------------
//  CODE STUFFS
//-----------------------------------------------------------------------------

(function() {

Galv.SBTNS.btnList = PluginManager.parameters('Galv_ScreenButtons')["Precache Buttons"].split(',');
Galv.SBTNS.disableMove = PluginManager.parameters('Galv_ScreenButtons')["Disable Mouse Move"].toLowerCase() == 'true' ? true : false;
Galv.SBTNS.fade = Number(PluginManager.parameters('Galv_ScreenButtons')["Button Fade"]);


Galv.SBTNS.triggered = {};

// to be bound within a scene
Galv.SBTNS.createButton = function(obj) {
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-11-29 01:27

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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