-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathOrangeDisableRefresh.js
More file actions
34 lines (32 loc) · 1.18 KB
/
OrangeDisableRefresh.js
File metadata and controls
34 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*=============================================================================
* Orange - DisableRefresh
* By Hudell - www.hudell.com
* OrangeDisableRefresh.js
* Version: 1.0
* Free for commercial and non commercial use.
*=============================================================================*/
/*:
* @plugindesc Disables F5 Refresh <OrangeDisableRefresh>
* @author Hudell
*
* @help
* ============================================================================
* Hudell's Plugins
* ============================================================================
*
* Check out my website:
* http://hudell.com
*
*=============================================================================*/
var Imported = Imported || {};
var Hudell = Hudell || {};
Hudell.OrangeDisableRefresh = Hudell.OrangeDisableRefresh || {};
(function($) {
$.oldSceneManager_onKeyDown = SceneManager.onKeyDown;
SceneManager.onKeyDown = function(event) {
if (event.keyCode == 116) return;
$.oldSceneManager_onKeyDown.call(this, event);
};
})(Hudell.OrangeDisableRefresh);
OrangeDisableRefresh = Hudell.OrangeDisableRefresh;
Imported.OrangeDisableRefresh = 1.0;