public ChangeTextSpriteColor ( byte sprData, byte newCol ) : void | ||
sprData | byte | |
newCol | byte | |
return | void |
public void ChangeTextSpriteColor(byte[] sprData, byte newCol)
{
var header = ServiceLocator.Platform.ToStructure<DataFileHeader>(sprData, 0);
var offset = ServiceLocator.Platform.SizeOf<DataFileHeader>();
for (ushort cnt = 0; cnt < header.s_sp_size; cnt++)
if (sprData[offset + cnt] >= 241)
sprData[offset + cnt] = newCol;
}