搜索
开启左侧

翻译成中文,保留源代码

[复制链接]
Toyota 发表于 2024-9-4 16:43:24 | 显示全部楼层 |阅读模式

IMAGES = {
    {
        dict = 'rcore_graffiti',
        name = 'grove',
        scale = 0.17,
        color = {33, 146, 0},
        gangTags = {'gsf'}, -- Used for capturing territory when using https://store.rcore.cz/package/4913168
        width = 752,
        height = 752,
    },
    {
        dict = 'rcore_graffiti',
        name = 'aztecas',
        scale = 0.17,
        color = {214, 101, 41},
        gangTags = {'aztecas'}, -- Used for capturing territory when using https://store.rcore.cz/package/4913168
        width = 640,
        height = 732,
    },
    {
        dict = 'rcore_graffiti',
        name = 'ballas',
        scale = 0.235,
        color = {142, 7, 198},
        gangTags = {'ballas'}, -- Used for capturing territory when using https://store.rcore.cz/package/4913168
        width = 500,
        height = 544,
    },
    {
        dict = 'rcore_graffiti',
        name = 'vagos',
        scale = 0.47,
        color = {164, 103, 65},
        gangTags = {'vagos'}, -- Used for capturing territory when using https://store.rcore.cz/package/4913168
        width = 272,
        height = 272,
    },
}

FastImageMap = {}
for _, d in pairs(IMAGES) do FastImageMap[d.dict .. d.name] = d end

COLORS = {
    {
        basic = 'WHITE',
        hex = 'ffffff',
        rgb = {255, 255, 255},
    },
    {
        basic = 'RED',
        hex = 'c81912',
        rgb = {200, 25, 18},
    },
    {
        basic = 'RED',
        hex = 'f64b3c',
        rgb = {246, 75, 60},
    },
    {
        basic = 'PINK',
        hex = 'f76a8c',
        rgb = {247, 106, 140},
    },
    {
        basic = 'PINK',
        hex = 'fde2e2',
        rgb = {253, 226, 226},
    },
    {
        basic = 'BLUE',
        hex = '000839',
        rgb = {0, 8, 57},
    },
    {
        basic = 'BLUE',
        hex = '005082',
        rgb = {0, 80, 130},
    },
    {
        basic = 'BLUE',
        hex = '00a8cc',
        rgb = {0, 168, 204},
    },
    {
        basic = 'YELLOW',
        hex = 'ffd31d',
        rgb = {255, 211, 29},
    },
    {
        basic = 'YELLOW',
        hex = 'f5fcc1',
        rgb = {245, 252, 193},
    },
    {
        basic = 'GREEN',
        hex = '2b580c',
        rgb = {43, 88, 12},
    },
    {
        basic = 'GREEN',
        hex = '639a67',
        rgb = {99, 154, 103},
    },
    {
        basic = 'ORANGE',
        hex = 'ea6227',
        rgb = {234, 98, 39},
    },
    {
        basic = 'ORANGE',
        hex = 'ffa41b',
        rgb = {255, 164, 27},
    },
    {
        basic = 'BROWN',
        hex = '442727',
        rgb = {68, 39, 39},
    },
    {
        basic = 'BROWN',
        hex = '9c5518',
        rgb = {156, 85, 24},
    },
    {
        basic = 'PURPLE',
        hex = '844685',
        rgb = {132, 70, 133},
    },
    {
        basic = 'PURPLE',
        hex = 'be79df',
        rgb = {190, 121, 223},
    },
    {
        basic = 'GREY',
        hex = 'cccccc',
        rgb = {204, 204, 204},
    },
    {
        basic = 'GREY',
        hex = '323232',
        rgb = {50, 50, 50},
    },
    {
        basic = 'BLACK',
        hex = '000000',
        rgb = {0, 0, 0},
    },
}

SIMPLE_COLORS = {}

for idx, c in pairs(COLORS) do
    SIMPLE_COLORS[idx] = c.rgb
end

