PDA

View Full Version : Reference Manual and Image Links



Sulimo
October 17th, 2020, 19:40
I've looked all over for an explanation of Reference Manuals and Image Links (where you can click the image in the reference manual and have it pop out the image), but I cannot seem to find anything on how it works.

This is for the RMC ruleset, but I do not think the issue I am experiencing is specific to the ruleset itself.


A working example of XML and a screen shot showing it working (this is from the Character Law reference manual):


<id-00002>
<align type="string">center</align>
<size type="string">400,395</size>
<image type="image">
<bitmap type="string">hidden_images\Intro_image_h780.jpg</bitmap>
</image>
<caption type="string" />
<imagelink type="windowreference">
<class>imagewindow</class>
<recordname>hiddenimage.id-00006</recordname>
</imagelink>
<text type="formattedtext"/>
<blocktype type="string">image</blocktype>
</id-00002>


Then there is a section on for the image itself (in the hidden_images section):


<id-00006>
<image type="image">
<bitmap>hidden_images/Intro_image_h780.jpg</bitmap>
</image>
<name type="string">Introduction</name>
</id-00006>


https://i.imgur.com/BJwSxaD.png



Here is my attempt to try this in my module, it does not seem to work though:


<id-00001>
<align type="string">center</align>
<size type="string">525,700</size>
<image type="image">
<bitmap type="string">hidden_images\Creatures_of_Middle_Earth_Image.jpg</bitmap>
</image>
<caption type="string"/>
<imagelink type="windowreference">
<class>imagewindow</class>
<recordname>hiddenimage.id-00003</recordname>
</imagelink>
<text type="formattedtext"/>
<blocktype type="string">image</blocktype>
</id-00001>




<id-00003>
<image type="image">
<bitmap>hidden_images/Creatures_of_Middle_Earth_Image.jpg</bitmap>
</image>
<name type="string">Front Page</name>
</id-00003>


Here it is not working.
https://i.imgur.com/eRvfdAJ.png


The Image works fine in the Reference Manual itself (you can see it just behind the pop out window), the image in the pop out is blank though. It seems like it cannot find the image for some reason (showing <<New Drawing>>).

Anyone have any ideas as to what I am doing wrong?

Mgrancey
October 24th, 2020, 21:58
In the bitmap tag in last code example, you have the slash swapped. between hidden_images and creatures

Sulimo
October 24th, 2020, 22:32
I tried changing the slash, but it did not make any difference.


I did finally figure it out.

Basically I had put the <hiddenimage> node under <reference> instead of under <root>

Once I moved the <hiddenimage> section out of <reference> it worked.