AppointedPie

APP_WindowPadding

Oct 25th, 2015
983
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // AppointedPie - Window Padding
  3. // APP_WindowPadding.js
  4. //=============================================================================
  5. var Imported = Imported || {};
  6. Imported.APP_WindowPadding = true; var AppointedPie = AppointedPie || {};
  7. AppointedPie.WindowPadding = AppointedPie.WindowPadding || {};
  8. //=============================================================================
  9. /*:
  10.  * @plugindesc v1.0 Additional parameter changes to the core systems of RPG Maker MV
  11.  * @author AppointedPie
  12.  *
  13.  * @param ----Window----
  14.  * @default
  15.  *
  16.  * @param Line Height
  17.  * @desc Adjusts the Line Height system default.
  18.  * Default: 36
  19.  * @default 30
  20.  *
  21.  * @param Window Padding
  22.  * @desc Adjusts the window padding system default.
  23.  * Default: 18
  24.  * @default 10
  25.  *
  26.  * @param Text Padding
  27.  * @desc Adjusts the text padding system default.
  28.  * Default: 6
  29.  * @default 2
  30.  *
  31.  */
  32. //=============================================================================
  33. // Parameter Variables
  34. //=============================================================================
  35. AppointedPie.Parameters = PluginManager.parameters('APP_WindowPadding');
  36. AppointedPie.Param = AppointedPie.Param || {};
  37. AppointedPie.Param.LineHeight = Number(AppointedPie.Parameters['Line Height']);
  38. AppointedPie.Param.WinPad = Number(AppointedPie.Parameters['Window Padding']);
  39. AppointedPie.Param.TextPad = Number(AppointedPie.Parameters['Text Padding']);
  40. //-----------------------------------------------------------------------------
  41. Window_Base.prototype.lineHeight = function() {
  42.     return AppointedPie.Param.LineHeight;
  43. }; Window_Base.prototype.standardPadding = function() {
  44.     return AppointedPie.Param.WinPad
  45. }; Window_Base.prototype.textPadding = function() {
  46.     return AppointedPie.Param.TextPad
  47. }; Window_Base.prototype.updatePadding = function() {
  48.     this.padding = this.standardPadding();
  49. };
  50. //=============================================================================
  51. // End of File
  52. //=============================================================================
Advertisement
Add Comment
Please, Sign In to add comment