Lampost-Mud icon indicating copy to clipboard operation
Lampost-Mud copied to clipboard

output / color and link handling

Open JensWegener opened this issue 12 years ago • 0 comments

insteed of : { "display": { "lines": [ {"color": 7024747, "text": "Grottington Street [grottington:1]"}, {"color": 11354522, "text": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="}, {"color": 11354522, "text": "Branching off from the street to the west stands a recently constructed building ... to see during all hours of the day and night."}, {"color": 11354522, "text": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="}, {"color": 8421376, "text": "Exit: south grottington:0 "}, {"color": 8421376, "text": "Exit: north grottington:2 "}, {"color": 8421376, "text": "Exit: west grottington:19 "} ] } }

maybe do something like :

{ "display": { "content": [ {"c": 1, "t": "Grottington Street [grottington:1]", "n" : true}, {"c": 2, "t": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=", "n" : true}, {"c": 2, "t": "Branching off from the street to the west stands a recently ", "n" : false}, {"c": 3, "t": "constructed building", "n" : false, "a" : "look building"}, {"c": 2, "t": " ... to see during all hours of the day and night.", "n" : true}, {"c": 2, "t": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=", "n" : true}, {"c": 4, "t": "Exit: ", "n" : false}, {"c": 4, "t": "south", "n" : false, "a" : "move s"}, {"c": 4, "t": " grottington:0 ", "n" : true}, {"c": 4, "t": "Exit: ", "n" : false}, {"c": 4, "t": "north", "n" : false, "a" : "move n"}, {"c": 4, "t": " grottington:2 ", "n" : true}, {"c": 4, "t": "Exit: ", "n" : false}, {"c": 4, "t": "west", "n" : false, "a" : "move w"}, {"c": 4, "t": " grottington:19 ", "n" : true}, {"d": "prompt", "t" : "|123h 123m 123v>"} ] } }

so you can have multiple colors in one line, add links ( like mxp does ), etc.

JensWegener avatar Nov 09 '12 17:11 JensWegener