Advertisement
ICF-Soft

ICFSoft_DXShowParams

Mar 2nd, 2018
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // ICF-Soft Plugins - Patch for DX Show params
  3. // ICFSoft_DXShowParams.js
  4. //=============================================================================
  5.  
  6. var Imported = Imported || {};
  7. Imported.ICFSoft_DXShowParams = true;
  8.  
  9. var ICF = ICF || {};
  10. ICF.DXShowParams = ICF.DXShowParams || {};
  11. ICF.NotetagsProcessor = ICF.NotetagsProcessor || {};
  12.  
  13. ICF.DXShowParams.Version = 100; // 1.00
  14.  
  15. //=============================================================================
  16.  /*:
  17.  * @plugindesc v1.00 This plugin allows you to use ICFSoft Params Core
  18.  * with DreamX Show params plugin.
  19.  * @author ICF-Soft [http://icfsoft.blogspot.com.es/]
  20.  *
  21.  * @help
  22.  * ============================================================================
  23.  * Introduction
  24.  * ============================================================================
  25.  *
  26.  * It's meant to allow DreamX show params plugin to use parameters created with
  27.  * ICFSoft Params Core. Place under it.
  28.  *
  29.  * It's possible that it can work with other plugins similar to Show params
  30.  * but I didn't tested.
  31.  *
  32.  * ============================================================================
  33.  * Incompatibilities
  34.  * ============================================================================
  35.  *
  36.  * There's no known incompatible plugins yet.
  37.  *
  38.  * ============================================================================
  39.  * Known isues
  40.  * ============================================================================
  41.  *
  42.  * Not yet.
  43.  *
  44.  * ============================================================================
  45.  *
  46.  * For commercial and non-commercial games.
  47.  * Credit to ICF-Soft.
  48.  * This entire header must be included with plugin.
  49.  *
  50.  * ============================================================================
  51. */
  52. //=============================================================================
  53.  /*:es
  54.  * @plugindesc v1.00 Este complemento permite usar los parámetros creados con
  55.  * ICFSoft Params Core en DreamX Show params.
  56.  * @author ICF-Soft [http://icfsoft.blogspot.com.es/]
  57.  *
  58.  * @help
  59.  * ============================================================================
  60.  * Introducción
  61.  * ============================================================================
  62.  *
  63.  * Está hecho para que el plugin Show params de DreamX pueda utilizar los
  64.  * parámetros creados con ICFSoft Params Core. Colocar debajo de este.
  65.  *
  66.  * Aunque está pensado para este, es posible que funcione con otros plugins
  67.  * similares. Es cuestión de probar.
  68.  *
  69.  * ============================================================================
  70.  * Incompatibilidades
  71.  * ============================================================================
  72.  *
  73.  * No se conocen complementos que sean incompatibles hasta la fecha.
  74.  *
  75.  * ============================================================================
  76.  * Problemas conocidos
  77.  * ============================================================================
  78.  *
  79.  * De momento ninguno.
  80.  *
  81.  * ============================================================================
  82.  *
  83.  * Para juegos comerciales y no comerciales.
  84.  * Se debe incluir a ICF-Soft en los créditos.
  85.  * Esta cabecera debe incluirse íntegramente con el plugin.
  86.  *
  87.  * ============================================================================
  88. */
  89. //=============================================================================
  90.  
  91. //=============================================================================
  92. // Parameter Variables
  93. //=============================================================================
  94.  
  95. ICF.Parameters = PluginManager.parameters('ICFSoft_DXShowParams');
  96. ICF.Param = ICF.Param || {};
  97.  
  98. //=============================================================================
  99. // TextManager
  100. //=============================================================================
  101.  
  102. ICF.DXShowParams.TextManager_param = TextManager.param;
  103. TextManager.param = function (paramId) {
  104.     if (ICF.Param.NParams.indexOf(paramId) > -1) {
  105.     var parId = ICF.Param.NParams.indexOf(paramId);
  106.     return ICF.Param.NParamsFullName[parId];
  107.     } else if (ICF.Param.PParams.indexOf(paramId) > -1) {
  108.     var parId = ICF.Param.PParams.indexOf(paramId);
  109.     return ICF.Param.PParamsFullName[parId];
  110.     } else {
  111.     return ICF.DXShowParams.TextManager_param.call(this, paramId);
  112.     }
  113. };
  114.  
  115. //=============================================================================
  116. // End of File
  117. //=============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement