PDA

View Full Version : Merge or mergerules for deleting controls.



Ardem
February 3rd, 2017, 01:04
Quick question, did a search but nothing obvious jumped out, is there a merge option and delete certain controls/fields. Not hide as hide creates the xml field.

Example.

Charsheet_notes.XML

I want to remove


<string_labeled name="race">
<anchored to="detailframe" position="insidetopleft" offset="15,10" width="150" height="20" />
<labelres>char_label_race</labelres>
</string_labeled>

As I have it on the front page or I do not need it in my ruleset. Also I do not want to update this xml every time there is an update to the Core, so I like to know if there is something like merge="delete" then type the <string_labled name="race/> and delete it from the code on execute.

vodokar
February 3rd, 2017, 01:10
duplicate

vodokar
February 3rd, 2017, 01:11
Generally speaking, if the item has a name, then you can use "merge = delete" and it will cause the item to not be used. In your example, it should work out fine.

i.e. <string_labeled name="race" merge="delete">

Note that not every item in a ruleset necessarily does have a name, in which case, this technique doesn't work.

Ardem
February 3rd, 2017, 01:14
I am looking thought the ref doc for merge and cannot find it I thought it would be under Windows Class, I have found mergerules under templates. Is there a link to where merge details are located.

vodokar
February 3rd, 2017, 01:25
https://www.fantasygrounds.com/forums/showthread.php?28538-Merge-rules&highlight=merge+rules

https://www.fantasygrounds.com/forums/showthread.php?24188-mege-quot-delete-quot-Question&highlight=merge+rules

https://www.fantasygrounds.com/forums/showthread.php?20635-Merge-Rules&highlight=merge+rules

Ardem
February 3rd, 2017, 01:29
thanks vodo, I think moon or one the Devs really need to update the Dev ref, merge has been in a while it be good to see that useful section updated.

vodokar
February 3rd, 2017, 01:48
They likely do. As you can see, you weren't the first one to ask the question.