Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by fugufish

I wanted to remove all those text labels of entities when i'm loading my map in Weltmeister.

I did this in config.js of weltmeister:

	'labels': {
		'draw': false, //set to false
		'step': 32,
		'font': '10px Arial'
	},


but apparently the labels still get drawn.

The funny thing is, if I change the size of the font , the changes are visible!

1 decade ago by fugufish

ah I got it:

change the edit-entities.js in weltmeister folder:
- locate drawEntity() function,
- remove/outcomment the entire part below:


		/*

		var className = ent._wmClassName.replace(/^Entity/, '');
		var description = className + (ent.name ? ': ' + ent.name : '' );
		ig.system.context.fillStyle = '#fff';
		ig.system.context.fillText(
			description,
			ig.system.getDrawPos(ent.pos.x - ig.game.screen.x), 
			ig.system.getDrawPos(ent.pos.y - ig.game.screen.y)
		);

		*/

1 decade ago by dominic

The config value is only honored for the "pixel position labels" on the top and left margin, not for the entity names. I will fix this; sorry!
Page 1 of 1
« first « previous next › last »