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

Project1

 找回密码
 注册会员
搜索
查看: 3058|回复: 16
打印 上一主题 下一主题

[已经过期] 求一个类似VA装备说明增强的插件..

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
56 小时
注册时间
2011-11-6
帖子
17
跳转到指定楼层
1
发表于 2017-7-15 19:21:19 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
能自动显示装备的属性和特性的那种{:2_249:}

Lv1.梦旅人

梦石
0
星屑
50
在线时间
56 小时
注册时间
2011-11-6
帖子
17
2
 楼主| 发表于 2017-7-20 17:31:34 | 只看该作者
难道大家都不用装备说明得吗{:2_250:}两行不够用啊!!{:2_258:}
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3404
在线时间
461 小时
注册时间
2013-12-7
帖子
333
3
发表于 2017-7-22 15:39:28 | 只看该作者
拿去不谢

floatHelp.rar

3.28 KB, 下载次数: 138

点评

谢谢大佬!  发表于 2017-7-29 12:53
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3533
在线时间
1057 小时
注册时间
2009-10-3
帖子
185
4
发表于 2017-7-22 17:51:34 | 只看该作者

请问一下
\n 换行?
为什么\n没有什么反应呢?

点评

\nw换行。  发表于 2017-7-22 21:07
自己给自己挖了一个坑,然后掉下去的我,竟然爬不上来了,呵呵(NMB)。
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3657
在线时间
1133 小时
注册时间
2017-4-6
帖子
278

开拓者

