BadZombie
New member
Hi All,
I hope somebody more experienced with xml can help me out with this problem.
I have created a new workbench and I'm trying to remove certain elements which I don't need in order to tidy up the code.
For example, in Config/XUi/windows.xml
I have created all new windows for my new workbench, within which I have the following redundant code.
<rect depth="2" name="categorySelector" width="400" pos="0,0">
<grid name="categories" pos="23,-21" rows="1" cols="1" width="400" cell_width="50" cell_height="50" repeat_content="true" controller="CategoryList">
<category_icon />
</grid>
</rect>
<rect depth="3" name="searchControls" width="400" pos="1200,0">
<button depth="4" name="favorites" style="icon30px, press" pos="-500,-50" sprite="server_favorite" pivot="center" sound="[paging_click]" tooltip="Favorites" tooltip_key="lblFavorites" collider_scale="1.5" />
<panel pos="-500,0" width="400" disableautobackground="false">
<sprite depth="4" name="searchIcon" style="icon30px" pos="25,-22" sprite="ui_game_symbol_search" pivot="center"/>
<textfield depth="5" name="searchInput" pos="0,-7" width="140" height="30" virtual_keyboard_prompt="vkPromptSearchTerm" search_field="true" close_group_on_tab="true" />
</panel>
<panel pos="-500,0" width="400" height="43">
<pager name="pager" pos="4,-6" />
</panel>
</rect>
By simply removing it I get red errors.
So my workaround is to hide it using absolute positioning. BUT this isn't ideal.
Is there a way to completely remove it or does it still play a role in the functionality of the workbench?
Many Thanks!
I hope somebody more experienced with xml can help me out with this problem.
I have created a new workbench and I'm trying to remove certain elements which I don't need in order to tidy up the code.
For example, in Config/XUi/windows.xml
I have created all new windows for my new workbench, within which I have the following redundant code.
<rect depth="2" name="categorySelector" width="400" pos="0,0">
<grid name="categories" pos="23,-21" rows="1" cols="1" width="400" cell_width="50" cell_height="50" repeat_content="true" controller="CategoryList">
<category_icon />
</grid>
</rect>
<rect depth="3" name="searchControls" width="400" pos="1200,0">
<button depth="4" name="favorites" style="icon30px, press" pos="-500,-50" sprite="server_favorite" pivot="center" sound="[paging_click]" tooltip="Favorites" tooltip_key="lblFavorites" collider_scale="1.5" />
<panel pos="-500,0" width="400" disableautobackground="false">
<sprite depth="4" name="searchIcon" style="icon30px" pos="25,-22" sprite="ui_game_symbol_search" pivot="center"/>
<textfield depth="5" name="searchInput" pos="0,-7" width="140" height="30" virtual_keyboard_prompt="vkPromptSearchTerm" search_field="true" close_group_on_tab="true" />
</panel>
<panel pos="-500,0" width="400" height="43">
<pager name="pager" pos="4,-6" />
</panel>
</rect>
By simply removing it I get red errors.
So my workaround is to hide it using absolute positioning. BUT this isn't ideal.
Is there a way to completely remove it or does it still play a role in the functionality of the workbench?
Many Thanks!