Jump to content

Part Category Button Textures


Recommended Posts

Is there a way to access the icons for the part categories while Flight (as a Texture), or the PartCategorizer the only way?  I can access the Simple Icons, the ones that can be used for creating subcategories, but I can't figure out how to get to the main "Filter by Function" icons.

I'm working on a new UI for ActionGroupManager and I would really love it if I could use the same icons for consistency.

8cXjzSG.png

Edited by Alshain
Link to comment
Share on other sites

@Crzyrndm Thanks, I took your code and added a debug line to it.

 

            GameDatabase.TextureInfo texInfo = null;
            //Texture2D selectedTex = null;
            var texDict = new Dictionary<string, GameDatabase.TextureInfo>();
            for (int i = GameDatabase.Instance.databaseTexture.Count - 1; i >= 0; --i)
            {
                texInfo = GameDatabase.Instance.databaseTexture[i];
                if (texInfo.texture != null && texInfo.texture.width == 32 && texInfo.texture.height == 32)
                {
                    Debug.Log("Found Texture:" + texInfo.name);
                }
            }

The result was that those textures never showed up in Flight.  Unfortunately I have to conclude they don't exist outside of the Editor.

Spoiler

Found Texture:Squad/Spaces/crewCabinInternals/model000
Found Texture:Squad/Parts/Utility/ladderRadial/model000
Found Texture:Squad/Parts/Command/mk2LanderCan/ladder
Found Texture:Squad/Parts/Command/mk1pod/window_illum
Found Texture:Squad/Parts/Command/mk1pod/window
Found Texture:Squad/Parts/Command/mk1pod/ladderrung
Found Texture:Squad/Parts/Command/Mk1-2Pod/ladder
Found Texture:Squad/PartList/SimpleIcons/RDicon_telescope
Found Texture:Squad/PartList/SimpleIcons/RDicon_propulsionSystems
Found Texture:Squad/PartList/SimpleIcons/RDicon_propulsion-precision
Found Texture:Squad/PartList/SimpleIcons/RDicon_miniaturization
Found Texture:Squad/PartList/SimpleIcons/RDicon_largeVolumeContainment
Found Texture:Squad/PartList/SimpleIcons/RDicon_fuelSystems-highPerformance
Found Texture:Squad/PartList/SimpleIcons/RDicon_fuelSystems-advanced
Found Texture:Squad/PartList/SimpleIcons/RDicon_commandmodules
Found Texture:Squad/PartList/SimpleIcons/RDicon_aerospaceTech2
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_veryheavyrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_unmannedtech
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_survivability
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_supersonicflight
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_start
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_stability
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_specializedelectrics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_specializedcontrol
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_specializedconstruction
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_sciencetech
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_robotics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_precisionengineering
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_nuclearpropulsion
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_nanolathing
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_metamaterials
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_largeprobes
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_largeelectrics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_largecontrol
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_landing
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_ionpropulsion
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_hypersonicflight
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_highaltitudepropulsion
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_highaltitudeflight
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_heavyrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_heavyaerodynamics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_heavierrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_generic
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_generalrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_generalconstruction
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_fuelsystems
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_flightcontrol
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_fieldscience
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_experimentalscience
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_experimentalrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_experimentalmotors
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_experimentalelectrics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_experimentalaerodynamics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_evatech
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_electronics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_electrics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_composites
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_basicrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_basicprobes
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_automation
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_aerospacetech
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_aerodynamicsystems
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advunmanned
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advsciencetech
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advrocketry
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advmetalworks
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advlanding
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advflightcontrol
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advexploration
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advelectrics
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advconstruction
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advancedmotors
Found Texture:Squad/PartList/SimpleIcons/R&D_node_icon_advaerodynamics
Found Texture:Squad/PartList/SimpleIcons/number9
Found Texture:Squad/PartList/SimpleIcons/number8
Found Texture:Squad/PartList/SimpleIcons/number7
Found Texture:Squad/PartList/SimpleIcons/number6
Found Texture:Squad/PartList/SimpleIcons/number5
Found Texture:Squad/PartList/SimpleIcons/number4
Found Texture:Squad/PartList/SimpleIcons/number3
Found Texture:Squad/PartList/SimpleIcons/number2
Found Texture:Squad/PartList/SimpleIcons/number1
Found Texture:Squad/PartList/SimpleIcons/fuels_xenongas
Found Texture:Squad/PartList/SimpleIcons/fuels_solidfuel
Found Texture:Squad/PartList/SimpleIcons/fuels_oxidizer
Found Texture:Squad/PartList/SimpleIcons/fuels_ore
Found Texture:Squad/PartList/SimpleIcons/fuels_monopropellant
Found Texture:Squad/PartList/SimpleIcons/cs_surface
Found Texture:Squad/PartList/SimpleIcons/cs_size3
Found Texture:Squad/PartList/SimpleIcons/cs_size2
Found Texture:Squad/PartList/SimpleIcons/cs_size1
Found Texture:Squad/PartList/SimpleIcons/cs_size0
Found Texture:Squad/PartList/SimpleIcons/cs_mk3
Found Texture:Squad/PartList/SimpleIcons/cs_mk2
Found Texture:Squad/PartList/SimpleIcons/cs_main
Found Texture:Squad/FX/FlameRed
Found Texture:Squad/Contracts/Icons/vessel
Found Texture:Squad/Contracts/Icons/thermometer
Found Texture:Squad/Contracts/Icons/seismic
Found Texture:Squad/Contracts/Icons/sample
Found Texture:Squad/Contracts/Icons/report
Found Texture:Squad/Contracts/Icons/pressure
Found Texture:Squad/Contracts/Icons/gravity
Found Texture:Squad/Contracts/Icons/eva
Found Texture:Squad/Contracts/Icons/dish
Found Texture:Squad/Contracts/Icons/default
Found Texture:Squad/Contracts/Icons/custom
Found Texture:Squad/Contracts/Icons/balloon
 

So, I think I'm going to have to go back to text buttons.  I could use alternative textures but I feel like that would just be confusing to the user. :(

EDIT: Well since I had it already coded, I added boolean flag and a few conditionals.  Now the users can choose what they find confusing.

Edited by Alshain
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...