5
发表于 2017-7-22 20:59:24 | 只看该作者
浮动窗口,可以添加额外说明
  1. //
  2. //  ミニインフォメーションウィンドウ ver1.03
  3. //
  4. // ------------------------------------------------------
  5. // Copyright (c) 2016 Yana
  6. // Released under the MIT license
  7. // http://opensource.org/licenses/mit-license.php
  8. // ------------------------------------------------------
  9. //
  10. // author Yana
  11. //

  12. var Imported = Imported || {};
  13. Imported['MiniInformationWindow'] = 1.03;
  14. /*:
  15. * @plugindesc ver1.03/さまざまな情報を表示するミニウィンドウを定義します。
  16. * @author Yana
  17. *
  18. * @param 【基本設定】
  19. *
  20. * @param Switch Key
  21. * @desc ミニウィンドウの可視状態を切り替えるキーです。
  22. * @default tab,menu
  23. *
  24. * @param Default State
  25. * @desc ミニウィンドウが初期状態です。
  26. * openで開いた状態、それ以外で閉じた状態になります。
  27. * @default open
  28. *
  29. * @param Two Col Size
  30. * @desc ミニウィンドウが2列になる行数です。
  31. * この行数以上のデータが渡されると、表示が2列になります。
  32. * @default 8
  33. *
  34. * @param Window Offset X
  35. * @desc ミニウィンドウのX座標の補正値です。
  36. * @default 0
  37. *
  38. * @param Window Offset Y
  39. * @desc ミニウィンドウのY座標の補正値です。
  40. * @default 0
  41. *
  42. * @param Use Scene Item
  43. * @desc アイテムシーンでミニウィンドウを使用するかの設定です。
  44. * @default true
  45. *
  46. * @param Use Scene Skill
  47. * @desc スキルシーンでミニウィンドウを使用するかの設定です。
  48. * @default true
  49. *
  50. * @param Use Scene Equip
  51. * @desc 装備シーンでミニウィンドウを使用するかの設定です。
  52. * @default true
  53. *
  54. * @param Use Scene Shop
  55. * @desc ショップシーンでミニウィンドウを使用するかの設定です。
  56. * @default true
  57. *
  58. * @param 【用語の設定】
  59. *
  60. * @param Effect Name
  61. * @desc 有効度の名称です。
  62. * @default 有効度
  63. *
  64. * @param Down Name
  65. * @desc デバフ有効度の名称です。
  66. * @default 低下有効度
  67. *
  68. * @param Turn Text
  69. * @desc バフなどに使用されるターンの名称です。
  70. * @default ターン
  71. *
  72. * @param Escape Text
  73. * @desc 特殊効果 逃げるの名称です。
  74. * @default 逃げる
  75. *
  76. * @param Param Color
  77. * @desc 詳細ウィンドウに表示する特徴の色設定です。
  78. * 順番に基本色、システム色、上昇色、下降色です。
  79. * @default 6,4,24,2
  80. *
  81. * @param Param Text1
  82. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  83. * 1は有効度と無効化です。
  84. * @default  有効度,弱体有効度,無効化
  85. *
  86. * @param Param Text2
  87. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  88. * 2は追加能力値です。
  89. * @default 命中率,回避率,会心率,会心回避,魔法回避,魔法反射率,反撃率,再生率,再生率,再生率
  90. *
  91. * @param Param Text3
  92. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  93. * 3は特殊能力値です。
  94. * @default 狙われ率,防御効果率,回復効果率,薬の知識,消費率,チャージ率,物理ダメージ率,魔法ダメージ率,床ダメージ率,経験値獲得率
  95. *
  96. * @param Param Text4
  97. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  98. * 4は攻撃タブです。
  99. * @default 攻撃属性付与:,攻撃時ステート付与:,攻撃速度,攻撃回数
  100. *
  101. * @param Param Text5
  102. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  103. * 5はスキルタブです。
  104. * @default スキルタイプ追加:,スキルタイプ封印:,スキル追加:,スキル封印:
  105. *
  106. * @param Param Text6
  107. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  108. * 6は装備タブです。
  109. * @default 武器タイプ追加:,防具タイプ追加:,装備固定:,装備封印:,二刀流
  110. *
  111. * @param Param Text7
  112. * @desc 詳細ウィンドウに表示する特徴の表示名です。
  113. * 7はその他タブです。
  114. * @default 行動回数追加,自動戦闘,防御,身代わり,TP持越し,消滅エフェクト,エンカウント半減,エンカウント無効,不意打ち無効,先制率アップ,取得金額倍化,アイテム取得率倍化
  115. *
  116. * @param Defeat Text
  117. * @desc 消滅エフェクトで使用するサブテキストです。基本使用しません。
  118. * @default 通常,ボス,瞬間消去,消えない
  119. *
  120. * @param Effects Names
  121. * @desc 使用効果の各効果の名称です。
  122. * @default HP回復,HPダメージ,MP回復,MPダメージ,TP増加,ステート付与,ステート解除,強化付与,弱体付与,強化解除,弱体解除,特殊効果,成長,スキル習得,コモン
  123. *
  124. *  @help ------------------------------------------------------
  125. * プラグインコマンド
  126. * ------------------------------------------------------
  127. * このプラグインにはプラグインコマンドはありません。
  128. * ------------------------------------------------------
  129. * 使い方
  130. * ------------------------------------------------------
  131. * プラグインを導入し、プラグインパラメータを設定することで動作します。
  132. *
  133. * ※メモを使った設定※
  134. * アイテムや装備、スキルのメモを使うことにより、表示される使用効果や特徴に情報を追加することができます。
  135. *
  136. * <情報ウィンドウ追加前:xxx>
  137. * <AddInfoWindowP:xxx>
  138. *
  139. * のいずれかで、使用効果などが表示される前に、
  140. *
  141. * <情報ウィンドウ追加後:xxx>
  142. * <AddInfoWindowA:xxx>
  143. *
  144. * のいずれかで、使用効果などが表示された後に情報を追加することができます。
  145. * これらは複数記述することで、記述しただけ情報を追加できます。
  146. *
  147. * ※BattleLayout-SaGaで表示される情報はこの方法で追加を行うことはできません。
  148. *
  149. * ------------------------------------------------------
  150. * 利用規約
  151. * ------------------------------------------------------
  152. * 当プラグインはMITライセンスで公開されています。
  153. * 使用に制限はありません。商用、アダルト、いずれにも使用できます。
  154. * 二次配布も制限はしませんが、サポートは行いません。
  155. * 著作表示は任意です。行わなくても利用できます。
  156. * 要するに、特に規約はありません。
  157. * バグ報告や使用方法等のお問合せはネ実ツクールスレ、または、Twitterにお願いします。
  158. * https://twitter.com/yanatsuki_
  159. * 素材利用は自己責任でお願いします。
  160. * ------------------------------------------------------
  161. * 更新履歴:
  162. * ver1.03:
  163. * YEP_StatusMenuCoreと変数名が重複して正常に動作していなかったバグを修正。
  164. * ver1.02:
  165. * プラグインパラメータの設定が一部間違っていたのを修正。
  166. * ver1.01:
  167. * ウィンドウの横幅を名前も考慮するように修正。
  168. * MP再生率とTP再生率も表示されるように、パラメータのデフォルト値を調整。
  169. * ver1.00:
  170. * 公開
  171. */

  172. (function() {
  173.     ////////////////////////////////////////////////////////////////////////////////////

  174.     var parameters = PluginManager.parameters('MiniInformationWindow');
  175.     var switchKey = parameters['Switch Key'].split(',');
  176.     var defaultState = parameters['Default State'] === 'open';
  177.     var turnText = String(parameters['Turn Text'] || 'ターン');
  178.     var escapeText = String(parameters['Escape Text'] || '逃げる');
  179.     var effectNames = String(parameters['Effects Names'] || 'HP回復,HPダメージ,MP回復,MPダメージ,TP増加,ステート付与,ステート解除,強化付与,弱体付与,強化解除,弱体解除,特殊効果,成長,スキル習得,コモン').split(',');
  180.     var defeatText = parameters['Defeat Text'].split(',');
  181.     var paramColor = parameters['Param Color'].split(',');
  182.     var twoColSize = Number(parameters['Two Col Size']);
  183.     var offsetX = Number(parameters['Window Offset X']) || 0;
  184.     var offsetY = Number(parameters['Window Offset Y']) || 0;
  185.     var useSceneItem = parameters['Use Scene Item'] === 'true';
  186.     var useSceneSkill = parameters['Use Scene Skill'] === 'true';
  187.     var useSceneEquip = parameters['Use Scene Equip'] === 'true';
  188.     var useSceneShop = parameters['Use Scene Shop'] === 'true';
  189.     var paramVocab = [];


  190.     for (var i=1;i<=7;i++) {
  191.         var key = 'Param Text' + i;
  192.         paramVocab[i-1] = parameters[key].split(',');
  193.     }

  194.     ////////////////////////////////////////////////////////////////////////////////////

  195.     DataManager.preInfoItem = function (item) {
  196.         if (!item) return null;
  197.         if (!item.note) return null;
  198.         if (item._preInfos) return item._preInfos;
  199.         this.makeInfoItem(item);
  200.         return item._preInfos;
  201.     };

  202.     DataManager.afterInfoItem = function(item) {
  203.         if (!item) return null;
  204.         if (!item.note) return null;
  205.         if (item._afterInfos) return item._afterInfos;
  206.         this.makeInfoItem(item);
  207.         return item._afterInfos;
  208.     };

  209.     DataManager.makeInfoItem = function(item) {
  210.         item._preInfos = [];
  211.         item._afterInfos = [];
  212.         var texts = item.note.split('\n');
  213.         for (var i=0,max=texts.length;i<max;i++) {
  214.             if (texts[i].match(/<(?:情報ウィンドウ追加|AddInfoWindow)([前後PA]):(.+)>/)) {
  215.                 if (RegExp.$1 === '前' || RegExp.$1 === 'P') item._preInfos.push(RegExp.$2);
  216.                 if (RegExp.$1 === '後' || RegExp.$1 === 'A') item._afterInfos.push(RegExp.$2);
  217.             }
  218.         }
  219.     };

  220.     ////////////////////////////////////////////////////////////////////////////////////
  221.    
  222.     function Window_MiniInfo() {
  223.         this.initialize.apply(this, arguments);
  224.     }

  225.     Window_MiniInfo.prototype = Object.create(Window_Base.prototype);
  226.     Window_MiniInfo.prototype.constructor = Window_MiniInfo;

  227.     Window_MiniInfo.prototype.initialize = function() {
  228.         Window_Base.prototype.initialize.call(this, 0,0,32,32);
  229.         this._showInfo = defaultState;
  230.         this.openness = 0;
  231.         this._maxCols = 1;
  232.     };

  233.     Window_MiniInfo.prototype.standardFontSize = function() {
  234.         return 18;
  235.     };

  236.     Window_MiniInfo.prototype.standardPadding = function() {
  237.         return 6;
  238.     };

  239.     Window_MiniInfo.prototype.processDrawIcon = function(iconIndex, textState) {
  240.         this.drawIcon(iconIndex, textState.x + 2, textState.y + 2);
  241.         textState.x += this.standardFontSize() + 8;
  242.     };

  243.     Window_MiniInfo.prototype.drawIcon = function(iconIndex, x, y) {
  244.         var bitmap = ImageManager.loadSystem('IconSet');
  245.         var pw = Window_Base._iconWidth;
  246.         var ph = Window_Base._iconHeight;
  247.         var sx = iconIndex % 16 * pw;
  248.         var sy = Math.floor(iconIndex / 16) * ph;
  249.         var n = Math.floor((this.contents.fontSize / 28) * Window_Base._iconWidth);
  250.         this.contents.blt(bitmap, sx, sy, pw, ph, x, y, n, n);
  251.     };

  252.     Window_MiniInfo.prototype.exRow = function() {
  253.         if (this._item && this._item.name) return 1;
  254.         return 0;
  255.     };

  256.     Window_MiniInfo.prototype.setItem = function(item, rect, maxCols) {
  257.         this._item = item;
  258.         this._maxCols = maxCols ? maxCols : 1;
  259.         this.makeContents();
  260.         if (!maxCols && this._maxCols === 1 && this._data.length > twoColSize) this._maxCols = 2;
  261.         if (this._data.length > 0 && this._showInfo) {
  262.             this.width = this.calcWidth();
  263.             this.height = this.calcHeight();
  264.             this.refresh();
  265.             this.updatePosition(rect, rect.padding);
  266.             this.open();
  267.         } else {
  268.             this.close();
  269.         }
  270.     };

  271.     Window_MiniInfo.prototype.updatePosition = function(rect, padding) {
  272.         this.x = Math.min(Math.max(0,rect.width - this.width) + rect.x, Graphics.boxWidth - this.width);
  273.         this.y = rect.y;
  274.         if ((this.y + this.height) > Graphics.boxHeight) {
  275.             this.y = Math.max(rect.y - this.height - padding - rect.height,0);
  276.         }
  277.         this.x += offsetX;
  278.         this.y += offsetY;
  279.     };

  280.     Window_MiniInfo.prototype.makeContents = function() {
  281.         var item = this._item;
  282.         var color = paramColor;
  283.         this._data = [];
  284.         var c = '\\C['+color[0]+']';
  285.         var s = '\\C['+color[1]+']';
  286.         var g = '\\C['+color[2]+']';
  287.         var r = '\\C['+color[3]+']';
  288.         var text = '';
  289.         var preInfos = DataManager.preInfoItem(item);
  290.         var afterInfos = DataManager.afterInfoItem(item);
  291.         if (preInfos) this._data = this._data.concat(preInfos);
  292.         if (item.effects){
  293.             for (var i=0,max=item.effects.length;i<max;i++) {
  294.                 var e = item.effects[i];
  295.                 text = '';
  296.                 switch(e.code) {
  297.                     case 11:
  298.                         if (e.value1 > 0 && effectNames[0]) text = s + effectNames[0] + ':' + g + Math.floor(e.value1 * 100) + '%';
  299.                         if (e.value1 < 0 && effectNames[1]) text = s + effectNames[1] + ':' + r + Math.floor(Math.abs(e.value1 * 100)) + '%';
  300.                         if (e.value2 > 0 && effectNames[0]) text = s + effectNames[0] + ':' + g + e.value2;
  301.                         if (e.value2 < 0 && effectNames[1]) text = s + effectNames[1] + ':' + r + Math.abs(e.value2);
  302.                         break;
  303.                     case 12:
  304.                         if (e.value1 > 0 && effectNames[2]) text = s + effectNames[2] + ':' + g + Math.floor(e.value1 * 100) + '%';
  305.                         if (e.value1 < 0 && effectNames[3]) text = s + effectNames[3] + ':' + r + Math.floor(Math.abs(e.value1 * 100)) + '%';
  306.                         if (e.value2 > 0 && effectNames[2]) text = s + effectNames[2] + ':' + g + e.value2;
  307.                         if (e.value2 < 0 && effectNames[3]) text = s + effectNames[3] + ':' + r + Math.abs(e.value2);
  308.                         break;
  309.                     case 13:
  310.                         if (e.value1 > 0 && effectNames[4]) text = s + effectNames[4] + g +  '+' + e.value1;
  311.                         break;
  312.                     case 21:
  313.                         var state = $dataStates[e.dataId];
  314.                         if (state) {
  315.                             var name = state.name;
  316.                             if (e.value1 > 0 && effectNames[5]) text = s + effectNames[5] + ':' + c + name + ' ' + Math.floor(Math.abs(e.value1 * 100)) + '%';
  317.                         }
  318.                         break;
  319.                     case 22:
  320.                         var state = $dataStates[e.dataId];
  321.                         if (state) {
  322.                             var name = state.name;
  323.                             if (e.value1 > 0 && effectNames[6]) text = s + effectNames[6] + ':' + c + name + ' ' + Math.floor(Math.abs(e.value1 * 100)) + '%';
  324.                         }
  325.                         break;
  326.                     case 31:
  327.                         var name = TextManager.param(e.dataId);
  328.                         if (e.value1 > 0 && effectNames[7]) text = s + effectNames[7] + ':' + c + name + ' ' + e.value1 + turnText;
  329.                         break;
  330.                     case 32:
  331.                         var name = TextManager.param(e.dataId);
  332.                         if (e.value1 > 0 && effectNames[8]) text = s + effectNames[8] + ':' + c + name + ' ' + e.value1 + turnText;
  333.                         break;
  334.                     case 33:
  335.                         if (effectNames[9]) {
  336.                             var name = TextManager.param(e.dataId);
  337.                             text = s + effectNames[9] + ':' + c + name;
  338.                         }
  339.                         break;
  340.                     case 34:
  341.                         if  (effectNames[10]) {
  342.                             var name = TextManager.param(e.dataId);
  343.                             text = s + effectNames[10] + ':' + c + name;
  344.                         }
  345.                         break;
  346.                     case 41:
  347.                         if  (effectNames[11]) text = s + effectNames[11] + ':' + c + escapeText;
  348.                         break;
  349.                     case 42:
  350.                         if  (effectNames[12]) {
  351.                             var name = TextManager.param(e.dataId);
  352.                             text = s + effectNames[12] + ':' + c + name + '+' + e.value1;
  353.                         }
  354.                         break;
  355.                     case 43:
  356.                         if  (effectNames[13]) {
  357.                             var name = $dataSkills[e.dataId].name;
  358.                             if (name) text = s + effectNames[13] + ':' + c + name;
  359.                         }
  360.                         break;
  361.                     case 44:
  362.                         if  (effectNames[14]) {
  363.                             var name = $dataCommonEvents[e.dataId].name;
  364.                             if (name) text = s + effectNames[14] + ':' + c + name;
  365.                         }
  366.                         break;
  367.                 }
  368.                 if (text) this._data.push(text);
  369.             }
  370.         }
  371.         if (item.params) {
  372.             for (var i=0;i<8;i++) {
  373.                 var value = item.params[i];
  374.                 if (value !== 0){
  375.                     var ud = value > 0 ? g : r;
  376.                     var sym = value > 0 ? '+' : '';
  377.                     this._data.push(s + TextManager.param(i) + ud + sym + value );
  378.                 }
  379.             }
  380.         }
  381.         if (item.traits) {
  382.             for (var i=0,max=item.traits.length;i<max;i++) {
  383.                 var trait = item.traits[i];
  384.                 var vocab = paramVocab;
  385.                 var dataId = trait.dataId;
  386.                 var value = trait.value;
  387.                 var ud = value > 1.0 ? g : r;
  388.                 var du = value < 1.0 ? g : r;
  389.                 var sym = value > 0 ? '+' : '';
  390.                 text = '';
  391.                 switch (trait.code) {
  392.                     case 11:
  393.                         if (vocab[0][0] && value !== 1.0) {
  394.                             var ele = $dataSystem.elements[dataId];
  395.                             text = c + ele + s + vocab[0][0] + du + 'x' + Math.floor(value * 100) + '%';
  396.                         }
  397.                         break;
  398.                     case 12:
  399.                         if (vocab[0][1]  && value !== 1.0) {
  400.                             var param = TextManager.param(dataId);
  401.                             text = c + param + s + vocab[0][1] + du + 'x' + Math.floor(value * 100) + '%';
  402.                         }
  403.                         break;
  404.                     case 13:
  405.                         if (vocab[0][0]  && value !== 1.0) {
  406.                             var state = $dataStates[dataId].name;
  407.                             text = c + state + s + vocab[0][0] + du + 'x' + Math.floor(value * 100) + '%';
  408.                         }
  409.                         break;
  410.                     case 14:
  411.                         if (vocab[0][2]) {
  412.                             var state = $dataStates[dataId].name;
  413.                             text = c + state + s + vocab[0][2];
  414.                         }
  415.                         break;
  416.                     case 21:
  417.                         if (value !== 1.0) {
  418.                             var param = TextManager.param(dataId);
  419.                             text = s + param + ud + 'x' + Math.floor(value * 100) + '%';
  420.                         }
  421.                         break;
  422.                     case 22:
  423.                         var xparam = vocab[1][dataId];
  424.                         if (xparam && value !== 0) {
  425.                             //if (dataId === 0 && xparam) xparam = TextManager.param(8);
  426.                             //if (dataId === 1 && xparam) xparam = TextManager.param(9);
  427.                             if (dataId === 7 && xparam) xparam = TextManager.hpA + xparam;
  428.                             if (dataId === 8 && xparam) xparam = TextManager.mpA + xparam;
  429.                             if (dataId === 9 && xparam) xparam = TextManager.tpA + xparam;
  430.                             text = s + xparam + du + sym + Math.floor(value * 100) + '%';
  431.                         }
  432.                         break;
  433.                     case 23:
  434.                         var sparam = vocab[2][dataId];
  435.                         if (sparam && value !== 1.0) {
  436.                             if (dataId === 0) ud = c;
  437.                             if (dataId === 4) { sparam = TextManager.mpA + sparam; ud = du; }
  438.                             if (dataId === 5) TextManager.tpA + sparam;
  439.                             if (dataId === 6 || dataId === 7 || dataId === 8) ud = du;
  440.                             text = s + sparam + ud + 'x' + Math.floor(value * 100) + '%';
  441.                         }
  442.                         break;
  443.                     case 31:
  444.                         if (vocab[3][0]) {
  445.                             var ele = $dataSystem.elements[dataId];
  446.                             text = s + vocab[3][0] + c + ele;
  447.                         }
  448.                         break;
  449.                     case 32:
  450.                         if (vocab[3][1] && value > 0) {
  451.                             var state = $dataStates[dataId].name;
  452.                             text = s + vocab[3][1] + c + state + ' ' + Math.floor(value*100) + '%' ;
  453.                         }
  454.                         break;
  455.                     case 33:
  456.                         if (vocab[3][2] && value !== 0) text = s + vocab[3][2] + ud + sym + value;
  457.                         break;
  458.                     case 34:
  459.                         if (vocab[3][3] && value !== 0){
  460.                             var ud = value > 0 ? g : r;
  461.                             text = s + vocab[3][3] + ud + sym + value + '回';
  462.                         }
  463.                         break;
  464.                     case 41:
  465.                     case 42:
  466.                         var stype = $dataSystem.skillTypes[dataId];
  467.                         var v = trait.code === 41 ? vocab[4][0] : vocab[4][1];
  468.                         if (v && stype) text = s + v + c + stype;
  469.                         break;
  470.                     case 43:
  471.                     case 44:
  472.                         var skill = $dataSkills[dataId];
  473.                         var v = trait.code === 43 ? vocab[4][2] : vocab[4][3];
  474.                         if (v && skill) text = s + v + c + skill.name;
  475.                         break;
  476.                     case 51:
  477.                     case 52:
  478.                         var type = trait.code === 51 ? $dataSystem.weaponTypes[dataId] : $dataSystem.armorTypes[dataId];
  479.                         var v = trait.code === 51 ? vocab[5][0] : vocab[5][1];
  480.                         if (v && type) text = s + v + c + type;
  481.                         break;
  482.                     case 53:
  483.                     case 54:
  484.                         var etype = $dataSystem.equipTypes[dataId];
  485.                         var v = trait.code === 53 ? vocab[5][2] : vocab[5][3];
  486.                         if (v && etype) text = s + v + c + etype;
  487.                         break;
  488.                     case 55:
  489.                         if (vocab[5][4]) text = s + vocab[5][4];
  490.                         break;
  491.                     case 61:
  492.                         if (vocab[6][0] && value > 0) text = s + vocab[6][0] + du + sym + (value * 100) + '%';
  493.                         break;
  494.                     case 62:
  495.                         if (vocab[6][1+dataId]) {
  496.                             text = s + vocab[6][1 + dataId];
  497.                         }
  498.                         break;
  499.                     case 63:
  500.                         if (vocab[6][5]) text = s + vocab[6][5] + defeatText[dataId];
  501.                         break;
  502.                     case 64:
  503.                         if (vocab[6][6+dataId]) text = s + vocab[6][6+dataId];
  504.                         break;
  505.                     case 111:
  506.                         if (vocab[0][0] && value !== 0) {
  507.                             var ele = $dataSystem.elements[dataId];
  508.                             du = value < 0 ? g : r;
  509.                             text = c + ele + s + vocab[0][0] + du + sym + Math.floor(value * 100) + '%';
  510.                         }
  511.                         break;
  512.                     case 112:
  513.                         if (vocab[0][1]  && value !== 0) {
  514.                             var param = TextManager.param(dataId);
  515.                             du = value < 0 ? g : r;
  516.                             text = c + param + s + vocab[0][1] + du + sym + Math.floor(value * 100) + '%';
  517.                         }
  518.                         break;
  519.                     case 113:
  520.                         if (vocab[0][0]  && value !== 0) {
  521.                             var state = $dataStates[dataId].name;
  522.                             du = value < 0 ? g : r;
  523.                             text = c + state + s + vocab[0][0] + du + sym + Math.floor(value * 100) + '%';
  524.                         }
  525.                         break;
  526.                     case 121:
  527.                         if (value !== 0) {
  528.                             var param = TextManager.param(dataId);
  529.                             text = s + param + ud + sym + value;
  530.                         }
  531.                         break;
  532.                     case 123:
  533.                         var sparam = vocab[2][dataId];
  534.                         if (sparam && value !== 0) {
  535.                             ud = value > 0 ? g : r;
  536.                             du = value < 0 ? g : r;
  537.                             if (dataId === 0) ud = c;
  538.                             if (dataId === 4) { sparam = TextManager.mpA + sparam; ud = du; }
  539.                             if (dataId === 5) TextManager.tpA + sparam;
  540.                             if (dataId === 6 || dataId === 7 || dataId === 8) ud = du;
  541.                             text = s + sparam + ud + sym + Math.floor(value * 100) + '%';
  542.                         }
  543.                         break;
  544.                 }

  545.                 if(text) this._data.push(text);
  546.             }
  547.         }
  548.         if (item.data) this._data = this._data.concat(item.data);
  549.         if (afterInfos) this._data = this._data.concat(afterInfos);
  550.     };

  551.     Window_MiniInfo.prototype.calcWidth = function() {
  552.         var w = 32;
  553.         var ic = 0;
  554.         var nw = 0;
  555.         if (this._item && this._item.name){
  556.             var name = this._item.name;
  557.             if (this._item.iconIndex) name = '\\I[' + this._item.iconIndex + ']' + name;
  558.             name = name.replace(/\\C\[\d+\]/gi,'');
  559.             name = name.replace(/\\I\[\d+\]/gi,function(){
  560.                 ic+=1;
  561.                 return '';
  562.             }.bind(this));
  563.             nw = this.textWidth(name) + ic * (this.standardFontSize() + 8);
  564.         }
  565.         for (var i=0,max=this._data.length;i<max;i++) {
  566.             var text = this._data[i];
  567.             text = text.replace(/\\C\[\d+\]/gi,'');
  568.             text = text.replace(/\\I\[\d+\]/gi,function(){
  569.                 ic+=1;
  570.                 return '';
  571.             }.bind(this));
  572.             var n = this.textWidth(text) + ic * (this.standardFontSize() + 8);
  573.             if (n > w) w = n;
  574.         }
  575.         w = w * this._maxCols;
  576.         w = nw > w ? nw : w;
  577.         return w + 32;
  578.     };

  579.     Window_MiniInfo.prototype.calcHeight = function() {
  580.         return (Math.ceil(this._data.length / this._maxCols) + this.exRow()) * (this.standardFontSize() + 2) + this.standardPadding() * 2 + 24;
  581.     };

  582.     Window_MiniInfo.prototype.refresh = function() {
  583.         this.createContents();
  584.         this.contents.clear();
  585.         var fs = this.standardFontSize() + 2;
  586.         var oy = 8;
  587.         if (this.exRow()) {
  588.             oy += 8;
  589.             var name = this._item.name;
  590.             if (this._item.iconIndex) name = '\\I[' + this._item.iconIndex + ']' + name;
  591.             this.drawTextEx(name, 8, 4);
  592.             this.contents.paintOpacity = 128;
  593.             this.contents.fillRect(4, fs + 12, this.contentsWidth() - 8, 2, this.normalColor());
  594.             this.contents.paintOpacity = 255;
  595.         }
  596.         for (var i=0,max=this._data.length;i<max;i++) {
  597.             var x = 6 + Math.floor(i / (max / this._maxCols)) * Math.floor(this.contentsWidth() / 2);
  598.             var y = ((i % Math.ceil(max / this._maxCols))+this.exRow()) * fs + oy;
  599.             this.drawTextEx(this._data[i],x,y);
  600.         }
  601.     };

  602.     ////////////////////////////////////////////////////////////////////////////////////

  603.     var __WSelectable_setHelpWindowItem = Window_Selectable.prototype.setHelpWindowItem;
  604.     Window_Selectable.prototype.setHelpWindowItem = function(item) {
  605.         __WSelectable_setHelpWindowItem.call(this, item);
  606.         this.setMiniWindow(item);
  607.     };

  608.     var __WSelectable_deactivate = Window_Selectable.prototype.deactivate;
  609.     Window_Selectable.prototype.deactivate = function() {
  610.         __WSelectable_deactivate.call(this);
  611.         if (this._miniInfoWindow) this._miniInfoWindow.close();
  612.     };

  613.     var __WSelectable_processHandling = Window_Selectable.prototype.processHandling;
  614.     Window_Selectable.prototype.processHandling = function() {
  615.         __WSelectable_processHandling.call(this);
  616.         if (this.isOpenAndActive() && this._miniInfoWindow && this.isIwSwitchTriggered()) {
  617.             this._miniInfoWindow._showInfo = !this._miniInfoWindow._showInfo;
  618.             if (this._miniInfoWindow._showInfo){
  619.                 this._miniInfoWindow.open();
  620.                 this.updateHelp();
  621.             }
  622.             if (!this._miniInfoWindow._showInfo) this._miniInfoWindow.close();
  623.         }
  624.     };

  625.     Window_Selectable.prototype.isIwSwitchTriggered = function() {
  626.         for (var i=0,max=switchKey.length;i<max;i++) {
  627.             var key = switchKey[i];
  628.             if (Input.isTriggered(key)) return true;
  629.         }
  630.         return false;
  631.     };

  632.     Window_Selectable.prototype.setMiniWindow = function(item) {
  633.         if (this._miniInfoWindow){
  634.             if (this.active && item) {
  635.                 var rect = this.itemRect(this.index());
  636.                 rect.x = rect.x + this.x;
  637.                 rect.y = rect.y + rect.height + this.y + this.standardPadding() + 4;
  638.                 rect.padding = this.standardPadding();
  639.                 this._miniInfoWindow.setItem(item, rect);
  640.             } else {
  641.                 this._miniInfoWindow.close();
  642.             }
  643.         }
  644.     };

  645.     ////////////////////////////////////////////////////////////////////////////////////

  646.     Scene_Base.prototype.createMiniWindow = function() {
  647.         this._miniWindow = new Window_MiniInfo();
  648.         if (this._buyWindow) this._buyWindow._miniInfoWindow = this._miniWindow;
  649.         if (this._sellWindow) this._sellWindow._miniInfoWindow = this._miniWindow;
  650.         if (this._slotWindow) this._slotWindow._miniInfoWindow = this._miniWindow;
  651.         if (this._itemWindow) this._itemWindow._miniInfoWindow = this._miniWindow;
  652.         this.addChild(this._miniWindow);
  653.     };

  654.     ////////////////////////////////////////////////////////////////////////////////////

  655.     var __SItem_create = Scene_Item.prototype.create;
  656.     Scene_Item.prototype.create = function() {
  657.         __SItem_create.call(this);
  658.         if (useSceneItem) this.createMiniWindow();
  659.     };

  660.     ////////////////////////////////////////////////////////////////////////////////////

  661.     var __SSkill_create = Scene_Skill.prototype.create;
  662.     Scene_Skill.prototype.create = function() {
  663.         __SSkill_create.call(this);
  664.         if (useSceneSkill) this.createMiniWindow();
  665.     };

  666.     ////////////////////////////////////////////////////////////////////////////////////

  667.     var __SEquip_create = Scene_Equip.prototype.create;
  668.     Scene_Equip.prototype.create = function() {
  669.         __SEquip_create.call(this);
  670.         if (useSceneEquip) this.createMiniWindow();
  671.     };

  672.     ////////////////////////////////////////////////////////////////////////////////////

  673.     var __SShop_create = Scene_Shop.prototype.create;
  674.     Scene_Shop.prototype.create = function() {
  675.         __SShop_create.call(this);
  676.         if (useSceneShop) this.createMiniWindow();
  677.     };

  678.     ////////////////////////////////////////////////////////////////////////////////////

  679. }());
