Exemplo n.º 1
0
Tileset::Tileset(const std::vector<Image16Bpp>& images, const std::string& name, int _bpp, bool _affine, const std::shared_ptr<Palette>& global_palette) :
    Exportable(name), bpp(_bpp), affine(_affine), palette(global_palette), paletteBanks(name), export_shared_data(global_palette == nullptr)
{
    switch(bpp)
    {
        case 4:
            if (affine)
            {
                FatalLog("Affine can not be used with a 4 bpp tileset");
            }
            else if (palette)
            {
                paletteBanks.Copy(*global_palette);
            }
            else
            {
                for (unsigned int i = 0; i < paletteBanks.Size(); i++)
                    paletteBanks[i].Add(Color16(params.transparent_color));
            }
            Init4bpp(images);
            break;
        case 8:
            Init8bpp(images);
            break;
        case 16:
            Init16bpp(images);
            break;
    }
}
Exemplo n.º 2
0
 ImageTile(const Color16& color = Color16()) : id(0), pixels(TILE_SIZE, color) {}
Exemplo n.º 3
0
//----- (00414174) --------------------------------------------------------
void uGameUIFontShadow_initialize()
{
    uGameUIFontShadow = Color16(0xE6u, 214, 193);
}
Exemplo n.º 4
0
//----- (00414162) --------------------------------------------------------
void uGameUIFontMain_initialize()
{
    uGameUIFontMain = Color16(0xAu, 0, 0);
}