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

Can I have some Help on the XUI windows please

it's in

XUi/windows.xml

search key:

controller="RecipeList"

Code:
<grid name="recipes" [color=#00ff00]rows="12"[/color] cols="1" pos="3,-98" width="390" height="552" cell_width="390" cell_height="46" controller="RecipeList" repeat_content="true" arrangement="vertical" >
  <recipe_entry name="0"/>
</grid>
 
You know, I searched & Searched in the Windows.xml figuring it was there but didnt find anything at all haha, Thanks for this as its saved me pulling out the 3 remaining hairs I have lol....

 
Ok so editing that line isnt as easy as I thought it would be ....

<append xpath="/windows">

<window name="windowCraftingList" width="397" height="688" controller="CraftingListInfo" panel="Left" cursor_area="true" >

<grid name="recipes" rows="11" cols="1" pos="3,-98" width="390" height="552" cell_width="390" cell_height="46" controller="RecipeList" repeat_content="true" arrangement="vertical" >

<recipe_entry name="0"/>

</grid>

</window>

I figured that would work but it doesnt so ive missed something I dont understand... ?

 
I can't tell you how to do it through Xpath. But when editing directly - it worked absolutely.

 
Yeah i have it working if i change the original xml :) But need it in Xpath to be part of the crafting que modlet... Ive tried lots of ways & not got it working yet but then im not exactly brill with Xpath...

<configs>

<append xpath="/windows">

<window name="windowCraftingList" width="397" height="688" controller="CraftingListInfo" panel="Left" cursor_area="true" >

<panel name="header" height="43" depth="1" backgroundspritename="ui_game_panel_header">

<sprite pos="4,-5" depth="2" name="windowIcon" style="icon32px" sprite="Craft_Icon_Basics"/>

<label style="header.name" text="basics" text_key="xuiBasics" upper_case="true" />

</panel>

<panel name="content" width="100%" height="650" depth="1" pos="0,-43" on_scroll="true" disableautobackground="true">

<rect depth="2" name="categorySelector" width="390" height="44" pos="3,-6">

<sprite name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="396" height="49" color="[black]" type="sliced" fillcenter="false" />

<sprite color="[mediumGrey]" type="sliced" />

<grid name="categories" pos="2,-7" rows="1" cols="9" width="390" height="43" cell_width="43" cell_height="43" repeat_content="true" controller="CategoryList">

<category_icon />

</grid>

</rect>

<rect depth="3" name="searchControls" width="390" height="44" pos="3,-52">

<sprite name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="396" height="49" color="[black]" type="sliced" fillcenter="false" />

<sprite color="[darkGrey]" type="sliced" />

<button depth="4" name="favorites" style="icon30px, press" pos="18,-22" sprite="server_favorite" pivot="center" sound="[paging_click]" tooltip="Favorites" tooltip_key="lblFavorites" collider_scale="1.5" />

<panel pos="104,0" width="200" disableautobackground="true">

<sprite depth="4" name="searchIcon" style="icon30px" pos="0,-22" sprite="ui_game_symbol_search" pivot="center"/>

<recipe_search depth="5" name="searchInput"/>

</panel>

<panel pos="286,0" width="104" height="43" disableautobackground="true">

<button depth="4" name="pageDown" style="icon30px, press" pos="20,-22" sprite="ui_game_symbol_arrow_left" pivot="center" sound="[paging_click]" />

<rect depth="4" pos="37,-7" >

<sprite name="background" style="icon30px" color="[black]" type="sliced" />

<label depth="5" name="pageNumber" pos="0, -3" width="30" height="28" text="1" font_size="26" justify="center"/>

</rect>

<button depth="4" name="pageUp" style="icon30px, press" pos="84,-22" sprite="ui_game_symbol_arrow_right" pivot="center" sound="[paging_click]" />

</panel>

</rect>

<grid name="recipes" rows="11" cols="1" pos="3,-98" width="390" height="552" cell_width="390" cell_height="46" controller="RecipeList" repeat_content="true" arrangement="vertical" >

<recipe_entry name="0"/>

</grid>

</panel>

</window>

</append>

</configs>

That doesnt work either which I thought it would which Is why I know i dont know enough...

 
Yeah i have it working if i change the original xml :) But need it in Xpath to be part of the crafting que modlet... Ive tried lots of ways & not got it working yet but then im not exactly brill with Xpath...
Would you be able to send me your edited original xml? Or tell me exactly what was changed. I may be able to help you figure out the required XML you'd need via xpath. Is the only thing you're trying to do changing the value of "rows" to 11 for the grid named "recipes"?

 
Sent you the files a few hours ago not sure if youve been notified... I recon im close to it working haha But if im not let me down gently lol

 
This should do the trick:

Code:
<set xpath="/windows/window[@name='windowCraftingList']/panel/grid[@name='recipes']/@rows">11</set>
 
Back
Top