复制代码
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3657
在线时间
1133 小时
注册时间
2017-4-6
帖子
278

开拓者

6
发表于 2017-7-22 21:07:41 | 只看该作者
这个是额外多一页就是两行说明

AdditionalDescription.7z

3.21 KB, 下载次数: 75

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
31 小时
注册时间
2017-6-11
帖子
13
7
发表于 2017-7-23 18:59:25 | 只看该作者
夏的66rpg 发表于 2017-7-22 21:07
这个是额外多一页就是两行说明

求教这个插件怎么备注?
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3657
在线时间
1133 小时
注册时间
2017-4-6
帖子
278

开拓者

8
发表于 2017-7-23 21:51:26 | 只看该作者
qunimade 发表于 2017-7-23 18:59
求教这个插件怎么备注?

<ADDescription: >
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
56 小时
注册时间
2011-11-6
帖子
17
9
 楼主| 发表于 2017-7-29 12:00:09 | 只看该作者
夏的66rpg 发表于 2017-7-22 20:59
浮动窗口,可以添加额外说明

请问这个要怎么用.我添加了没有效果,是要备注什么吗
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv3.寻梦者

梦石
0
星屑
2379
在线时间
912 小时
注册时间
2014-10-14
帖子
1331

开拓者

10
发表于 2017-7-29 12:57:21 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-30 06:08

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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