mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Fixed prop player-colouring. Allowed per-object colours. (Coming soon: data to demonstrate it.)
This was SVN commit r2113.
This commit is contained in:
@@ -155,12 +155,14 @@ bool CObjectBase::Load(const char* filename)
|
||||
EL(prop);
|
||||
EL(mesh);
|
||||
EL(texture);
|
||||
EL(color);
|
||||
AT(file);
|
||||
AT(name);
|
||||
AT(speed);
|
||||
AT(attachpoint);
|
||||
AT(actor);
|
||||
AT(frequency);
|
||||
AT(rgb);
|
||||
#undef AT
|
||||
#undef EL
|
||||
|
||||
@@ -198,6 +200,9 @@ bool CObjectBase::Load(const char* filename)
|
||||
else if (option_name == el_texture)
|
||||
m_Variants.back().back().m_TextureFilename = "art/textures/skins/" + CStr(option.getText());
|
||||
|
||||
else if (option_name == el_color)
|
||||
m_Variants.back().back().m_Color = CStr(option.getAttributes().getNamedItem(at_rgb));
|
||||
|
||||
else if (option_name == el_animations)
|
||||
{
|
||||
XERO_ITER_EL(option, anim_element)
|
||||
|
||||
Reference in New Issue
Block a user