Goblin_aka_Dark Posted December 2, 2023 Share Posted December 2, 2023 (edited) I started working on the interface and I have a question: how and where should I change the size of the icons? A fuel window, for example: I managed to reduce the size of the ItemIconAtlasGreyscale wood icons, but if you put a item wood in the cell, the size remains the original. In order for it to look nice, the size of the item wood in the cell needs to be reduced so that it fits in the frame. Similarly, i will need to change the size of the icons in the queue, output, inventory and everywhere else, but first I would like to understand exactly how to do this. I also want to change the color of the numbers in the amount of fuel and the color of the tool icons. Edited December 2, 2023 by Goblin_aka_Dark Addition (see edit history) Link to comment Share on other sites More sharing options...
Goblin_aka_Dark Posted December 13, 2023 Author Share Posted December 13, 2023 Taking into account the fact that no one knows for so long, I came up with a solution: I will increase the slots themselves so that the frames look “not point-blank to the border.” This will make the interface larger, but the option makes sense. All that remains is to select the scale and redraw the frames for each specific window. 😅 Link to comment Share on other sites More sharing options...
Plexius Posted December 15, 2023 Share Posted December 15, 2023 (edited) they are found in the XUI xml files heres an example i did with my mod idk how to get it exact but it took me changing the numbers around to get what i wanted. <set xpath="/windows/window[@name='windowForgeInput']/@materials_accepted">iron,brass,lead,glass,stone,clay,copper,zinc,tin,bronze,tungsten,mithril,adamantium,orichalcum,necronium,aluminum</set> <setattribute xpath="/windows/window[@name='windowForgeInput']/panel[@style='header.panel']" name="pos">0,-185</setattribute> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content']/@pos">0,-231</set> <set xpath="/windows/window[@name='windowForgeInput']/sprite[@name='backgroundMain']/@height">228</set> <set xpath="/windows/window[@name='windowForgeInput']/sprite[@name='backgroundMain']/@pos">0,-231</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content2']/@height">223</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content2']/@pos">78,-233</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content']/grid[@depth='7']/@rows">3</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content2']/grid/@cols">2</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content2']/@width">294</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content2']/grid/@rows">8</set> <set xpath="/windows/window[@name='windowForgeInput']/rect[@name='content2']/grid/@cell_height">28</set> <set xpath="/windows/window[@name='windowOutput']/rect[@name='content']/grid/@rows">4</set> <set xpath="/windows/window[contains(@name,'windowToolsCampfire')]/rect/grid/@rows">3</set> <append xpath="/windows/window[contains(@name,'windowToolsCampfire')]/rect/grid/@required_tools">,toolAirFryer,toolPressureCooker,toolPropaneTank,toolElectricIgniter,toolFoodProcessor</append> <set xpath="/windows/window[contains(@name,'windowToolsForge')]/rect/grid/@rows">3</set> <append xpath="/windows/window[contains(@name,'windowToolsForge')]/rect/grid/@required_tools">,toolTungstenLinedBellows,toolAuto-Hammer,toolOrichalcumAnvilCoating,toolTungstenAnvil,toolHighDensityToolkit,toolForgeHighCarbonTooling</append> <setattribute xpath="/windows/window[@name='windowFuel']/panel[@style='header.panel'][last()]" name="pos">0,-150</setattribute> <set xpath="/windows/window[@name='windowFuel']/rect[@name='content']/@pos">0,-196</set> <set xpath="/windows/window[@name='windowFuel']/@height">120</set> <set xpath="/windows/window[@name='windowFuel']/panel[@name='buttonContent']/@pos">0,-271</set> <setattribute xpath="/windows/window[@name='windowOutput']/panel[@style='header.panel']" name="pos">0,-250</setattribute> <set xpath="/windows/window[@name='windowOutput']/rect/@pos">0,-296</set> this is just an example of the forge window i actually had to look at other mods to figure out how to change the interface but im not very good at it yet Edited December 15, 2023 by Plexius (see edit history) Link to comment Share on other sites More sharing options...
Goblin_aka_Dark Posted December 17, 2023 Author Share Posted December 17, 2023 (edited) Thank you, but there are no problems with the windows. I just went through everything already. The problem is in the contents of these windows and cells, namely the size of the item that is placed there and the quantity numbers - they are very large for my interface. Something like this Edited December 17, 2023 by Goblin_aka_Dark Add (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now