User:Apollolux/rm.js

From Spherical
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
var RM = (function(){
	var _f = GetSystemFont(), _w = GetSystemWindowStyle();
	var W = GetScreenWidth(), H = GetScreenHeight();
	var _rm = {};
	_rm.textbox = function(t) {
		_w.drawWindow(16,16,W-32,H-32);
		_f.drawTextBox(16,16,W-32,H-32,0,t);
	};
	return _rm;
})();