• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Adding a line in the ingredients-list

LCsTarBuZz

New member
Hi!

As the title says, I'm trying to add a new line to the ingredients list in the windows.xml
I tried several times, but I always get a warning in the console that says the patch can't be applied.
I don't know, what I'm doing wrong.

Can someone please help me with this?
 

Code:
<!-- Trying to add sixth ingredients-line: -->
 
<remove xpath="/windows/window[@name='CraftingInfoPanel']/rect[@name='contentCraftingInfo']/rect[@name='ingredients']" />

<append xpath="/windows/window[@name='CraftingInfoPanel']/rect[@name='contentCraftingInfo']" >
			<rect depth="1" pos="153,-45" name="ingredients" width="447" height="264" visible="{showingredients}">
				<grid rows="7" width="447" height="231" cell_height="38" cell_width="447" controller="IngredientList" arrangement="vertical">
					<ingredient_header name="0"/>
					<ingredient_row name="1"/>
					<ingredient_row name="2"/>
					<ingredient_row name="3"/>
					<ingredient_row name="4"/>
					<ingredient_row name="5"/>
					<ingredient_row name="6"/>
				</grid>
			</rect>
</append>
 
 I just found the problem.
"CraftingInfoPanel" needs to be "craftingInfoPanel"

This was driving me mad since yesterday morning, but now it finally works!

 
Last edited by a moderator:
Back
Top