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

Project1

 找回密码
 注册会员
搜索

求大佬给Gameus quest这个插件加个返回按钮

查看数: 4219 | 评论数: 5 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2020-6-4 20:50

正文摘要:

大佬们,这个是一个任务插件:Gameus quest 插件在这↑↑↑

回复

枫间落羽 发表于 2020-6-6 10:36:10
moonyoulove 发表于 2020-6-6 09:46
原來如此那在插件裡加上看看
/*:
* @requiredAssets img/system/QuestExist

感谢大佬,已经可以了,非常感谢

点评

nice!  发表于 2020-6-6 10:53
moonyoulove 发表于 2020-6-6 09:46:34
枫间落羽 发表于 2020-6-5 22:42
大佬,还要麻烦您看一下,就是电脑端一切没问题,放在安卓端就会变成这样,大佬知道是什么原因吗{:5_159: ...

原來如此那在插件裡加上看看
JAVASCRIPT 代码复制
  1. /*:
  2.  * @requiredAssets img/system/QuestExist
  3.  */
枫间落羽 发表于 2020-6-5 20:24:12
moonyoulove 发表于 2020-6-4 21:59
寫了一個簡單的按鈕,做成插件放到原插件的下方或合併在內都可
按鈕圖片放在img/system/QuestExist.png
格 ...

十分感谢大佬!!!非常感谢!!!
moonyoulove 发表于 2020-6-4 20:50:07
本帖最后由 moonyoulove 于 2020-6-4 22:03 编辑

寫了一個簡單的按鈕,做成插件放到原插件的下方或合併在內都可
按鈕圖片放在img/system/QuestExist.png
格式為72*144,分成兩欄


JAVASCRIPT 代码复制
  1. function Sprite_QuestExist() {
  2.     this.initialize.apply(this, arguments);
  3. }
  4.  
  5. Sprite_QuestExist.prototype = Object.create(Sprite_Button.prototype);
  6. Sprite_QuestExist.prototype.constructor = Sprite_QuestExist;
  7.  
  8. Sprite_QuestExist.prototype.initialize = function() {
  9.     Sprite_Button.prototype.initialize.call(this);
  10.     this.bitmap = ImageManager.loadSystem("QuestExist");
  11.     this.setColdFrame(0, 0, 72, 72);
  12.     this.setHotFrame(0, 72, 72, 72);
  13.     let x = (GameusScripts["Config"]["QuestSystem"]["Reverse Layout"] || "false").toLowerCase() === "true" ? Graphics.boxWidth - 320 : 248;
  14.     let y = String(GameusScripts["Config"]["QuestSystem"]["Filter Position"]).toLowerCase() === "top" ? 0 : Graphics.boxHeight - 72;
  15.     this.move(x, y);
  16. };
  17.  
  18. (function() {
  19.     Window_QuestFilter.prototype.windowWidth = function() {
  20.         return 248;
  21.     };
  22.  
  23.     let _Scene_Quest_createQuestWindow = Scene_Quest.prototype.createQuestWindow;
  24.     Scene_Quest.prototype.createQuestWindow = function() {
  25.         _Scene_Quest_createQuestWindow.call(this);
  26.         this.questExist = new Sprite_QuestExist();
  27.         this.questExist.setClickHandler(this.popScene.bind(this));
  28.         this.addChild(this.questExist);
  29.     };
  30. })();

评分

参与人数 1+1 收起 理由
白嫩白嫩的 + 1 大佬太666了

查看全部评分

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

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

GMT+8, 2025-7-19 04:55

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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