Skip to content

Commit

Permalink
Merge pull request #39 from Roger92/devRoger
Browse files Browse the repository at this point in the history
Removed console.logs
  • Loading branch information
Roger92 authored Nov 5, 2023
2 parents 0eb7d4a + 9af6517 commit fdb72e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Hooks.once('ready', () => {
libWrapper.register("metric-ruler-labels", "CONFIG.MeasuredTemplate.layerClass.prototype._onDragLeftDrop", async function (wrapped, ...args) {
let wrappedResult = await wrapped(...args);
let measureTemplateSupport = game.settings.get("metric-ruler-labels", "measureTemplateSupport");
console.log("MeasuredTemplate.prototype._onDragLeftMove");
console.log(wrappedResult);
//console.log("MeasuredTemplate.prototype._onDragLeftMove");
//console.log(wrappedResult);
let rulers = game.canvas.controls.rulers.children;
for (let i = 0; i < rulers.length; i++) {
let rulerSegments = rulers[i].segments
Expand All @@ -78,7 +78,7 @@ Hooks.once('ready', () => {
libWrapper.register("metric-ruler-labels", "MeasuredTemplate.prototype._refreshRulerText", async function (wrapped, ...args) {
let wrappedResult = await wrapped(...args);
let measureTemplateSupport = game.settings.get("metric-ruler-labels", "measureTemplateSupport");
console.log("MeasuredTemplate.prototype._onDragLeftMove");
//console.log("MeasuredTemplate.prototype._onDragLeftMove");
let templates = game.canvas.templates.children[0].children;
for (let i = 0; i < templates.length; i++) {
if (measureTemplateSupport && templates[i].ruler && templates[i].ruler.text.split("\n").length === 1) {
Expand All @@ -105,8 +105,8 @@ Hooks.once('ready', () => {
libWrapper.register("metric-ruler-labels", "TemplateLayer.prototype._onDragLeftMove", async function (wrapped, ...args) {
let wrappedResult = await wrapped(...args);
let measureTemplateSupport = game.settings.get("metric-ruler-labels", "measureTemplateSupport");
console.log("MeasuredTemplate.prototype.refresh");
console.log(wrappedResult);
//console.log("MeasuredTemplate.prototype.refresh");
//console.log(wrappedResult);
if (foundryGeneration < 10) {
if (measureTemplateSupport && wrappedResult && wrappedResult.hud.ruler) {
wrappedResult.hud.ruler.text = addMetricLabels(wrappedResult.hud.ruler.text);
Expand All @@ -128,7 +128,7 @@ Hooks.once('ready', () => {
libWrapper.register("metric-ruler-labels", "Ruler.prototype.measure", function (wrapped, ...args) {
let wrappedResult = wrapped(...args);
let dragRulerSupportActive = game.settings.get("metric-ruler-labels", "dragRulerSupport");
console.log("Ruler.prototype.measure");
//console.log("Ruler.prototype.measure");
let foundryGeneration = game.release.generation;

if (foundryGeneration < 10) {
Expand Down

0 comments on commit fdb72e2

Please sign in to comment.