<commit_before>SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua'))

MapShadersEditor = Editor:extends{}
MapShadersEditor:Register({
    name = "mapShaders",
    tab = "Map",
    caption = "Shaders",
    tooltip = "Edit map shaders",
    image = Path.Join(SB.DIRS.IMG, 'globe.png'),
    order = 5,
})

function MapShadersEditor:init()
    self:super("init")

    self:AddControl("shader-sep", {
        Label:New {
            caption = "Load shader",
        },
        Line:New {
            x = 150,
        }
    })

    self:AddField(GroupField({
        AssetField({
            name = "shaderFile",
            title = "Shader file:",
            tooltip = "SpringBoard Shader Lua file",<commit_msg>disable custom map shaders (still experimental)<commit_after>SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua'))

MapShadersEditor = Editor:extends{}
-- WIP: commented out for now.
-- MapShadersEditor:Register({
--     name = "mapShaders",
--     tab = "Map",
--     caption = "Shaders",
--     tooltip = "Edit map shaders",
--     image = Path.Join(SB.DIRS.IMG, 'globe.png'),
--     order = 5,
-- })

function MapShadersEditor:init()
    self:super("init")

    self:AddControl("shader-sep", {
        Label:New {
            caption = "Load shader",
        },
        Line:New {
            x = 150,
        }
    })

    self:AddField(GroupField({
        AssetField({
            name = "shaderFile",
            title = "Shader file:",
            tooltip = "SpringBoard Shader Lua file",
{'fraction_non_alphanumeric': 0.15169660678642716, 'fraction_numerical': 0.0053226879574184965, 'mean_word_length': 2.1932059447983017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2957627', 'n_tokens_mistral': 498, 'n_tokens_neox': 475, 'n_words': 95}