Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. //==============================================================================
  2. // Nessuno_MoreMenuBGOptions.js
  3. //==============================================================================
  4.  
  5. /*:
  6. * @plugindesc Expands options for how the game screen will look when paused.
  7. * @author Nessuno
  8. *
  9. *
  10. * @param Red
  11. * @desc Affects tint's redness (-255 to 255)
  12. * @default 0
  13. *
  14. *
  15. * @param Green
  16. * @desc Affects tint's greeness (-255 to 255)
  17. * @default 0
  18. *
  19. *
  20. * @param Blue
  21. * @desc Affects tint's blueness (-255 to 255)
  22. * @default 0
  23. *
  24. *
  25. * @param Grayscale
  26. * @desc Affect's tint's greyness (0 to 255)
  27. * @default 0
  28. *
  29. *
  30. * @help Free for commercial and non-commercial use. Credit Prefered
  31. * Version 1.0
  32. */
  33.  
  34. (function() {
  35. var parameters = PluginManager.parameters('Nessuno_MoreMenuBGOptions');
  36. var tRed = Number(parameters['Red'] || 1);
  37. var tGreen = Number(parameters['Green'] || 1);
  38. var tBlue = Number(parameters['Blue'] || 1);
  39. var tGray = Number(parameters['Grayscale'] || 1);
  40.  
  41. function Scene_Map() {
  42. this.initialize.apply(this, arguments);
  43. }
  44.  
  45. SceneManager.snapForBackground = function() {
  46.  
  47. this._backgroundBitmap = this.snap();
  48. this._backgroundBitmap.blur();
  49. this._backgroundBitmap.adjustTone(tRed, tGreen, tBlue, tGray);
  50.  
  51. };
  52.  
  53. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement