• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Shroomblaze

Major
7 Badges
Mar 8, 2015
600
482
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • PDXCon 2017 Awards Winner
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
Hey Everyone, I was testing out the color variations today on an item and finally decided to play around and figure out how to change an assets category to another tab. First you must subscribe to ModTools to do this which you can get here... http://steamcommunity.com/sharedfiles/filedetails/?id=409520576&searchtext=mod tools


Step 1.) Open the asset you wish to change and hit Ctrl + E to open up mod tools. Then find "Tool Controller" drop that down and select "Tool Controller" Again. Then find "PrefabInfo m_editPrefabInfo" and drop that down.

9NPzdcb.jpg


Step 2.) Find "ItemClass m_class" Drop that down and change the following 3 categories to what you would like the item to appear under. In This case I changed the items to Ship Categories.

ItemClass+Service m_service = PublicTransport
ItemClass+SubService m_subService = PublicTransportShip
System.String name = Ship Facility

JsbNFKl.jpg


Step 3.) Then scroll down and find the following categories and change them to their respective classes. "System.String m_UIEditorCategory" will say SameAsGame by default change this so that both say the same thing which is the category you want such as "PublicTransportShip".

System.String m_UICategory = PublicTransportShip
System.String m_UIEditorCategory = SameAsGame

Also you can change "System.Int32 mUiPriority = " to a number so that your assets will show up in a certain way in the tab. So for example if you wanted your item to all be right next to each other you could set a number for example like 5423 and then next time you create an Item you can just add another number to it to keep them together. If you want people in the future from using the same numbers as you and interrupting your connected flow of icons then set it to a number a large number that no one will really know. This ofcourse will make your items appear last in the category. So you can also you "-numbers" and go backwards to be first in the category. I haven't tested this all out, but I'm told this is what you can do.


eyPyHJu.jpg



To find out what the correct class names are for categories and such, you can drop down Sunny Collections on the left hand side. Then pick a category such as Public Transport and then open up the PrefabInfo and and select buildings to see what their categories are.

And here you have it!
zLYmymz.jpg


Hope this helps some people out! :)
 
  • 2
Reactions: