Update all tiles to use their given icon names and register with new name patterns with misc changes
This commit is contained in:
parent
6635d352dc
commit
4eaea8dc3f
51 changed files with 278 additions and 275 deletions
|
|
@ -34,7 +34,9 @@ void StainedGlassBlock::registerIcons(IconRegister *iconRegister)
|
|||
{
|
||||
for (int i = 0; i < ICONS_LENGTH; i++)
|
||||
{
|
||||
ICONS[i] = iconRegister->registerIcon(getIconName() + L"_" + DyePowderItem::COLOR_TEXTURES[getItemAuxValueForBlockData(i)]);
|
||||
int val = getItemAuxValueForBlockData(i);
|
||||
auto colorName = (val != DyePowderItem::SILVER ? DyePowderItem::COLOR_TEXTURES[val] : L"light_gray");
|
||||
ICONS[i] = iconRegister->registerIcon(colorName + L"_" + getIconName());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue