查看: 3903|回复: 5

[有事请教] 有没有能够去除选项界面边框的插件?

[复制链接]
梦石
0
星屑
58
在线时间
7 小时
注册时间
2020-2-13
回帖
2
发表于 2020-2-14 12:33:30 | 显示全部楼层 |阅读模式

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

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

×
新人求助,想要去除选项界面的边框。
如果有能修改选项界面的插件,请务必推荐给我,万分感谢!
梦石
0
星屑
58
在线时间
7 小时
注册时间
2020-2-13
回帖
2
 楼主| 发表于 2020-2-14 12:41:17 | 显示全部楼层
等待ing...

点评

具体?  发表于 2020-2-14 12:51
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2020-2-14 13:03:55 | 显示全部楼层
不知道是不是这个

如果楼主说的是这个 目前没有看见这种插件

不过这个应该也能满足你吧、、

  1. //-----------------------------------------------------------------------------
  2. //  Galv's Visual Novel Choices
  3. //-----------------------------------------------------------------------------
  4. //  For: RPGMAKER MV
  5. //  GALV_VisualNovelChoices.js
  6. //-----------------------------------------------------------------------------
  7. //  2016-10-06 - Version 1.6 - hopefully fixed cache issue with MV update 1.5
  8. //  2016-08-10 - Version 1.5 - fixed cache issue with MV update 1.3
  9. //  2016-05-12 - Version 1.4 - vnbuttons img added to 'dont exclude' file list
  10. //  2016-04-02 - Version 1.3 - change for compatibility with menu cursors
  11. //  2016-03-21 - Version 1.2 - fixed color codes and compatibility with HIME's
  12. //                           - choice plugins
  13. //  2016-03-16 - Version 1.1 - added setting to make a gap between choices and
  14. //                           - message box, added button setting for disabled
  15. //                           - choices
  16. //  2016-03-14 - Version 1.0 - release
  17. //-----------------------------------------------------------------------------
  18. // Terms can be found at:
  19. // galvs-scripts.com
  20. //-----------------------------------------------------------------------------

  21. var Imported = Imported || {};
  22. Imported.Galv_VisualNovelChoices = true;

  23. var Galv = Galv || {};            // Galv's main object
  24. Galv.VNC = Galv.VNC || {};        // Galv's stuff

  25. //-----------------------------------------------------------------------------
  26. /*:
  27. * @plugindesc (v.1.6) 更改“选项”消息框的显示方式,使其更像视觉小说。
  28. *
  29. * @author Galv - galvs-scripts.com
  30. *
  31. * @param Command Width
  32. * @desc 选项命令的宽度。这必须等于或小于vnbuttons.png宽度。
  33. * @default 700
  34. *
  35. * @param Command Height
  36. * @desc 选项命令的宽度
  37. * @default 48
  38. *
  39. * @param Always Middle
  40. * @desc 在中间显示选项,而不考虑“显示选项”窗口位置。 true or false
  41. * @default true
  42. *
  43. * @param Message Gap
  44. * @desc 显示选项与消息窗口的距离
  45. * @default 0
  46. *
  47. * @param Disabled Button
  48. * @desc 用于显示禁用选项按钮的行号(如果使用可以禁用选项的插件)
  49. * @default 3
  50. *
  51. * @requiredAssets img/system/VNButtons
  52. *
  53. * @help
  54. *  高尔夫的视觉小说选择
  55. * ----------------------------------------------------------------------------
  56. *以更直观的新颖样式显示选项。选择的图像
  57. *按钮应放在/img/system/folder中,并命名为:
  58. *“vnbuttons.png”。它是一个单独的文件,每个按钮都在上面
  59. *另一个。
  60. *命令宽度和命令高度设置控制
  61. *按钮,而命令间隙控制它们之间的空间。确保
  62. *“命令宽度”插件设置等于图形的像素宽度。
  63. *
  64. *vnbuttons文件中的第一个按钮图像是按钮0。这是
  65. *在按钮上显示的光标图像。如果
  66. *选项文本将为按钮1(位于
  67. *光标图像)。
  68. *
  69. *在选项文本中使用\b[x]可以指定其他按钮
  70. *将该选项(X是行号)和按钮图形化。
  71. *
  72. *插件设置中的“禁用按钮”选项用于
  73. *另一个禁用选项命令的插件,如:
  74. *他提出的“残疾选择条件”。
  75. *
  76. * ----------------------------------------------------------------------------
  77. *  脚本调用:
  78. * ----------------------------------------------------------------------------
  79. *
  80. *        $gameSystem.vnChoices = status;      // status can be true or false
  81. */

  82. //-----------------------------------------------------------------------------
  83. //  CODE STUFFS
  84. //-----------------------------------------------------------------------------

  85. (function() {


  86. Galv.VNC.width = Number(PluginManager.parameters('Galv_VisualNovelChoices')["Command Width"]);
  87. Galv.VNC.height = Number(PluginManager.parameters('Galv_VisualNovelChoices')["Command Height"]);
  88. Galv.VNC.alwaysMid = PluginManager.parameters('Galv_VisualNovelChoices')["Always Middle"].toLowerCase() == 'true' ? true : false;
  89. Galv.VNC.msgGap = Number(PluginManager.parameters('Galv_VisualNovelChoices')["Message Gap"]);
  90. Galv.VNC.disableBtn = Number(PluginManager.parameters('Galv_VisualNovelChoices')["Disabled Button"]);

  91. // Cache
  92. Galv.VNC.Scene_Boot_loadSystemImages = Scene_Boot.loadSystemImages;
  93. Scene_Boot.loadSystemImages = function() {
  94.     ImageManager.reserveSystem('VNButtons');
  95.         Galv.VNC.Scene_Boot_loadSystemImages.call(this);
  96. };


  97. // Choice stuff
  98. Galv.VNC.Game_System_initialize = Game_System.prototype.initialize;
  99. Game_System.prototype.initialize = function() {
  100.         Galv.VNC.Game_System_initialize.call(this);
  101.         this.vnChoices = true;
  102. };

  103. // Overwrite
  104. Window_ChoiceList.prototype.textHeight = Window_ChoiceList.prototype.lineHeight;
  105. Galv.VNC.Window_ChoiceList_lineHeight = Window_ChoiceList.prototype.lineHeight;
  106. Window_ChoiceList.prototype.lineHeight = function() {return $gameSystem.vnChoices ? Galv.VNC.height : Galv.VNC.Window_ChoiceList_lineHeight.call(this);};
  107. Galv.VNC.Window_ChoiceList_itemHeight = Window_ChoiceList.prototype.itemHeight;
  108. Window_ChoiceList.prototype.itemHeight = function() {return $gameSystem.vnChoices ? Galv.VNC.height : Galv.VNC.Window_ChoiceList_itemHeight.call(this);};

  109. Galv.VNC.Window_ChoiceList_drawItem = Window_ChoiceList.prototype.drawItem;
  110. Window_ChoiceList.prototype.drawItem = function(index) {
  111.         if ($gameSystem.vnChoices) {
  112.                 var rect = this.itemRectForText(index);
  113.                 this.drawButton(index,rect.y);
  114.                 if (index === this._index) this.drawButton(index,rect.y,true);
  115.                 var offset = (this.lineHeight() - this.textHeight()) * 0.5;
  116.                 this.drawTextEx(this.commandName(index), rect.x, rect.y + offset);
  117.         } else {
  118.                 Galv.VNC.Window_ChoiceList_drawItem.call(this,index);
  119.         };
  120. };

  121. Galv.VNC.Window_ChoiceList_updatePlacement = Window_ChoiceList.prototype.updatePlacement;
  122. Window_ChoiceList.prototype.updatePlacement = function() {
  123.         Galv.VNC.Window_ChoiceList_updatePlacement.call(this);
  124.         if ($gameSystem.vnChoices && Galv.VNC.alwaysMid) {
  125.                 this.x = (Graphics.boxWidth - this.width) / 2;
  126.         };
  127.         if (this._messageWindow.y >= Graphics.boxHeight / 2) {
  128.                 this.y -= Galv.VNC.msgGap;
  129.     } else {
  130.         this.y += Galv.VNC.msgGap;
  131.     };
  132. };

  133. Galv.VNC.Window_ChoiceList__refreshCursor = Window_ChoiceList.prototype._refreshCursor;
  134. Window_ChoiceList.prototype._refreshCursor = function() {
  135.         if ($gameSystem.vnChoices) {
  136.                 this._windowCursorSprite.opacity = 0;
  137.         } else {
  138.                 Galv.VNC.Window_ChoiceList__refreshCursor.call(this);
  139.         };
  140. };

  141. Window_ChoiceList.prototype.drawButton = function(index,y,cursor) {
  142.     var bitmap = ImageManager.loadSystem('VNButtons');
  143.     var pw = Galv.VNC.width;
  144.     var ph = Galv.VNC.height;

  145.     var sx = 0;
  146.         if (cursor) {
  147.                 var bgId = 0;
  148.         } else {
  149.                 if (this._list[index].enabled === false) {
  150.                         var bgId = Galv.VNC.disableBtn;
  151.                 } else {
  152.                         var bgId = this.choice_background[index] ? this.choice_background[index] : 1;
  153.                 };
  154.         };
  155.     var sy = bgId * ph;
  156.     this.contents.blt(bitmap, sx, sy, pw, ph, 0, y);
  157. };

  158. Galv.VNC.Window_ChoiceList_start = Window_ChoiceList.prototype.start;
  159. Window_ChoiceList.prototype.start = function() {
  160.         this.setupVNChoices();
  161.         Galv.VNC.Window_ChoiceList_start.call(this);
  162. };

  163. Window_ChoiceList.prototype.setupVNChoices = function() {
  164.         this.ChoiceSprites = [];
  165.         this.choice_background = [];
  166.         this._vnIndex = this._index;
  167.     if ($gameSystem.vnChoices) {
  168.       this.opacity = 0;
  169.         } else {
  170.       this.opacity = 255;
  171.         };
  172. };

  173. Galv.VNC.Window_ChoiceList_update = Window_ChoiceList.prototype.update;
  174. Window_ChoiceList.prototype.update = function() {
  175.         Galv.VNC.Window_ChoiceList_update.call(this);
  176.         if (this._vnIndex != this._index) {
  177.                 this.refresh();
  178.                 this._vnIndex = this._index;
  179.         }
  180. };


  181. Galv.VNC.Window_ChoiceList_updateBackground = Window_ChoiceList.prototype.updateBackground;
  182. Window_ChoiceList.prototype.updateBackground = function() {
  183.         if ($gameSystem.vnChoices) {
  184.                 this._background = 2;
  185.                     this.setBackgroundType(this._background);
  186.         } else {
  187.                 Galv.VNC.Window_ChoiceList_updateBackground.call(this);
  188.         };
  189.    
  190. };


  191. Galv.VNC.Window_ChoiceList_convertEscapeCharacters = Window_ChoiceList.prototype.convertEscapeCharacters;
  192. Window_ChoiceList.prototype.convertEscapeCharacters = function(text,index) {
  193.         text = text.replace(/\\/g, '\x1b');
  194.         text = text.replace(/\x1b\x1b/g, '\\');
  195.         text = text.replace(/\x1bB\[(\d+)\]/gi, function() {
  196.                 this.choice_background[index] = parseInt(arguments[1]);
  197.         return "";
  198.     }.bind(this));
  199.        
  200.         return Galv.VNC.Window_ChoiceList_convertEscapeCharacters.call(this,text);
  201. };

  202. Window_ChoiceList.prototype.itemRectForText = function(index) {
  203.     var rect = this.itemRect(index);
  204.         if ($gameSystem.vnChoices) {

  205.                 var txt = $gameMessage._choices[index];
  206.                
  207.                 // count icon code
  208.                 var icons = txt.match(/\\i\[/g) || txt.match(/\\I\[/g);
  209.                 icons = icons ? icons.length * 36 : 0;
  210.                
  211.                 txt = this.convertEscapeCharacters(txt,index);
  212.                 txt = txt.replace(/i\[\d*\]/g,"");
  213.                 txt = txt.replace(/I\[\d*\]/g,"");
  214.                
  215.                 txt = txt.replace(/c\[\d*\]/g,"");
  216.                 txt = txt.replace(/C\[\d*\]/g,"");
  217.                 var txtSize = this.textWidth(txt) + icons;

  218.                 rect.x = (Galv.VNC.width - txtSize) / 2;
  219.         } else {
  220.                 rect.x += this.textPadding();
  221.         };
  222.         rect.width -= this.textPadding() * 2;
  223.         return rect;
  224. };

  225. Window_ChoiceList.prototype.windowWidth = function() {
  226.     var width = this.maxChoiceWidth() + this.padding * 2;
  227.     return Math.min(width, Graphics.boxWidth);
  228. };

  229. Galv.VNC.Window_ChoiceList_maxChoiceWidth = Window_ChoiceList.prototype.maxChoiceWidth;
  230. Window_ChoiceList.prototype.maxChoiceWidth = function() {
  231.         if ($gameSystem.vnChoices) {
  232.                 return Galv.VNC.width;
  233.         } else {
  234.                 return Galv.VNC.Window_ChoiceList_maxChoiceWidth.call(this);
  235.         };
  236. };


  237. })();
复制代码
360截图20200214130345830.jpg
VNButtons.png
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

梦石
0
星屑
58
在线时间
7 小时
注册时间
2020-2-13
回帖
2
 楼主| 发表于 2020-2-14 13:20:17 | 显示全部楼层
j296196585 发表于 2020-2-14 13:03
不知道是不是这个

如果楼主说的是这个 目前没有看见这种插件

阿里嘎都
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2020-2-14 13:24:33 | 显示全部楼层


\b[1]兑换英雄
\b[2]兑换英雄
\b[3]兑换英雄

使用说明
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部