扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 102|回复: 0

[转载发布] 【CG鉴赏】PictureGallery

[复制链接]
累计送礼:
0 个
累计收礼:
0 个
  • TA的每日心情
    开心
    2025-2-4 02:05
  • 签到天数: 110 天

    连续签到: 2 天

    [LV.6]常住居民II

    2327

    主题

    395

    回帖

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    6
    卡币
    10465
    OK点
    16
    推广点
    0
    同能卷
    0
    积分
    13215

    灌水之王

    发表于 2024-11-22 00:03:32 | 显示全部楼层 |阅读模式
    使用相关

    重要备注

    如何使用



    插件不更新,不维护,不修BUG,不提供指导方法,不要问为啥用不了,如果出错可能是有BUG了,因为脚本是自用的,如有问题请自行找人解决
    想要菜单栏打开CG的 请自行找人修改插件 本人不提供任何帮助
    2016年3月5日更新了BUG,可下载本附件的新插件,也可以复制下面的代码自行保存


    插件说明



    下面是完整插件代码
    JAVASCRIPT 代码
    [code]/*:
    * @plugindesc CG鉴赏画面
    * @author Joritian
    *
    * @param 数目
    * @desc CG的数量
    * @default 3
    *
    * @param 初始大小
    * @desc 打开CG时的初始缩放比例.
    * @default 1
    *
    * @param 缩放步长
    * @desc 每按一次缩放键CG缩放比例所改变的值.
    * @default 0.1
    *
    * @param 放大极限
    * @desc 缩放CG时所能达到的最大缩放比例.
    * @default 1
    *
    * @param 移动速度
    * @desc 按下方向键时CG的移动速度(像素/帧).
    * @default 5
    *
    * @help 开启此画面请在事件内运以下插件命令:
    * 打开CG鉴赏画面
    *
    * 解锁第i幅图片请使用以下插件命令:
    * 解锁CG i
    *
    * 你必须在img文件夹内创建一个名为gallery的文件夹
    * 文件夹内的CG图片命名应为纯数字(图片ID),"locked"为未解锁时显示的图片,"background"为鉴赏画面背景图,"text"为对CG进行缩放时屏幕上显示的操作说明图片.
    * 图片的大小不得小于游戏画面.
    */

    Game_System.prototype.initialize = function(){
            this._saveEnabled = true;
            this._menuEnabled = true;
            this._encounterEnabled = true;
            this._formationEnabled = true;
            this._battleCount = 0;
            this._winCount = 0;
            this._escapeCount = 0;
            this._saveCount = 0;
            this._versionId = 0;
            this._framesOnSave = 0;
            this._bgmOnSave = null;
            this._bgsOnSave = null;
            this._windowTone = null;
            this._battleBgm = null;
            this._victoryMe = null;
            this._defeatMe = null;
            this._savedBgm = null;
            this._walkingBgm = null;
            this.gallery = []
    };

    var parameters = PluginManager.parameters('PictureGallery');
    var maxPictures = Number(parameters['数目'] || 3);
    var pictureSpeed = Number(parameters['移动速度'] || 5);
    var pictureScaleInit = Number(parameters['初始大小'] || 1);
    var pictureScaleDelta = Number(parameters['缩放步长'] || 0.1);
    var pictureScaleMax = Number(parameters['放大极限'] || 1);

    var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
        Game_Interpreter.prototype.pluginCommand = function(command, args){
            _Game_Interpreter_pluginCommand.call(this, command, args);
            if(command === '打开CG鉴赏画面'){
                            SceneManager.push(Scene_Gallery);
            }
                    if(command === '解锁CG'){
                            $gameSystem.gallery[args[0]] = true;
                    }
        };

    ImageManager.loadGallery = function(filename){
        returnthis.loadBitmap('img/gallery/', filename, 0, true);
    };

    function Scene_Gallery(){
        this.initialize.apply(this, arguments);
    }

    Scene_Gallery.prototype = Object.create(Scene_Base.prototype);
    Scene_Gallery.prototype.constructor = Scene_Gallery;

    Scene_Gallery.prototype.initialize = function(){
        Scene_Base.prototype.initialize.call(this);
            this.number = 0;
            for(var i = 1; i

    本帖子中包含更多资源

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

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2025-3-10 11:50 , Processed in 0.133187 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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