Instale o Steam
iniciar sessão
|
idioma
简体中文 (Chinês simplificado)
繁體中文 (Chinês tradicional)
日本語 (Japonês)
한국어 (Coreano)
ไทย (Tailandês)
Български (Búlgaro)
Čeština (Tcheco)
Dansk (Dinamarquês)
Deutsch (Alemão)
English (Inglês)
Español-España (Espanhol — Espanha)
Español-Latinoamérica (Espanhol — América Latina)
Ελληνικά (Grego)
Français (Francês)
Italiano (Italiano)
Bahasa Indonesia (Indonésio)
Magyar (Húngaro)
Nederlands (Holandês)
Norsk (Norueguês)
Polski (Polonês)
Português (Portugal)
Română (Romeno)
Русский (Russo)
Suomi (Finlandês)
Svenska (Sueco)
Türkçe (Turco)
Tiếng Việt (Vietnamita)
Українська (Ucraniano)
Relatar um problema com a tradução
yes, you can use my icons.
Take a look at Inventory Viewer. They also used my icons for LCDs.
If there is way to expose the icon sprites, let me know how and I will add it in so you and other modders can easilly access it.
Great, thank you :)
I didn't know this one, thanks for sharing!
For sure, I'll let you know.
You can add a <filename.sbc> file along your scripts (Data\Scripts\<Mod>\.) to declare LCD Textures as Sprites.
I've made this file[pastebin.com] so far and put it manually in your mod where its installed on my machine.
It does declare sprites and I can reuse them from my homemade mod.
It implements Ores, Ingots, Components, Physical Guns (aka Weapons / Tools) and Ammo. I'm not sure about the binding of all AmmoMagazine (between in game name and your icons).
Syntax is simple:
I named SubtitleId with in game SubtitleId from existing items such as: CFI/<Type>/<Name>
CFI to tell it comes from your mod.
Type can be Ore, Ingot, Component, PhysicalGunObject, AmmoMagazine, etc. like defined in the game engine.
Name can be Cobalt, Ice, SolarCell, etc. like defined in the game engine.
Using this format, it is easy to bind items between code and sprite id.
As I have not implemented binding for all your icons, feel free to double check and add binding for the rest ;)
I will make some script so that this file can be auto generated.
You could even split into multiple files per type to still allow easy reading / custom edition such as Ores.sbc, Ingots.sbc...
Thanks, I'm looking forward to the next update.
Check them out, try if they work.
Also if you could provide short code snippet of usage, I'll add a section about this in the mod descriptions, thanks.
I've tested with my mod.
I found two bugs:
Old Components
There is two files: LCDTextures_Components.sbc and LCDTextures_OldComponents.sbc.
However in both files, SubtypeId is declared with the same prefix `ColorfulIcons_Component/`.
When game load assets, it seems to only keep the latest loaded SubtypeId, in this case path to old component textures.
I've tried on my machine, removing LCDTextures_OldComponents.sbc does load colorful icons.
Fix suggestion: use `ColorfulIcons_OldComponent/` prefix as a SubtypeId in this file.
Scrap
You define Scrap in Components variable in your Config.cs file.
But with these definitions `MyObjectBuilder_Ore/Scrap` and `MyObjectBuilder_Iron/Scrap`.
So far I've been using `MyObjectBuilder_Component/ScrapMetal` as a definition. `ScrapMetal` is the name I got from Game engine.
I'm not sure about this one, if it is an old "definition" from the game kept as a backward-compatibility...
I didn't try for Cubes, Ammo, PhysicalGuns.
Code snippet
Looking at the scrap situation:
There is Ore/Scrap and Ingot/Scrap both in PhysicalItems.sbc.
Ingot/Scrap is commented with: "Old definition for backwards compatibility"
But I can't find reference to Component/ScrapMetal in the game's definitions, so that's weird.
Ok fine, so Ore/Scrap seems to be the one to use.
I'll come back to you if I ever find an issue with other sprites.
PS: I fixed previous code snippet.