Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Getting display names of IMyInventoryItem cleanly?

$
0
0
Is there an easy way of getting item names of IMyInventoryItem? Preferably using the item's DisplayName_Item found in the MyTexts .xml file in SpaceEngineers\Content\Data\Localization?

IMyInventoryItem item.ToString() on the item gravel produces "Stone Ingot" at best after some string rearranging.

Currently, my only method is to create switches and find exceptions like so. I've just started with the Ores and Ingots cases and it already seems like this will be an ungraceful method. The...

Getting display names of IMyInventoryItem cleanly?

Viewing all articles
Browse latest Browse all 903

Trending Articles