// * mv插件指令
//=============================================================================
var _drill_SGaA_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
_drill_SGaA_pluginCommand.call(this, command, args);
if( command === ">画廊A" ){
$gameSystem.drill_SGaA_sysCheckData(); //(初始化)
if(args.length == 2){
var type = String(args[1]);
if( type == "打开面板" ){ //打开菜单
SceneManager.push(Scene_Drill_SGaA);
}
if( type == "显示全部" ){
for( var i = 1; i <= DrillUp.g_SGaA_context_list_length; i++){
DrillUp.global_SGaA_enableTank[i] = true; //全局存储
$gameSystem._drill_SGaA_enableTank[i] = true; //正常存储
}
StorageManager.drill_SGaA_saveData();
}
if( type == "隐藏全部" ){
for( var i = 1; i <= DrillUp.g_SGaA_context_list_length; i++){
DrillUp.global_SGaA_enableTank[i] = false; //全局存储
$gameSystem._drill_SGaA_enableTank[i] = false; //正常存储
}
StorageManager.drill_SGaA_saveData();
}
if( type == "锁定全部" ){
for( var i = 1; i <= DrillUp.g_SGaA_context_list_length; i++){
DrillUp.global_SGaA_lockTank[i] = true; //全局存储
$gameSystem._drill_SGaA_lockTank[i] = true; //正常存储
}
StorageManager.drill_SGaA_saveData();
}
if( type == "解锁全部" ){
for( var i = 1; i <= DrillUp.g_SGaA_context_list_length; i++){
DrillUp.global_SGaA_lockTank[i] = false; //全局存储
$gameSystem._drill_SGaA_lockTank[i] = false; //正常存储
}
StorageManager.drill_SGaA_saveData();
}
}
}
if( command === ">画廊A" ){
$gameSystem.drill_SGaA_sysCheckData(); //(初始化)
if(args.length == 4){
var type = String(args[1]);
var temp1 = String(args[3]);
if( type == "显示选项" ){
DrillUp.global_SGaA_enableTank[ Number(temp1) ] = true; //全局存储
$gameSystem._drill_SGaA_enableTank[ Number(temp1) ] = true; //正常存储
StorageManager.drill_SGaA_saveData();
}
if( type == "隐藏选项" ){
DrillUp.global_SGaA_enableTank[ Number(temp1) ] = false; //全局存储
$gameSystem._drill_SGaA_enableTank[ Number(temp1) ] = false; //正常存储
StorageManager.drill_SGaA_saveData();
}
if( type == "锁定选项" ){
DrillUp.global_SGaA_lockTank[ Number(temp1) ] = true; //全局存储
$gameSystem._drill_SGaA_lockTank[ Number(temp1) ] = true; //正常存储
StorageManager.drill_SGaA_saveData();
}
if( type == "解锁选项" ){
DrillUp.global_SGaA_lockTank[ Number(temp1) ] = false; //全局存储
$gameSystem._drill_SGaA_lockTank[ Number(temp1) ] = false; //正常存储
StorageManager.drill_SGaA_saveData();
}
if( type == "选中页" ){
$gameSystem._drill_SGaA_context_index = Number(temp1) -1;
}
if( type == "打开面板(单图查看模式)" ){
temp1 = temp1.replace("内容[","");
temp1 = temp1.replace("]","");
temp1 = Number(temp1);
$gameTemp._drill_SGaA_isSinglePictureMode = true;
$gameTemp._drill_SGaA_isSinglePictureIndex = temp1; //(不需要-1)
SceneManager.push(Scene_Drill_SGaA);
}
}
}
};