PDA

View Full Version : Adding a Blank Horizontal Space in a Window



kronovan
April 21st, 2025, 21:58
I've been recently making edits to record_vehichle.XML in CoreRPG, in order to make it properly support the Fate Core edition of Interface Zero. I've mostly just changed the exiting fields and added 2 more. The biggest change was I added a stress track with variable number of check boxes, by copying the scripted technique used for the Fate Core Character sheet. I'm currently in the process of writing it into an extension.

This is the original window:

64107

kronovan
April 21st, 2025, 22:02
...This is my changed window:

64108

The only additional change I want to make to the new window, is adding a "Systems" lable under the Stress track, but for the love of it I can't figure out how to do that - embarrasing.

If I add a label_column block
just before the <ft_columnh name=notes /> in the record_vehicle.xml file,
the "Systems" text is positioned in the notes window and is overwritten by the notes text in the 1st line.

I know this is simple, but I suck at XML. :( So I'm hoping someone here can give me an example of XML that would do it.

And speaking of XML...does FGU use the global standard for it? I've noted here & there on the Internet that some apps have a custom/proprietary implimentation of XML, so I'm not sure if FGU does too? I ask, because I'd be more than happy to buy a good book on XML, but I'm not sure a common XML guide would be applicable.

Any help with this would be much appreciated.

superteddy57
April 21st, 2025, 22:03
the template sub_content_column will add a new subwindow space. Other layout controls can be seen in the layout folder in CoreRPG

kronovan
April 26th, 2025, 21:56
the template sub_content_column will add a new subwindow space. Other layout controls can be seen in the layout folder in CoreRPG

Thanks for the suggestion Superteddy.

While I can find the sub_content_column template in the template_layout_content_column.xml file, I can't figure out how to use it. I've made many attempts to unravel the mysteries of it, but have sadly failed in every attempt. Although I did learn how to correctly set an anchor_cotent_top in the record_vehicle.xml file.

Would it be possible to give an example of how your would use it to put a text label alone on the 10th line within a sheetdata block?

Moon Wizard
April 26th, 2025, 22:00
Try looking at a couple examples in the build-in rulesets:

CoreRPG - <windowclass name="location_main">
or
5E - <windowclass name="reference_race_main_2024">

Regards,
JPG

kronovan
April 26th, 2025, 22:08
Thanks Moon Wizard. Will do.

kronovan
April 26th, 2025, 23:55
Try looking at a couple examples in the build-in rulesets:

CoreRPG - <windowclass name="location_main">
or
5E - <windowclass name="reference_race_main_2024">...

There wasn't code for sub_content_column in the <windowclass name="location_main"> in CoreRPG's record_location.xml, but there was in the <windowclass name="reference_race_main"> block in 5e's record_race.xml file. The technique in that 5e file didn't work for me, but I got a blank space on the CoreRPGs Vehicle windows [Main] tab with this code...

<sub_content_column name="sub_content" />

<label_column>

<anchored to= "sub_content" >

<top relation="relative" />
</anchored>
</label_column>

I don't know if I did that in the most optimal way, but it works.

Thanks Moon Wizard for pointing me in the rigth direction.

Moon Wizard
April 27th, 2025, 00:21
In the case you are showing I would actually use:


<header_content_framed_headersimple name="systems_header">
<static textres="header_systems" />
</header_content_framed_headersimple>


If you still just want a random area to put anything you want in;
then use area_content_top with <anchored height="20" /> (or similar size) and anchor any controls to that.

Regards,
JPG