Atrophied Posted May 20, 2018 Share Posted May 20, 2018 I've been working on some craft station overhauls and have learned how to edit the forge but I can't find the workbench, chem station and mixer windows... Is there a way I can add/edit their craft windows ? End goal is to add a tool area to the workbench with hammer, bench vice and chisel/files, items I will create separately. Link to comment Share on other sites More sharing options...
KhaineGB Posted May 20, 2018 Share Posted May 20, 2018 The tool area is actually completely seperate from the rest of the workbench window. I wanted to add the wrench and hammer to the workbench as tools, so I did this. <window name="windowToolsWorkbench" width="228" height="121" panel="Right"> <panel style="header.panel"> <sprite style="header.icon" sprite="ui_game_symbol_cookware"/> <label style="header.name" text="TOOLS" text_key="xuiTools" /> </panel> <rect name="content" depth="0" pos="0,-46" height="75" disablefallthrough="true" on_press="true"> <grid name="inventory" rows="1" cols="2" pos="3,-3" cell_width="75" cell_height="75" controller="WorkstationToolGrid" repeat_content="true" allow_sort_order="false" required_tools="wrench,clawHammer" required_tools_only="true"> <required_item_stack name="0"/> </grid> </rect> </window> Then I took the name windowToolsWorkbench and added it to xui.xml for the workbench, so it looks like this. <window_group name="workstation_workbench" controller="XUiC_WorkstationWindowGroup"> <window name="windowToolsWorkbench" /> <window name="windowCraftingList"/> <window name="craftingInfoPanel"/> <window name="windowCraftingQueue"/> <window name="windowOutput" /> <window name="windowNonPagingHeader" /> <window name="windowCombine" /> </window_group> That gave me the tools slot at the top right of the workbench window. Link to comment Share on other sites More sharing options...
Atrophied Posted May 20, 2018 Author Share Posted May 20, 2018 OOOOhhh... windows.xml defines the windows that XUI.xml calls... got it, yet another file to add to my edit list Thanks a bundle !! Link to comment Share on other sites More sharing options...
KhaineGB Posted May 20, 2018 Share Posted May 20, 2018 No problem! I struggled with that as well so I thought I'd save you the headache. Link to comment Share on other sites More sharing options...
Buggi Posted May 21, 2018 Share Posted May 21, 2018 XUI uses windows defined in windows.xml, which uses controls defined in controls.xml which use styles defined in styles.xml. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.