Menus

data/menus.lua

All menus that are not generated during runtime are defined here. Translations for menu labels can be handled in here.

Defaults

local menus = {
    cnc = {
        preview = {        
            label = "CNC Machine",
            icon = "fa-solid fa-circle-info",
            text = "Interact with this machine.",
            retEvent = "ti_fabrication:preview"
        },

        open = {
            {
                isHeader = true,
                label = "CNC Machine",
                icon = "fa-solid fa-circle-info",
            },
            {
                label = "Machine",
                text = "Machine down materials into various shapes and sizes.",
                icon = "",
                retEvent = "ti_fabrication:machine"
            },
            {
                label = "Production Queue",
                text = "View your production queue on this machine.",
                icon = "",
                retEvent = "ti_fabrication:viewMachiningQueue"
            },
        },
    },

    lathe = {
        preview = {        
            label = "Automatic Lathe",
            icon = "fa-solid fa-circle-info",
            text = "Interact with this machine.",
            retEvent = "ti_fabrication:preview"
        },

        open = {
            {
                isHeader = true,
                label = "Automatic Lathe",
                icon = "fa-solid fa-circle-info",
            },
            {
                label = "Mill",
                text = "Mill down materials into various shapes and sizes.",
                icon = "",
                retEvent = "ti_fabrication:machine"
            },
            {
                label = "Production Queue",
                text = "View your production queue on this machine.",
                icon = "",
                retEvent = "ti_fabrication:viewMachiningQueue"
            },
        },
    },

    fabricator = {
        preview = {        
            label = "Fabricator",
            icon = "fa-solid fa-circle-info",
            text = "Interact with this machine.",
            retEvent = "ti_fabrication:preview"
        },

        open = {
            {
                isHeader = true,
                label = "Fabricator",
                icon = "fa-solid fa-circle-info",
            },
            {
                label = "Fabricate",
                text = "Fabricate a new component on this machine.",
                icon = "",
                retEvent = "ti_fabrication:fabricate"
            },
            {
                label = "Production Queue",
                text = "View your production queue on this machine.",
                icon = "",
                retEvent = "ti_fabrication:viewFabricationQueue"
            },
        },
    },
}

Last updated