mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: center aligned icons
This commit is contained in:
1 parent
4ea8615fb5
commit
f13b0f2255
3 files changed
+6
-7
No files matched your search
@@ -307,7 +307,7 @@ const missingStrings: Record<string, string> = {
|
||||
};
|
||||
|
||||
export async function definitions(production: boolean) {
|
||||
console.log('Building tank definitions...');
|
||||
console.log('Building definitions...');
|
||||
|
||||
const tankDefinitions: TankDefinitions = {};
|
||||
const modelDefinitions: ModelDefinitions = {};
|
||||
|
||||
@@ -54,14 +54,15 @@ export async function equipmentIcons(production: boolean) {
|
||||
|
||||
if (configPath.startsWith('Gfx/Lobby')) {
|
||||
const configPathWebp = configPath.replace('.txt', '');
|
||||
const buffer = await readDVPLFile(
|
||||
`${DATA}/${configPathWebp}.packed.webp.dvpl`,
|
||||
const image = sharp(
|
||||
await readDVPLFile(`${DATA}/${configPathWebp}.packed.webp.dvpl`),
|
||||
);
|
||||
const content = (await image.trim().toBuffer()).toString('base64');
|
||||
|
||||
changes.push({
|
||||
path: `icons/equipment/${optionalDevice.id}.webp`,
|
||||
encoding: 'base64',
|
||||
content: buffer.toString('base64'),
|
||||
content,
|
||||
});
|
||||
} else {
|
||||
const config = await readStringDVPL(`${DATA}/${configPath}.dvpl`);
|
||||
|
||||
Reference in new issue
Block a user