Thread: Reference Module image alignment
-
November 6th, 2020, 22:32 #11
Okay, thanks Zacchaeus - I figured that would be the case with my first question.
As for my second:
I'm I'm understanding that correctly, does this mean that I could - potentially - enclose the text in a brown border / frame that's to the left of the image? And if so, how would I do that?
Ultimate License Holder! Anyone can play!
Timzone: US Central (-6 GMT)
-
November 6th, 2020, 22:40 #12
As @Zacc said, basically 'no' to each question. If you have a paragraph break somewhere (as you do in your sample screenshot) only include that text in the 'image' block, then create a new 'text' block below it to continue the normal text.
Frames are purely a background texture for the 'text' portion of a block and will not include images. That's one (of many) features I'm hoping will eventually be included in the layout functionality.
Sure, just stick the frame markup in the same block as the image+text block and the script will know how to handle it. It also works for two-column text+text.
The main thing to watch for, especially when using the two-column layout, is readability. Each blocktype is inherently 'indented' inside the refpage borders by a few pixels (5 or 10? @Trenloe might know.) When you use a frame, the text inside that frame is further 'indented' (refer to my above comment about using this technique as a "trick") so make sure what you're trying to do actually looks good without having to enlarge the refpage. If it's questionable, then it's usually better to just keep the 'framed' text as its own separate, single-column block.Last edited by Talyn; November 6th, 2020 at 23:13.
-
November 7th, 2020, 21:58 #13
Unfortunately, I don't seem to be able to get this to work. I don't know if I'm doing it right, but here's the code I'm trying to work with:
Code:<id-00003> <align type="string">left,right</align> <blocktype type="string">image</blocktype> <image type="image"> <bitmap>images\sideimg1.jpg</bitmap> </image> <size type="string">200,350</size> <frame type="string">brown</frame> <text type="formattedtext"><p> Lorem ipsum dolor sit amet...</text> </id-00003>
Ultimate License Holder! Anyone can play!
Timzone: US Central (-6 GMT)
-
November 7th, 2020, 22:50 #14
I will correct my original statement (been awhile; I've pretty much trained myself to minimize two-column blocks whenever possible): you can only do something "fancy" (frame or image type) to one column per block. So image + frame would be two "fancy" things, which is a non-starter so the scripts will default to simply the blocktype (image in this case) and normal text.
-
November 8th, 2020, 01:03 #15
Note the example you started with is the same.
MoreCore - Generic Ruleset
--- Projects ---
Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con
-
November 8th, 2020, 09:09 #16
For a Pathfinder 2 product I have some blocks that have an image on the left and text (with a frame) on the right - see the third screenshot here: https://www.fantasygrounds.com/store...ZOSMWPZO9303FG
This was created with the following code:
Code:<blocks> <id-00001> <align type="string">right,left</align> <size type="string">170,350</size> <frame type="string">pfblue</frame> <image type="image"> <bitmap type="string">images\Abadar - Symbol.jpg</bitmap> </image> <caption type="string" /> <text type="formattedtext"><h>Master of the First Vault</h><p>LN god of cities, law, merchants, and wealth</p><p><b>Realm</b> Aktun (Axis)</p><p><b>Allies</b> Asmodeus, Brigh, Erastil, Iomedae, Irori, Shelyn, Shizuru, Torag</p><p><b>Enemies</b> Besmara, Lamashtu, Norgorber, Rovagug</p><p><b>Temples</b> banks, cathedrals, courthouses</p><p><b>Worshippers</b> architects, bankers, lawmakers</p><p><b>Sacred Animal</b> monkey</p><p><b>Sacred Colors</b> gold and silver</p><p><b>Divine Ability</b> Constitution or Intelligence</p><p><b>Alternate Domains</b> duty</p></text> <imagelink type="windowreference"> <class>imagewindow</class> <recordname>reference.imagedata.img_abadarsymboljpg</recordname> </imagelink> <blocktype type="string">imageleft</blocktype> </id-00001>
EDIT: I've done some further investigating now (diving into the CoreRPG ruleset code) and it will work if the frame value is provided via XML as frameleft - so try something like the following:
Code:<id-00003> <align type="string">left,right</align> <blocktype type="string">imageright</blocktype> <image type="image"> <bitmap>images\sideimg1.jpg</bitmap> </image> <size type="string">200,350</size> <frameleft type="string">brown</frameleft> <text type="formattedtext"><p> Lorem ipsum dolor sit amet...</text> </id-00003>
Last edited by Trenloe; November 8th, 2020 at 10:01.
FG Con 16 – Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
Register at www.fg-con.com for all the latest info.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
November 8th, 2020, 14:47 #17
These new tags, are they documented somewhere? They're certainly not on the Wiki page...
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks