赞 | 109 |
VIP | 0 |
好人卡 | 0 |
积分 | 180 |
经验 | 970 |
最后登录 | 2024-5-14 |
在线时间 | 2165 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 17970
- 在线时间
- 2165 小时
- 注册时间
- 2015-7-4
- 帖子
- 919
|
@rexuegg123 你模仿一下我这个插件吧:
自定义地图显示头像状态信息及按钮切换、菜单、公共事件
http://bbs.jhmeng.cn/bbs/forum.p ... tid=6&fromuid=1
(出处: 游戏自助服务平台)
找到这一段:
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
_Game_Interpreter_pluginCommand.call(this, command, args);
command = command.toLowerCase();
if (command === 'hud' && args[0] == 'deactivate') {
ShowSwitch = false;
}
if (command === 'hud' && args[0] == 'activate') {
ShowSwitch = true;
}
}; |
|