Page 1 of 1
addConnector
Posted: Thu Jan 27, 2022 4:14 am
by RayB
I would like to add a connector to a wall text so that when the text is clicked I can perform an action (call a function).
Using 'onShowText' for the event doesn't seem to work. I am sure my syntax is messed up. Can somebody provide an example?
Re: addConnector
Posted: Thu Jan 27, 2022 3:32 pm
by Zo Kath Ra
Can you upload a test dungeon that demonstrates how you're adding the connector to the wall text?
1) Zip the editor files
2) Convert them to base64 with
https://base64.guru/converter/encode/file
3) Reply to this post, and put the base64 string inside code tags
And please tell us what doesn't work.
Is there an error, or does nothing happen?
Re: addConnector
Posted: Thu Jan 27, 2022 4:44 pm
by RayB
Please accept my sincere apology. I must have had a typo or something. I got it to work with...
secPassTxt.walltext:addConnector("onShowText","secPassScr","addText")