Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Podmieniane Mapy
- // @version 1.0
- // @description Podmienia grafike mapki
- // @author You
- // @match http://*.margonem.pl/
- // @grant none
- // ==/UserScript==
- ((drawMap, maps) => {
- const image = new Image();
- window.Engine.map.draw = data => {
- if (maps[window.Engine.map.d.name] !== undefined) {
- const [x, y] = window.Engine.map.offset;
- if (image.src !== maps[window.Engine.map.d.name]) {
- image.src = maps[window.Engine.map.d.name];
- }
- return data.drawImage(image, -x, -y);
- }
- drawMap(data);
- }
- })(window.Engine.map.draw, {
- "Osada Śmiałków": "https://vgy.me/0X3yku.png",
- "Nazwa Mapy": "link_do_mapy.png"
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement