Implementing images to a custom pane #1591
-
I am currently trying to implement a map object to custom pane I added using Quest 5.9. I found an old forum that discussed how to add a custom pane. This worked out well, the code I used is:
This was put into the game/Advanced Scripts tab, in the User Interface Initialisation script. The map object is added to the player inventory early in the game, but I have not figured out how to get it to show in the accordion label when I click the Show Map command. Any advice on how to implement this would be great. I plan on adding another pane that will show character images as well, but that will be easy once I get this map to work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello.
Not quite sure what you're wanting to do... Are you trying to move Quest's map into your custom pane? Or are you trying to display an image you have of a map in the custom pane? Can you share your Show Map command? |
Beta Was this translation helpful? Give feedback.
That looks like it should be:
In JS,
'
is the same as"
. This JS is nested inJS.eval("")
, and there we have to use"
for Quest. So, I use'
in the JS inside that whenever possible, to avoid having to escape the double quotes like\"
for things to work. But... in the HTML, things that set elements properties must be double quotes. So<img src='Basic Map3.png'/>
won't work. Has to be<img src="Basic Map3.png"/>
. But... We have that insideJS.eval("")
, so we have to escape any"
like so:JS.…