How can put HTML code in debug mode?

0 favourites
  • 1 posts
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Hello

    I try to make a Construct3 version for a Construct2 plugin that i making, the only part that i had a problem is in the Debug mode

    the code that i use for Construct2 version and Construct3 c2runtime:

     instanceProto.getDebuggerValues = function (propsections) 
    	{
    		//propsections.push({});
    		propsections.push({
    			"title": "Labyrinth",
    			"properties": [
    				{"name": "Map", 
    				 "value": this.GameDungeon == null? "<b>NOT DUNGEON CREATED YET</b>" : GraphiqueDungeon(this.GameDungeon), 
    				 "html": true, 
    				 "readonly": true}
    			]
    		});
    	};
    

    For otherwise, in c3runtime

    	GetDebuggerProperties()
    	{
    		const Acts = C3.Plugins.random_dungeon_maker.Acts;
    		const prefix = "plugins.Plugins.random_dungeon_maker.debugger.MapProperties";
    		return [{
    			title:"Labyrinth",
    			properties: [
    				{name: "Map",
    				 value: C3.Plugins.random_dungeon_maker.GameDungeon == null? "<b>NOT DUNGEON CREATED YET</b>" : GraphiqueDungeon(C3.Plugins.random_dungeon_maker.GameDungeon), 
    				 html: true}
    			]
    		}];
    	}
    

    The problem in this code is that the html property doesn´t work and the value not formated in HTML.

    Is possible convert the string in HTML like Construct2 or this is not available yet?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)