FW_ESX = 1
FW_QBCORE = 2
FW_OTHER = 3


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-9-4 16:43:38 | 显示全部楼层
以下是代码的中文翻译,保留了源代码:
IMAGES = {
    {
        dict = 'rcore_graffiti',
        name = 'grove',
        scale = 0.17,
        color = {33, 146, 0},
        gangTags = {'gsf'}, -- 用于使用 https://store.rcore.cz/package/4913168 捕获领土
        width = 752,
        height = 752,
    },
    {
        dict = 'rcore_graffiti',
        name = 'aztecas',
        scale = 0.17,
        color = {214, 101, 41},
        gangTags = {'aztecas'}, -- 用于使用 https://store.rcore.cz/package/4913168 捕获领土
        width = 640,
        height = 732,
    },
    {
        dict = 'rcore_graffiti',
        name = 'ballas',
        scale = 0.235,
        color = {142, 7, 198},
        gangTags = {'ballas'}, -- 用于使用 https://store.rcore.cz/package/4913168 捕获领土
        width = 500,
        height = 544,
    },
    {
        dict = 'rcore_graffiti',
        name = 'vagos',
        scale = 0.47,
        color = {164, 103, 65},
        gangTags = {'vagos'}, -- 用于使用 https://store.rcore.cz/package/4913168 捕获领土
        width = 272,
        height = 272,
    },
}

FastImageMap = {}
for _, d in pairs(IMAGES) do FastImageMap[d.dict .. d.name] = d end

COLORS = {
    {
        basic = '白色',
        hex = 'ffffff',
        rgb = {255, 255, 255},
    },
    {
        basic = '红色',
        hex = 'c81912',
        rgb = {200, 25, 18},
    },
    {
        basic = '红色',
        hex = 'f64b3c',
        rgb = {246, 75, 60},
    },
    {
        basic = '粉色',
        hex = 'f76a8c',
        rgb = {247, 106, 140},
    },
    {
        basic = '粉色',
        hex = 'fde2e2',
        rgb = {253, 226, 226},
    },
    {
        basic = '蓝色',
        hex = '000839',
        rgb = {0, 8, 57},
    },
    {
        basic = '蓝色',
        hex = '005082',
        rgb = {0, 80, 130},
    },
    {
        basic = '蓝色',
        hex = '00a8cc',
        rgb = {0, 168, 204},
    },
    {
        basic = '黄色',
        hex = 'ffd31d',
        rgb = {255, 211, 29},
    },
    {
        basic = '黄色',
        hex = 'f5fcc1',
        rgb = {245, 252, 193},
    },
    {
        basic = '绿色',
        hex = '2b580c',
        rgb = {43, 88, 12},
    },
    {
        basic = '绿色',
        hex = '639a67',
        rgb = {99, 154, 103},
    },
    {
        basic = '橙色',
        hex = 'ea6227',
        rgb = {234, 98, 39},
    },
    {
        basic = '橙色',
        hex = 'ffa41b',
        rgb = {255, 164, 27},
    },
    {
        basic = '棕色',
        hex = '442727',
        rgb = {68, 39, 39},
    },
    {
        basic = '棕色',
        hex = '9c5518',
        rgb = {156, 85, 24},
    },
    {
        basic = '紫色',
        hex = '844685',
        rgb = {132, 70, 133},
    },
    {
        basic = '紫色',
        hex = 'be79df',
        rgb = {190, 121, 223},
    },
    {
        basic = '灰色',
        hex = 'cccccc',
        rgb = {204, 204, 204},
    },
    {
        basic = '灰色',
        hex = '323232',
        rgb = {50, 50, 50},
    },
    {
        basic = '黑色',
        hex = '000000',
        rgb = {0, 0, 0},
    },
}

SIMPLE_COLORS = {}

for idx, c in pairs(COLORS) do
    SIMPLE_COLORS[idx] = c.rgb
end

FW_ESX = 1
FW_QBCORE = 2
FW_OTHER = 3
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-2-9 01:45 , Processed in 0.159044 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表