-
November 7th, 2020, 01:58 #1
FGU ref-manual, inline images, "invisible".
Is there any reason this image block would appear "invisible" (taking up space/etc) and when you click the space it should be, it pops up as a image window as you'd expect.
Did the blocktype change for inline images in FGU?
Code:<id-00007> <align type="string">center</align> <blocktype type="string">image</blocktype> <caption type="string">Image: Horse at the Gate</caption> <image type="image"> <gridsnap>on</gridsnap> <layers /> </image> <imagelink type="windowreference"> <class>imagewindow</class> <recordname>image.id-00005@B2: The Keep on the Borderlands (L1-3)</recordname> </imagelink> <size type="string">350,500</size> </id-00007>
I've attached the full module to the post if that's necessary for review.---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
November 7th, 2020, 02:22 #2
If you make the refman window wider does this happen?
I seem to recall this happening in early versions of refman.
-
November 7th, 2020, 02:31 #3
I'm not seeing the same in the reference manual for RMC Character Law, created a new campaign to test it out, I did not need to resize the window.
-
November 7th, 2020, 03:15 #4
Easy:
Code:<image type="image"> <gridsnap>on</gridsnap> <layers /> </image>
Last edited by Talyn; November 7th, 2020 at 03:24.
-
November 7th, 2020, 03:40 #5---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
November 19th, 2020, 08:07 #6
- Join Date
- Jan 2017
- Posts
- 85
I'm having a similar issue. The imagelink works, but nothing in the reference manual page. Here's the relevant block of XML:
<id-00001>
<blocktype type="string">image</blocktype>
<align type="string">center</align>
<size type="string">657,224</size>
<image type="image">
<bitmap type="string">hidden_images\tied_scroll.jpg</bitmap>
</image>
<caption type="string" />
<imagelink type="windowreference">
<class>imagewindow</class>
<recordname>hiddenimage.id-00001</recordname>
</imagelink>
</id-00001>
-
November 19th, 2020, 13:31 #7
Try this instead:
Code:<id-00001> <blocktype type="string">image</blocktype> <align type="string">center</align> <size type="string">535,182</size> <image type="image"> <bitmap>hidden_images/tied_scroll.jpg</bitmap> </image> <caption type="string" /> <imagelink type="windowreference"> <class>imagewindow</class> <recordname>hiddenimage.id-00001</recordname> </imagelink> </id-00001>
The second change was eliminating the type="string" which is why your image is not displaying. I also switched the backslash to a slash in the path, as that is how the Wiki reads and that's how FG builds its markup.Last edited by Talyn; November 19th, 2020 at 14:09.
-
November 20th, 2020, 00:37 #8
- Join Date
- Jan 2017
- Posts
- 85
Thanks for the advice, but it didn't work. I tried both suggestions independently and together, and I scaled down the image itself in case scaling from the original size to the specified size was a contributing factor. The image is a simple grey scale image of a scroll tied with a ribbon from page 24 of Rolemaster Companion III. It's not super high resolution or 32-bit color or anything.
-
November 20th, 2020, 01:21 #9
The markup I gave is correct so that leaves me thinking your path is incorrect. I see you keep using hidden_images is that in fact the folder name? The imagelink below uses a recordname of hiddenimage so you've got two things going on: there needs to be a \hidden_images\ folder and all the images you're wanting to be hidden from the Images window on the sidebar should be stored there, and the image data for them needs to be in <hiddenimage> in your XML.
If the image is not displaying on your refpage, it should still be drawing the box where the image should be and your imagelink is clickable. If that doesn't bring up the full-size image then both of those recordnames are incorrect.
-
November 20th, 2020, 06:15 #10
- Join Date
- Jan 2017
- Posts
- 85
The "hidden_images" does exist and it does contain the image file. Is the text in the <bitmap> tag the path and file name, or is it supposed to be a reference to the "recordname"? I thought it was the path and file name.
The <hiddenimage> tag also exists, and the use of the "recordname" in the link to that resource does work.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks