require "MS/MS_IndicatorVisualConfig"
require "MS/MS_IndicatorOrder"

local BUNDLED_TOOLTIP_BACKGROUND_OPACITY = 90

MS_BundledPresets = MS_BundledPresets or {
    presets = {
        ["Circular 5 Columns"] = {
            globalSettings = {
                allIndicatorsSettings = {
                    customOrder = {
                    },
                    sortMode = "original",
                    visibilityMode = "all",
                },
                controlPosition = {
                    x = 120,
                    y = 60,
                },
                hideOriginalMoodles = false,
                matrixSettings = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    columns = 5,
                    deltaX = 60,
                    deltaY = 60,
                    height = 48,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    locked = false,
                    mode = "circular",
                    nextLinkOrder = 1,
                    opacity = 1,
                    showIcon = true,
                    sortDirection = "rows",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                    width = 48,
                    x = 420,
                    y = 120,
                },
                multiDragMode = true,
            },
            indicators = {
                MS_HealthIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.6,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_HungerIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.45,
                        g = 0.95,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_ThirstIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.85,
                        g = 0.75,
                        r = 0.55,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_EnduranceIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.85,
                        g = 0.85,
                        r = 0.85,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_FatigueIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.55,
                        g = 0.65,
                        r = 0.7,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_StressIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.6,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PanicIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_BoredomIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.75,
                        g = 0.75,
                        r = 0.75,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DiscomfortIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.65,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_UnhappynessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_AngerIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.1,
                        g = 0.1,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DrunkennessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.4,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_MedicineIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.9,
                        r = 0.3,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_StiffnessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 0.6,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PainIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.5,
                        g = 0.5,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PoisonIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.35,
                        g = 0.8,
                        r = 0.45,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_NoxiousExposureIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.35,
                        g = 0.71,
                        r = 0.79,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_SicknessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.5,
                        g = 0.75,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_WetnessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_TemperatureIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.6,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CatchAColdIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.55,
                        g = 0.75,
                        r = 0.55,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_WeightIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 1,
                        r = 0,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CalorieIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.85,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CarbohydratesIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.6,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_ProteinsIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.8,
                        r = 0.7,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_LipidsIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.8,
                        r = 0.9,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DirtinessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.4,
                        r = 0.5,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISHygieneNeedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.9,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISBathroomNeedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISTABASBodyGrimeStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.45,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISWORCombinedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 1,
                        g = 1,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcStomachStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.34,
                        g = 0.63,
                        r = 0.86,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcColonStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.24,
                        g = 0.44,
                        r = 0.68,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcUrineStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.22,
                        g = 0.82,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcSmellStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.38,
                        g = 0.8,
                        r = 0.54,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcShameStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 24,
                        width = 160,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.76,
                        g = 0.5,
                        r = 0.84,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 540,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CarryWeightIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.4,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 540,
                    },
                    showIcon = true,
                    showName = true,
                    style = "circular",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
            },
        },
        ["Horizontal 1 Column"] = {
            globalSettings = {
                allIndicatorsSettings = {
                    customOrder = {
                    },
                    sortMode = "original",
                    visibilityMode = "all",
                },
                controlPosition = {
                    x = 120,
                    y = 60,
                },
                hideOriginalMoodles = false,
                matrixSettings = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    columns = 1,
                    deltaX = 200,
                    deltaY = 20,
                    height = 18,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    locked = false,
                    mode = "horizontal",
                    nextLinkOrder = 190,
                    opacity = 1,
                    showIcon = true,
                    sortDirection = "columns",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                    width = 168,
                    x = 420,
                    y = 120,
                },
                multiDragMode = true,
            },
            indicators = {
                MS_HealthIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.6,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_HungerIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.45,
                        g = 0.95,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 140,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_ThirstIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.85,
                        g = 0.75,
                        r = 0.55,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 160,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_EnduranceIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.85,
                        g = 0.85,
                        r = 0.85,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_FatigueIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.55,
                        g = 0.65,
                        r = 0.7,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 200,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_StressIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.6,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 220,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PanicIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_BoredomIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.75,
                        g = 0.75,
                        r = 0.75,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 260,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DiscomfortIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.65,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 280,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_UnhappynessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_AngerIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.1,
                        g = 0.1,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 320,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DrunkennessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.4,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 340,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_MedicineIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.9,
                        r = 0.3,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_StiffnessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 0.6,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 380,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PainIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.5,
                        g = 0.5,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 400,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PoisonIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.35,
                        g = 0.8,
                        r = 0.45,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_NoxiousExposureIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.35,
                        g = 0.71,
                        r = 0.79,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 440,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_SicknessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.5,
                        g = 0.75,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 460,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_WetnessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_TemperatureIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.6,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 500,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CatchAColdIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.55,
                        g = 0.75,
                        r = 0.55,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 520,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_WeightIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 1,
                        r = 0,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 560,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CalorieIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.85,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 580,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CarbohydratesIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.6,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 600,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_ProteinsIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.8,
                        r = 0.7,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 620,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_LipidsIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.8,
                        r = 0.9,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 640,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DirtinessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.4,
                        r = 0.5,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 680,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISHygieneNeedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.9,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 700,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISBathroomNeedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 720,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISTABASBodyGrimeStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.45,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 740,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISWORCombinedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 1,
                        g = 1,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 760,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcStomachStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.34,
                        g = 0.63,
                        r = 0.86,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 800,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcColonStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.24,
                        g = 0.44,
                        r = 0.68,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 820,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcUrineStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.22,
                        g = 0.82,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 840,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcSmellStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.38,
                        g = 0.8,
                        r = 0.54,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 860,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcShameStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.76,
                        g = 0.5,
                        r = 0.84,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 880,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CarryWeightIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 28,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.4,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = false,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 80,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
            },
        },
        ["Vertical 1 Row"] = {
            globalSettings = {
                allIndicatorsSettings = {
                    customOrder = {
                    },
                    sortMode = "original",
                    visibilityMode = "all",
                },
                controlPosition = {
                    x = 120,
                    y = 60,
                },
                hideOriginalMoodles = false,
                matrixSettings = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    columns = 40,
                    deltaX = 20,
                    deltaY = 200,
                    height = 168,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    locked = false,
                    mode = "vertical",
                    nextLinkOrder = 196,
                    opacity = 1,
                    showIcon = true,
                    sortDirection = "rows",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                    width = 18,
                    x = 120,
                    y = 260,
                },
                multiDragMode = true,
            },
            indicators = {
                MS_HealthIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.6,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 120,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_HungerIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.45,
                        g = 0.95,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_ThirstIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.85,
                        g = 0.75,
                        r = 0.55,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 160,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_EnduranceIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.85,
                        g = 0.85,
                        r = 0.85,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 180,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_FatigueIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.55,
                        g = 0.65,
                        r = 0.7,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 200,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_StressIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.6,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 220,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PanicIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 240,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_BoredomIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.75,
                        g = 0.75,
                        r = 0.75,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 260,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DiscomfortIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.65,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 280,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_UnhappynessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 300,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_AngerIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.1,
                        g = 0.1,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 320,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DrunkennessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.6,
                        g = 0.4,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 340,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_MedicineIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.9,
                        r = 0.3,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 360,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_StiffnessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 0.6,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 380,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PainIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.5,
                        g = 0.5,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 400,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_PoisonIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.35,
                        g = 0.8,
                        r = 0.45,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 420,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_NoxiousExposureIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.35,
                        g = 0.71,
                        r = 0.79,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 440,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_SicknessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.5,
                        g = 0.75,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 460,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_WetnessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 480,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_TemperatureIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.6,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 500,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CatchAColdIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.55,
                        g = 0.75,
                        r = 0.55,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 520,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_WeightIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 1,
                        r = 0,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 540,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CalorieIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.85,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 560,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CarbohydratesIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.6,
                        r = 0.8,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 580,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_ProteinsIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.8,
                        r = 0.7,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 600,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_LipidsIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.8,
                        r = 0.9,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 620,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_DirtinessIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.4,
                        r = 0.5,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 640,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISHygieneNeedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.9,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 660,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISBathroomNeedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 680,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISTABASBodyGrimeStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.45,
                        r = 0.65,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 700,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISWORCombinedStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 1,
                        g = 1,
                        r = 1,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 720,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcStomachStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.34,
                        g = 0.63,
                        r = 0.86,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 740,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcColonStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.24,
                        g = 0.44,
                        r = 0.68,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 760,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcUrineStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.22,
                        g = 0.82,
                        r = 0.95,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 780,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcSmellStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.38,
                        g = 0.8,
                        r = 0.54,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 800,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                ISExcShameStatusIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.76,
                        g = 0.5,
                        r = 0.84,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 820,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
                MS_CarryWeightIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = false,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 168,
                        width = 18,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.4,
                        r = 0.6,
                    },
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    isVertical = true,
                    locked = false,
                    matrixLinked = false,
                    matrixLinkOrder = 0,
                    opacity = 1,
                    position = {
                        x = 90,
                        y = 60,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    useGradient = false,
                    useMonoIcon = false,
                },
            },
        },
    },
}


local function _MSBundledDeepCopy(value)
    if type(value) ~= "table" then
        return value
    end

    local copy = {}
    for key, entry in pairs(value) do
        copy[_MSBundledDeepCopy(key)] = _MSBundledDeepCopy(entry)
    end
    return copy
end

local MS_BUNDLED_THRESHOLD_DEFAULTS = {
    MS_HealthIndicator = { alarm = 20, autoHide = 0 },
    MS_HungerIndicator = { alarm = 25, autoHide = 15 },
    MS_ThirstIndicator = { alarm = 25, autoHide = 12 },
    MS_EnduranceIndicator = { alarm = 15, autoHide = 0 },
    MS_FatigueIndicator = { alarm = 60, autoHide = 0 },
    MS_StressIndicator = { alarm = 25, autoHide = 0 },
    MS_PanicIndicator = { alarm = 6, autoHide = 0 },
    MS_BoredomIndicator = { alarm = 50, autoHide = 0 },
    MS_DiscomfortIndicator = { alarm = 20, autoHide = 0 },
    MS_UnhappynessIndicator = { alarm = 20, autoHide = 0 },
    MS_AngerIndicator = { alarm = 10, autoHide = 0 },
    MS_DrunkennessIndicator = { alarm = 10, autoHide = 0 },
    MS_MedicineIndicator = { alarm = 30, autoHide = 0 },
    MS_StiffnessIndicator = { alarm = 25, autoHide = 0 },
    MS_PainIndicator = { alarm = 10, autoHide = 0 },
    MS_BleedingIndicator = { alarm = 0, autoHide = 0 },
    MS_PoisonIndicator = { alarm = 25, autoHide = 0 },
    MS_NoxiousExposureIndicator = { alarm = 6, autoHide = 0 },
    MS_SicknessIndicator = { alarm = 25, autoHide = 0 },
    MS_WetnessIndicator = { alarm = 15, autoHide = 0 },
    ISWindchillStatusIndicator = { alarm = 5, autoHide = 0 },
    MS_WindchillIndicator = { alarm = 5, autoHide = 0 },
    MS_TemperatureIndicator = { alarm = 5, autoHide = 2 },
    MS_CatchAColdIndicator = { alarm = 20, autoHide = 0 },
    MS_FoodHealingIndicator = { alarm = 30, autoHide = 0 },
    ISFoodHealingStatusIndicator = { alarm = 30, autoHide = 0 },
    MS_WeightIndicator = { alarm = 5, autoHide = 2 },
    MS_CalorieIndicator = { alarm = 1000, autoHide = 0 },
    MS_CarbohydratesIndicator = { alarm = 400, autoHide = 0 },
    MS_ProteinsIndicator = { alarm = 300, autoHide = 0 },
    MS_LipidsIndicator = { alarm = 400, autoHide = 0 },
    MS_DirtinessIndicator = { alarm = 25, autoHide = 0 },
    ISBloodinessStatusIndicator = { alarm = 25, autoHide = 0 },
    MS_BloodinessIndicator = { alarm = 25, autoHide = 0 },
    ISHygieneNeedStatusIndicator = { alarm = 40, autoHide = 0 },
    ISBathroomNeedStatusIndicator = { alarm = 30, autoHide = 0 },
    ISTABASBodyGrimeStatusIndicator = { alarm = 30, autoHide = 0 },
    ISWORCombinedStatusIndicator = { alarm = 50, autoHide = 0 },
    ISExcStomachStatusIndicator = { alarm = 100, autoHide = 0 },
    ISExcColonStatusIndicator = { alarm = 80, autoHide = 0 },
    ISExcUrineStatusIndicator = { alarm = 30, autoHide = 0 },
    ISExcSmellStatusIndicator = { alarm = 50, autoHide = 0 },
    ISExcShameStatusIndicator = { alarm = 50, autoHide = 0 },
    MS_CarryWeightIndicator = { alarm = 125, autoHide = 0 },
    ISNCBladderStatusIndicator = { alarm = 95, autoHide = 70 },
    ISNCBowelStatusIndicator = { alarm = 95, autoHide = 70 },
    ISNCGutHealthStatusIndicator = { alarm = 2, autoHide = 0.5 },
    ISNCSoilageStatusIndicator = { alarm = 25, autoHide = 0 },
    ISNCDigestiveEffectsStatusIndicator = { alarm = 0, autoHide = 0 },
}


local function _MSGetBundledNextGridPosition(preset)
    local indicators = preset and preset.indicators or nil
    if type(indicators) ~= "table" then
        return 120, 120
    end

    local maxX = 120
    local maxY = 120
    for _, indicator in pairs(indicators) do
        local position = type(indicator) == "table" and indicator.position or nil
        if type(position) == "table" then
            local x = tonumber(position.x) or 120
            local y = tonumber(position.y) or 120
            if y > maxY or (y == maxY and x > maxX) then
                maxX = x
                maxY = y
            end
        end
    end

    local stepX = 60
    local stepY = 60
    local nextX = maxX + stepX
    local nextY = maxY
    if nextX > 360 then
        nextX = 120
        nextY = maxY + stepY
    end

    return nextX, nextY
end

local function _MSEnsureBundledBleedingIndicator(preset)
    if type(preset) ~= "table" or type(preset.indicators) ~= "table" then return end
    if type(preset.indicators.MS_BleedingIndicator) == "table" then return end

    local source = preset.indicators.MS_PoisonIndicator or preset.indicators.MS_SicknessIndicator or preset.indicators.MS_HealthIndicator or {}
    local bleeding = _MSBundledDeepCopy(source)
    preset.indicators.MS_BleedingIndicator = bleeding

    local x, y = _MSGetBundledNextGridPosition(preset)
    bleeding.position = { x = x, y = y }
    bleeding.hidden = false
    bleeding.locked = false
    bleeding.matrixLinked = false
    bleeding.matrixLinkOrder = 0
    bleeding.alarmEnabled = true
    bleeding.animationThreshold = 0
    bleeding.autoHide = false
    bleeding.autoHideThreshold = 0
    bleeding.displayThresholds = source.displayThresholds ~= false
    bleeding.useGradient = source.useGradient == true
    bleeding.showIcon = source.showIcon ~= false
    bleeding.showName = source.showName ~= false
    bleeding.iconPosition = source.iconPosition or "left"
    bleeding.iconOpacity = source.iconOpacity or 1
    bleeding.opacity = source.opacity or 1
    bleeding.textScale = source.textScale or 1
    bleeding.useMonoIcon = source.useMonoIcon == true

    local color = MS_IndicatorVisualConfig and MS_IndicatorVisualConfig.getDefaultBaseColor and MS_IndicatorVisualConfig.getDefaultBaseColor("MS_BleedingIndicator") or nil
    if color then
        bleeding.color = { r = color.r, g = color.g, b = color.b }
    else
        bleeding.color = { r = 0.796078, g = 0, b = 0 }
    end
end

local function _MSApplyBundledGlobalDefaults(preset)
    if type(preset) ~= "table" then return end

    -- Bundle presets should not hide vanilla moodles, auto-hide indicators or
    -- enable broad editing helpers by default. Keep these defaults explicit so
    -- every bundled layout starts from a predictable state.
    local globalSettings = preset.globalSettings or {}
    preset.globalSettings = globalSettings
    globalSettings.performanceMode = "balanced"
    globalSettings.multiDragMode = false
    globalSettings.hideOriginalMoodles = false
    globalSettings.hideVanillaMoodles = false

    globalSettings.gridSettings = globalSettings.gridSettings or {}
    globalSettings.gridSettings.enabled = true
    globalSettings.gridSettings.sizeX = globalSettings.gridSettings.sizeX or 5
    globalSettings.gridSettings.sizeY = globalSettings.gridSettings.sizeY or 5

    globalSettings.tooltipSettings = globalSettings.tooltipSettings or {}
    globalSettings.tooltipSettings.showName = true
    globalSettings.tooltipSettings.showValue = true
    globalSettings.tooltipSettings.showThresholds = true
    globalSettings.tooltipSettings.showAssociatedMoodle = true
    globalSettings.tooltipSettings.showMoodleTitle = true
    globalSettings.tooltipSettings.showMoodleDescription = true
    globalSettings.tooltipSettings.showDetailedInfo = true
    globalSettings.tooltipSettings.opacity = BUNDLED_TOOLTIP_BACKGROUND_OPACITY

    if type(globalSettings.matrixSettings) == "table" then
        globalSettings.matrixSettings.alarmEnabled = false
        globalSettings.matrixSettings.autoHide = false
        globalSettings.matrixSettings.updateIntervalMs = 500
    end
end

local function _MSApplyBundledIndicatorUpdateIntervals(preset)
    if type(preset) ~= "table" or type(preset.indicators) ~= "table" then return end
    if not MS_IndicatorVisualConfig or not MS_IndicatorVisualConfig.getDefaultUpdateIntervalMs then return end

    -- Bundled presets use the Balanced performance profile by default.
    for indicatorType, indicatorConfig in pairs(preset.indicators) do
        if type(indicatorConfig) == "table" then
            indicatorConfig.updateIntervalMs = MS_IndicatorVisualConfig.getDefaultUpdateIntervalMs(indicatorType)
        end
    end
end

local function _MSApplyBundledIndicatorThresholds(preset)
    if type(preset) ~= "table" or type(preset.indicators) ~= "table" then return end

    -- All bundled indicators start with alarm and auto-hide disabled, except
    -- Bleeding, which intentionally keeps its alarm enabled at level 0+.
    for _, indicatorConfig in pairs(preset.indicators) do
        if type(indicatorConfig) == "table" then
            indicatorConfig.alarmEnabled = false
            indicatorConfig.autoHide = false
        end
    end

    for indicatorType, thresholds in pairs(MS_BUNDLED_THRESHOLD_DEFAULTS) do
        local indicatorConfig = preset.indicators[indicatorType]
        if type(indicatorConfig) == "table" then
            indicatorConfig.animationThreshold = thresholds.alarm
            indicatorConfig.autoHideThreshold = thresholds.autoHide
        end
    end

    local bleeding = preset.indicators.MS_BleedingIndicator or preset.indicators.ISBleedingStatusIndicator
    if type(bleeding) == "table" then
        bleeding.alarmEnabled = true
        bleeding.animationThreshold = 0
        bleeding.autoHide = false
        bleeding.autoHideThreshold = 0
    end

    local foodHealing = preset.indicators.MS_FoodHealingIndicator or preset.indicators.ISFoodHealingStatusIndicator
    if type(foodHealing) == "table" then
        foodHealing.alarmEnabled = false
        foodHealing.animationThreshold = 30
        foodHealing.autoHide = false
        foodHealing.autoHideThreshold = 0
        foodHealing.displayThresholds = true
        foodHealing.alwaysShowValue = true
    end
end


local function _MSApplyBundledIndicatorBaseColors(preset)
    if type(preset) ~= "table" or type(preset.indicators) ~= "table" then return end
    if not MS_IndicatorVisualConfig or not MS_IndicatorVisualConfig.getDefaultBaseColor then return end

    for indicatorType, indicatorConfig in pairs(preset.indicators) do
        if type(indicatorConfig) == "table" then
            local color = MS_IndicatorVisualConfig.getDefaultBaseColor(indicatorType)
            if color then
                indicatorConfig.color = { r = color.r, g = color.g, b = color.b }
            end
        end
    end
end

local function _MSBuildVertical2RowsPreset()
    local source = MS_BundledPresets.presets["Vertical 1 Row"] or MS_BundledPresets.presets["Circular 5 Columns"]
    local preset = _MSBundledDeepCopy(source or { globalSettings = {}, indicators = {} })

    preset.globalSettings = preset.globalSettings or {}
    preset.globalSettings.controlPosition = { x = 111, y = 0 }
    preset.globalSettings.allIndicatorsSettings = preset.globalSettings.allIndicatorsSettings or {}
    preset.globalSettings.allIndicatorsSettings.sortMode = "original"
    preset.globalSettings.allIndicatorsSettings.visibilityMode = "all"
    preset.globalSettings.allIndicatorsSettings.customOrder = {
        [1] = "MS_HealthIndicator",
        [2] = "MS_HungerIndicator",
        [3] = "MS_ThirstIndicator",
        [4] = "MS_EnduranceIndicator",
        [5] = "MS_FatigueIndicator",
        [6] = "MS_StressIndicator",
        [7] = "MS_PanicIndicator",
        [8] = "MS_BoredomIndicator",
        [9] = "MS_DiscomfortIndicator",
        [10] = "MS_UnhappynessIndicator",
        [11] = "MS_AngerIndicator",
        [12] = "MS_DrunkennessIndicator",
        [13] = "MS_MedicineIndicator",
        [14] = "MS_StiffnessIndicator",
        [15] = "MS_PainIndicator",
        [16] = "MS_BleedingIndicator",
        [17] = "MS_PoisonIndicator",
        [18] = "MS_SicknessIndicator",
        [19] = "MS_WetnessIndicator",
        [20] = "MS_TemperatureIndicator",
        [21] = "MS_CatchAColdIndicator",
        [22] = "MS_WeightIndicator",
        [23] = "MS_CalorieIndicator",
        [24] = "MS_CarbohydratesIndicator",
        [25] = "MS_ProteinsIndicator",
        [26] = "MS_LipidsIndicator",
        [27] = "MS_DirtinessIndicator",
        [28] = "ISHygieneNeedStatusIndicator",
        [29] = "ISBathroomNeedStatusIndicator",
        [30] = "ISTABASBodyGrimeStatusIndicator",
        [31] = "ISWORCombinedStatusIndicator",
        [32] = "ISExcStomachStatusIndicator",
        [33] = "ISExcColonStatusIndicator",
        [34] = "ISExcUrineStatusIndicator",
        [35] = "ISExcSmellStatusIndicator",
        [36] = "ISExcShameStatusIndicator",
        [37] = "MS_CarryWeightIndicator",
    }

    preset.globalSettings.matrixSettings = preset.globalSettings.matrixSettings or {}
    local matrix = preset.globalSettings.matrixSettings
    matrix.columns = 20
    matrix.deltaX = 10
    matrix.deltaY = 200
    matrix.displayThresholds = false
    matrix.height = 168
    matrix.mode = "vertical"
    matrix.nextLinkOrder = 271
    matrix.width = 10
    matrix.x = 120
    matrix.y = 460
    matrix.sortDirection = "rows"

    preset.indicators = preset.indicators or {}
    local layout = {
        MS_CarryWeightIndicator = { x = 120, y = 60, width = 15, locked = true },
        MS_HealthIndicator = { x = 135, y = 60, width = 15, locked = true },
        MS_HungerIndicator = { x = 150, y = 60, width = 10 },
        MS_ThirstIndicator = { x = 160, y = 60, width = 10 },
        MS_EnduranceIndicator = { x = 170, y = 60, width = 10 },
        MS_FatigueIndicator = { x = 180, y = 60, width = 10 },
        MS_StressIndicator = { x = 190, y = 60, width = 10 },
        MS_PanicIndicator = { x = 200, y = 60, width = 10 },
        MS_BoredomIndicator = { x = 210, y = 60, width = 10 },
        MS_DiscomfortIndicator = { x = 220, y = 60, width = 10 },
        MS_UnhappynessIndicator = { x = 230, y = 60, width = 10 },
        MS_AngerIndicator = { x = 240, y = 60, width = 10 },
        MS_DrunkennessIndicator = { x = 250, y = 60, width = 10 },
        MS_MedicineIndicator = { x = 260, y = 60, width = 10, displayThresholds = false },
        MS_StiffnessIndicator = { x = 270, y = 60, width = 10 },
        MS_PainIndicator = { x = 280, y = 60, width = 10 },
        MS_BleedingIndicator = { x = 290, y = 60, width = 10 },
        MS_PoisonIndicator = { x = 300, y = 60, width = 10 },
        MS_NoxiousExposureIndicator = { x = 310, y = 60, width = 10 },
        MS_SicknessIndicator = { x = 320, y = 60, width = 10 },
        MS_WetnessIndicator = { x = 330, y = 60, width = 10 },
        MS_TemperatureIndicator = { x = 120, y = 260, width = 15 },
        MS_CatchAColdIndicator = { x = 135, y = 260, width = 10, locked = true },
        MS_WeightIndicator = { x = 145, y = 260, width = 15 },
        MS_CalorieIndicator = { x = 160, y = 260, width = 10 },
        MS_CarbohydratesIndicator = { x = 170, y = 260, width = 10 },
        MS_ProteinsIndicator = { x = 180, y = 260, width = 10 },
        MS_LipidsIndicator = { x = 190, y = 260, width = 10 },
        MS_DirtinessIndicator = { x = 200, y = 260, width = 10 },
        ISHygieneNeedStatusIndicator = { x = 210, y = 260, width = 10 },
        ISBathroomNeedStatusIndicator = { x = 220, y = 260, width = 10 },
        ISTABASBodyGrimeStatusIndicator = { x = 230, y = 260, width = 10 },
        ISWORCombinedStatusIndicator = { x = 240, y = 260, width = 10 },
        ISExcStomachStatusIndicator = { x = 250, y = 260, width = 10 },
        ISExcColonStatusIndicator = { x = 260, y = 260, width = 10 },
        ISExcUrineStatusIndicator = { x = 270, y = 260, width = 10 },
        ISExcSmellStatusIndicator = { x = 280, y = 260, width = 10 },
        ISExcShameStatusIndicator = { x = 290, y = 260, width = 10 },
    }

    for indicatorType, item in pairs(layout) do
        local indicator = preset.indicators[indicatorType] or {}
        preset.indicators[indicatorType] = indicator
        indicator.position = { x = item.x, y = item.y }
        indicator.style = "bar"
        indicator.isVertical = true
        indicator.barSize = { height = 168, width = item.width or 10 }
        indicator.displayThresholds = item.displayThresholds ~= false
        indicator.locked = item.locked == true
        indicator.matrixLinked = false
        indicator.matrixLinkOrder = 0
        indicator.hidden = false
    end

    return preset
end


local MS_BUNDLED_REQUESTED_ORDER = {
    "MS_BleedingIndicator",
    "MS_CarryWeightIndicator",
    "MS_HealthIndicator",
    "MS_HungerIndicator",
    "MS_ThirstIndicator",
    "MS_EnduranceIndicator",
    "MS_FatigueIndicator",
    "MS_StressIndicator",
    "MS_PanicIndicator",
    "MS_BoredomIndicator",
    "MS_DiscomfortIndicator",
    "MS_UnhappynessIndicator",
    "MS_AngerIndicator",
    "MS_DrunkennessIndicator",
    "MS_MedicineIndicator",
    "MS_StiffnessIndicator",
    "MS_PainIndicator",
    "MS_PoisonIndicator",
    "MS_NoxiousExposureIndicator",
    "MS_SicknessIndicator",
    "MS_WetnessIndicator",
    "MS_WindchillIndicator",
    "MS_TemperatureIndicator",
    "MS_CatchAColdIndicator",
    "MS_FoodHealingIndicator",
    "MS_WeightIndicator",
    "MS_CalorieIndicator",
    "MS_CarbohydratesIndicator",
    "MS_ProteinsIndicator",
    "MS_LipidsIndicator",
    "MS_DirtinessIndicator",
    "MS_BloodinessIndicator",
    "ISHygieneNeedStatusIndicator",
    "ISBathroomNeedStatusIndicator",
    "ISTABASBodyGrimeStatusIndicator",
    "ISWORCombinedStatusIndicator",
    "ISExcStomachStatusIndicator",
    "ISExcColonStatusIndicator",
    "ISExcUrineStatusIndicator",
    "ISExcSmellStatusIndicator",
    "ISExcShameStatusIndicator",
    "ISNCBladderStatusIndicator",
    "ISNCBowelStatusIndicator",
    "ISNCGutHealthStatusIndicator",
    "ISNCSoilageStatusIndicator",
    "ISNCDigestiveEffectsStatusIndicator",
}

local function _MSBuildRequestedCustomOrder()
    local order = {}
    for index, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
        order[index] = indicatorType
    end
    return order
end

local function _MSGetPresetBase()
    return MS_BundledPresets.presets["Horizontal 1 Column"] or MS_BundledPresets.presets["Vertical 1 Row"] or MS_BundledPresets.presets["Circular 5 Columns"] or { globalSettings = {}, indicators = {} }
end

local function _MSEnsureRequestedIndicator(preset, indicatorType)
    preset.indicators = preset.indicators or {}
    local indicator = preset.indicators[indicatorType]
    if type(indicator) ~= "table" then
        local source = preset.indicators.MS_HealthIndicator or preset.indicators.MS_PoisonIndicator or {}
        indicator = _MSBundledDeepCopy(source)
        preset.indicators[indicatorType] = indicator
    end
    return indicator
end

local function _MSApplyHorizontalOneColumnLayout(preset, width, height, variant)
    preset.globalSettings = preset.globalSettings or {}
    preset.globalSettings.controlPosition = { x = 120, y = 20 }
    preset.globalSettings.allIndicatorsSettings = preset.globalSettings.allIndicatorsSettings or {}
    preset.globalSettings.allIndicatorsSettings.customOrder = _MSBuildRequestedCustomOrder()
    preset.globalSettings.allIndicatorsSettings.sortMode = variant == "standard" and "original" or "custom"
    preset.globalSettings.allIndicatorsSettings.visibilityMode = "all"
    preset.globalSettings.gridSettings = { enabled = true, sizeX = 10, sizeY = 10 }
    preset.globalSettings.hideOriginalMoodles = false
    preset.globalSettings.hideVanillaMoodles = false
    preset.globalSettings.matrixSettings = preset.globalSettings.matrixSettings or {}
    local matrix = preset.globalSettings.matrixSettings
    matrix.alarmEnabled = false
    matrix.alwaysShowValue = true
    matrix.animationThreshold = 20
    matrix.autoHide = false
    matrix.autoHideThreshold = 0
    matrix.columns = 1
    matrix.deltaX = 200
    matrix.deltaY = 20
    matrix.displayThresholds = false
    matrix.height = 18
    matrix.hidden = false
    matrix.iconOpacity = 1
    matrix.iconPosition = "left"
    matrix.invertDirection = false
    matrix.keepLayoutOnRelease = false
    matrix.locked = false
    matrix.mode = "horizontal"
    matrix.nextLinkOrder = 191
    matrix.opacity = 1
    matrix.showIcon = true
    matrix.showName = true
    matrix.sortDirection = "columns"
    matrix.textScale = 1
    matrix.useGradient = false
    matrix.useMonoIcon = false
    matrix.width = 168
    matrix.x = 420
    matrix.y = variant == "invertRisks" and 100 or 120
    preset.globalSettings.multiDragMode = false
    preset.globalSettings.tooltipSettings = {
        opacity = BUNDLED_TOOLTIP_BACKGROUND_OPACITY,
        showAssociatedMoodle = true,
        showDetailedInfo = true,
        showMoodleDescription = true,
        showMoodleTitle = true,
        showName = true,
        showThresholds = true,
        showValue = true,
    }

    local yPositions = {
        MS_BleedingIndicator = variant == "standard" and 100 or 80,
        MS_CarryWeightIndicator = 120,
        MS_HealthIndicator = 160,
        MS_HungerIndicator = 180,
        MS_ThirstIndicator = 200,
        MS_EnduranceIndicator = 220,
        MS_FatigueIndicator = 240,
        MS_StressIndicator = 260,
        MS_PanicIndicator = 280,
        MS_BoredomIndicator = 300,
        MS_DiscomfortIndicator = 320,
        MS_UnhappynessIndicator = 340,
        MS_AngerIndicator = 360,
        MS_DrunkennessIndicator = 380,
        MS_MedicineIndicator = 400,
        MS_StiffnessIndicator = 420,
        MS_PainIndicator = 440,
        MS_PoisonIndicator = 460,
        MS_NoxiousExposureIndicator = 480,
        MS_SicknessIndicator = 500,
        MS_WetnessIndicator = 520,
        MS_TemperatureIndicator = 540,
        MS_CatchAColdIndicator = 560,
        MS_FoodHealingIndicator = 580,
        MS_WeightIndicator = 600,
        MS_CalorieIndicator = 620,
        MS_CarbohydratesIndicator = 640,
        MS_ProteinsIndicator = 660,
        MS_LipidsIndicator = 680,
        MS_DirtinessIndicator = 720,
        ISHygieneNeedStatusIndicator = 740,
        ISBathroomNeedStatusIndicator = 760,
        ISTABASBodyGrimeStatusIndicator = 780,
        ISWORCombinedStatusIndicator = 800,
        ISExcStomachStatusIndicator = 840,
        ISExcColonStatusIndicator = 860,
        ISExcUrineStatusIndicator = 880,
        ISExcSmellStatusIndicator = 900,
        ISExcShameStatusIndicator = 920,
    }

    local reserveIndicators = {
        MS_HealthIndicator = true,
        MS_HungerIndicator = true,
        MS_ThirstIndicator = true,
        MS_EnduranceIndicator = true,
    }

    local riskIndicators = {
        MS_FatigueIndicator = true,
        MS_StressIndicator = true,
        MS_PanicIndicator = true,
        MS_BoredomIndicator = true,
        MS_DiscomfortIndicator = true,
        MS_UnhappynessIndicator = true,
        MS_AngerIndicator = true,
        MS_DrunkennessIndicator = true,
        MS_MedicineIndicator = true,
        MS_StiffnessIndicator = true,
        MS_PainIndicator = true,
        MS_PoisonIndicator = true,
        MS_NoxiousExposureIndicator = true,
        MS_SicknessIndicator = true,
        MS_WetnessIndicator = true,
        MS_WindchillIndicator = true,
        MS_CatchAColdIndicator = true,
        MS_FoodHealingIndicator = true,
        MS_DirtinessIndicator = true,
        ISHygieneNeedStatusIndicator = true,
        ISBathroomNeedStatusIndicator = true,
        ISTABASBodyGrimeStatusIndicator = true,
        ISWORCombinedStatusIndicator = true,
        ISExcStomachStatusIndicator = true,
        ISExcColonStatusIndicator = true,
        ISExcUrineStatusIndicator = true,
        ISExcSmellStatusIndicator = true,
        ISExcShameStatusIndicator = true,
        ISNCBladderStatusIndicator = true,
        ISNCBowelStatusIndicator = true,
        ISNCSoilageStatusIndicator = true,
        ISNCDigestiveEffectsStatusIndicator = true,
    }

    for _, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
        local indicator = _MSEnsureRequestedIndicator(preset, indicatorType)
        indicator.alwaysShowValue = true
        indicator.barSize = { height = height, width = width }
        indicator.circularSize = 48
        indicator.displayThresholds = true
        indicator.displayTooltipRight = false
        indicator.hidden = false
        indicator.iconOpacity = 1
        indicator.iconPosition = "left"
        indicator.isVertical = false
        indicator.locked = false
        indicator.matrixLinked = false
        indicator.matrixLinkOrder = 0
        indicator.opacity = 1
        indicator.position = { x = 140, y = yPositions[indicatorType] or 120 }
        indicator.showIcon = true
        indicator.showName = true
        indicator.style = "bar"
        indicator.textScale = 1
        indicator.useGradient = false
        indicator.useMonoIcon = false

        if variant == "invertReserves" then
            indicator.invertDirection = reserveIndicators[indicatorType] == true
            indicator.locked = false
        elseif variant == "invertRisks" then
            indicator.invertDirection = riskIndicators[indicatorType] == true
        else
            indicator.invertDirection = false
        end
    end

    if type(preset.indicators.MS_BleedingIndicator) == "table" then
        preset.indicators.MS_BleedingIndicator.barSize = { height = variant == "standard" and 18 or 40, width = width }
        preset.indicators.MS_BleedingIndicator.position = { x = 140, y = variant == "standard" and 100 or 80 }
        preset.indicators.MS_BleedingIndicator.invertDirection = false
    end

    if type(preset.indicators.MS_CarryWeightIndicator) == "table" then
        preset.indicators.MS_CarryWeightIndicator.barSize = { height = 28, width = width }
        preset.indicators.MS_CarryWeightIndicator.position = { x = 140, y = 120 }
        preset.indicators.MS_CarryWeightIndicator.invertDirection = false
    end

    if type(preset.indicators.MS_MedicineIndicator) == "table" then
        preset.indicators.MS_MedicineIndicator.displayThresholds = false
    end
end

local function _MSBuildRequestedHorizontalOneColumnPreset(width, height, variant)
    local preset = _MSBundledDeepCopy(_MSGetPresetBase())
    _MSApplyHorizontalOneColumnLayout(preset, width, height, variant or "standard")
    return preset
end

-- Bundled preset exported by the author for a horizontal matrix layout with auto-hidden gaps compacted.
MS_BundledPresets.presets["HorizMatrix - AutoHide (NotNutrition) - FillHiddenGaps"] = {
            globalSettings = {
                allIndicatorsSettings = {
                    customOrder = {
                        [1] = "MS_BleedingIndicator",
                        [2] = "MS_CarryWeightIndicator",
                        [3] = "MS_HealthIndicator",
                        [4] = "MS_HungerIndicator",
                        [5] = "MS_ThirstIndicator",
                        [6] = "MS_EnduranceIndicator",
                        [7] = "MS_FatigueIndicator",
                        [8] = "MS_StressIndicator",
                        [9] = "MS_PanicIndicator",
                        [10] = "MS_BoredomIndicator",
                        [11] = "MS_DiscomfortIndicator",
                        [12] = "MS_UnhappynessIndicator",
                        [13] = "MS_AngerIndicator",
                        [14] = "MS_DrunkennessIndicator",
                        [15] = "MS_MedicineIndicator",
                        [16] = "MS_StiffnessIndicator",
                        [17] = "MS_PainIndicator",
                        [18] = "MS_PoisonIndicator",
                        [19] = "MS_NoxiousExposureIndicator",
                        [20] = "MS_SicknessIndicator",
                        [21] = "MS_WetnessIndicator",
                        [22] = "MS_TemperatureIndicator",
                        [23] = "MS_CatchAColdIndicator",
                        [24] = "MS_WeightIndicator",
                        [25] = "MS_CalorieIndicator",
                        [26] = "MS_CarbohydratesIndicator",
                        [27] = "MS_ProteinsIndicator",
                        [28] = "MS_LipidsIndicator",
                        [29] = "MS_DirtinessIndicator",
                        [30] = "ISHygieneNeedStatusIndicator",
                        [31] = "ISBathroomNeedStatusIndicator",
                        [32] = "ISTABASBodyGrimeStatusIndicator",
                        [33] = "ISWORCombinedStatusIndicator",
                        [34] = "ISExcStomachStatusIndicator",
                        [35] = "ISExcColonStatusIndicator",
                        [36] = "ISExcUrineStatusIndicator",
                        [37] = "ISExcSmellStatusIndicator",
                        [38] = "ISExcShameStatusIndicator",
                    },
                    sortMode = "original",
                    visibilityMode = "all",
                },
                controlPosition = {
                    x = 120,
                    y = 20,
                },
                gridSettings = {
                    enabled = true,
                    sizeX = 10,
                    sizeY = 10,
                },
                hideOriginalMoodles = false,
                hideVanillaMoodles = false,
                matrixSettings = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = false,
                    autoHideThreshold = 0,
                    columns = 1,
                    compactHiddenIndicators = true,
                    deltaX = 250,
                    deltaY = 28,
                    displayThresholds = false,
                    height = 32,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    keepLayoutOnRelease = false,
                    locked = false,
                    mode = "horizontal",
                    nextLinkOrder = 229,
                    opacity = 1,
                    showIcon = true,
                    showName = true,
                    sortDirection = "columns",
                    textScale = 1,
                    updateIntervalMs = 500,
                    useGradient = true,
                    useMonoIcon = false,
                    width = 210,
                    x = 170,
                    y = 70,
                },
                multiDragMode = false,
                performanceMode = "balanced",
                tooltipSettings = {
                    opacity = 90,
                    showAssociatedMoodle = true,
                    showDetailedInfo = true,
                    showMoodleDescription = true,
                    showMoodleTitle = true,
                    showName = true,
                    showThresholds = true,
                    showValue = true,
                },
            },
            indicators = {
                MS_BleedingIndicator = {
                    alarmEnabled = true,
                    alwaysShowValue = true,
                    animationThreshold = 0,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 0,
                        r = 0.796078,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 191,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 100,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 250,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_CarryWeightIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 125,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 28,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.4,
                        r = 0.6,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 192,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 120,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_HealthIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.321569,
                        g = 0.321569,
                        r = 0.913725,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 193,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 160,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 150,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_HungerIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.45,
                        g = 0.95,
                        r = 0.95,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 194,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 180,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 500,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_ThirstIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.643137,
                        g = 0.607843,
                        r = 0.482353,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 195,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 200,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 500,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_EnduranceIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 15,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.658824,
                        g = 0.564706,
                        r = 0.878431,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 196,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 220,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 150,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_FatigueIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 60,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.709804,
                        g = 0.498039,
                        r = 0.403922,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 197,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 240,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 750,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_StressIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.313725,
                        g = 0.533333,
                        r = 0.878431,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 198,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 260,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_PanicIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 6,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.501961,
                        g = 0.878431,
                        r = 0.909804,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 199,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 280,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 250,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_BoredomIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 50,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.75,
                        g = 0.75,
                        r = 0.75,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 200,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 300,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_DiscomfortIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.847059,
                        g = 0.721569,
                        r = 0.501961,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 201,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 320,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_UnhappynessIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.6,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 202,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 340,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_AngerIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 10,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.313725,
                        g = 0.25098,
                        r = 0.878431,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = true,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 203,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 360,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_DrunkennessIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 10,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.470588,
                        g = 0.439216,
                        r = 0.815686,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 204,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 380,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_MedicineIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 30,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.392157,
                        g = 0.615686,
                        r = 0,
                    },
                    displayThresholds = false,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 205,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 400,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_StiffnessIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.231373,
                        g = 0.290196,
                        r = 0.960784,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 206,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 420,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_PainIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 10,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.247059,
                        g = 0.678431,
                        r = 0.909804,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 207,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 440,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 500,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_PoisonIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.407843,
                        g = 0.690196,
                        r = 0.564706,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 208,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 460,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 750,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_NoxiousExposureIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 6,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.627451,
                        g = 0.784314,
                        r = 0.721569,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 209,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 480,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1500,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_SicknessIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.258824,
                        g = 0.341176,
                        r = 0.839216,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 210,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 500,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 750,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_WetnessIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 15,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 211,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 520,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1500,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_TemperatureIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 5,
                    autoHide = false,
                    autoHideThreshold = 0.9999999999999992,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.156863,
                        g = 0.815686,
                        r = 0.941176,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 212,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 540,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1500,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_CatchAColdIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 20,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.596078,
                        g = 0.658824,
                        r = 0.564706,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 213,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 560,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 2000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_WeightIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 5,
                    autoHide = false,
                    autoHideThreshold = 1,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0,
                        g = 1,
                        r = 0,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 214,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 600,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 5000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_CalorieIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 1000,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.65,
                        r = 0.85,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 215,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 620,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 5000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_CarbohydratesIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 400,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.6,
                        r = 0.8,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 216,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 640,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 5000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_ProteinsIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 300,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.4,
                        g = 0.8,
                        r = 0.7,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 217,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 660,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 5000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_LipidsIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 400,
                    autoHide = false,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.8,
                        r = 0.9,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 218,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 680,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 5000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                MS_DirtinessIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 25,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.3,
                        g = 0.4,
                        r = 0.5,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 219,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 720,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 2000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISHygieneNeedStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 40,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.9,
                        r = 0.4,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 220,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 740,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISBathroomNeedStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 30,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.9,
                        g = 0.6,
                        r = 0.4,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 221,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 760,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISTABASBodyGrimeStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 30,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.2,
                        g = 0.45,
                        r = 0.65,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 222,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 780,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 2000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISWORCombinedStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 50,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 1,
                        g = 1,
                        r = 1,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 223,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 800,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 2000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISExcStomachStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 100,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.34,
                        g = 0.63,
                        r = 0.86,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 224,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 840,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISExcColonStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 80,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.24,
                        g = 0.44,
                        r = 0.68,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 225,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 860,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISExcUrineStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 30,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.22,
                        g = 0.82,
                        r = 0.95,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 226,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 880,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISExcSmellStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 50,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.38,
                        g = 0.8,
                        r = 0.54,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 227,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 900,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
                ISExcShameStatusIndicator = {
                    alarmEnabled = false,
                    alwaysShowValue = true,
                    animationThreshold = 50,
                    autoHide = true,
                    autoHideThreshold = 0,
                    barSize = {
                        height = 18,
                        width = 168,
                    },
                    circularSize = 48,
                    color = {
                        b = 0.76,
                        g = 0.5,
                        r = 0.84,
                    },
                    displayThresholds = true,
                    displayTooltipRight = false,
                    hidden = false,
                    iconOpacity = 1,
                    iconPosition = "left",
                    invertDirection = false,
                    isVertical = false,
                    locked = false,
                    matrixLinked = true,
                    matrixLinkOrder = 228,
                    opacity = 1,
                    position = {
                        x = 140,
                        y = 920,
                    },
                    showIcon = true,
                    showName = true,
                    style = "bar",
                    textScale = 1,
                    updateIntervalMs = 1000,
                    useGradient = true,
                    useMonoIcon = false,
                },
            },
        }

local function _MSUpdateVerticalOneRowPreset()
    local preset = MS_BundledPresets.presets["Vertical 1 Row"]
    if type(preset) ~= "table" then return end

    preset.globalSettings = preset.globalSettings or {}
    preset.globalSettings.controlPosition = { x = 120, y = 20 }
    preset.globalSettings.allIndicatorsSettings = preset.globalSettings.allIndicatorsSettings or {}
    preset.globalSettings.allIndicatorsSettings.customOrder = _MSBuildRequestedCustomOrder()
    preset.globalSettings.allIndicatorsSettings.sortMode = "original"
    preset.globalSettings.allIndicatorsSettings.visibilityMode = "all"
    preset.globalSettings.gridSettings = { enabled = true, sizeX = 5, sizeY = 10 }
    preset.globalSettings.hideOriginalMoodles = false
    preset.globalSettings.hideVanillaMoodles = false
    preset.globalSettings.matrixSettings = preset.globalSettings.matrixSettings or {}
    local matrix = preset.globalSettings.matrixSettings
    matrix.columns = 40
    matrix.deltaX = 10
    matrix.deltaY = 200
    matrix.displayThresholds = false
    matrix.height = 168
    matrix.mode = "vertical"
    matrix.width = 18
    matrix.x = 120
    matrix.y = 260
    matrix.sortDirection = "rows"

    local xPositions = {
        MS_BleedingIndicator = 145,
        MS_CarryWeightIndicator = 160,
        MS_HealthIndicator = 180,
        MS_HungerIndicator = 200,
        MS_ThirstIndicator = 220,
        MS_EnduranceIndicator = 240,
        MS_FatigueIndicator = 260,
        MS_StressIndicator = 280,
        MS_PanicIndicator = 300,
        MS_BoredomIndicator = 320,
        MS_DiscomfortIndicator = 340,
        MS_UnhappynessIndicator = 360,
        MS_AngerIndicator = 380,
        MS_DrunkennessIndicator = 400,
        MS_MedicineIndicator = 420,
        MS_StiffnessIndicator = 440,
        MS_PainIndicator = 460,
        MS_PoisonIndicator = 490,
        MS_NoxiousExposureIndicator = 510,
        MS_SicknessIndicator = 530,
        MS_WetnessIndicator = 550,
        MS_TemperatureIndicator = 570,
        MS_CatchAColdIndicator = 590,
        MS_FoodHealingIndicator = 610,
        MS_WeightIndicator = 630,
        MS_CalorieIndicator = 630,
        MS_CarbohydratesIndicator = 650,
        MS_ProteinsIndicator = 670,
        MS_LipidsIndicator = 690,
        MS_DirtinessIndicator = 710,
        ISHygieneNeedStatusIndicator = 730,
        ISBathroomNeedStatusIndicator = 750,
        ISTABASBodyGrimeStatusIndicator = 770,
        ISWORCombinedStatusIndicator = 790,
        ISExcStomachStatusIndicator = 810,
        ISExcColonStatusIndicator = 830,
        ISExcUrineStatusIndicator = 850,
        ISExcSmellStatusIndicator = 870,
        ISExcShameStatusIndicator = 890,
    }

    for _, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
        local indicator = _MSEnsureRequestedIndicator(preset, indicatorType)
        indicator.alwaysShowValue = false
        indicator.barSize = { height = 168, width = indicatorType == "MS_BleedingIndicator" and 18 or (indicatorType == "MS_CarryWeightIndicator" and 18 or 18) }
        indicator.circularSize = 48
        indicator.displayThresholds = true
        indicator.displayTooltipRight = false
        indicator.hidden = false
        indicator.iconOpacity = 1
        indicator.iconPosition = "left"
        indicator.invertDirection = false
        indicator.isVertical = true
        indicator.locked = false
        indicator.matrixLinked = false
        indicator.matrixLinkOrder = 0
        indicator.opacity = 1
        indicator.position = { x = xPositions[indicatorType] or 120, y = 90 }
        indicator.showIcon = true
        indicator.showName = true
        indicator.style = "bar"
        indicator.textScale = 1
        indicator.useGradient = false
        indicator.useMonoIcon = false
    end

    if type(preset.indicators.MS_MedicineIndicator) == "table" then
        preset.indicators.MS_MedicineIndicator.displayThresholds = false
    end
end

local function _MSBuildRequestedVertical2RowsPreset()
    local preset = _MSBundledDeepCopy(MS_BundledPresets.presets["Vertical 1 Row"] or _MSGetPresetBase())

    preset.globalSettings = preset.globalSettings or {}
    preset.globalSettings.controlPosition = { x = 120, y = 5 }
    preset.globalSettings.allIndicatorsSettings = preset.globalSettings.allIndicatorsSettings or {}
    preset.globalSettings.allIndicatorsSettings.customOrder = _MSBuildRequestedCustomOrder()
    preset.globalSettings.allIndicatorsSettings.sortMode = "custom"
    preset.globalSettings.allIndicatorsSettings.visibilityMode = "all"
    preset.globalSettings.gridSettings = { enabled = true, sizeX = 5, sizeY = 10 }
    preset.globalSettings.hideOriginalMoodles = false
    preset.globalSettings.hideVanillaMoodles = false
    preset.globalSettings.matrixSettings = preset.globalSettings.matrixSettings or {}
    local matrix = preset.globalSettings.matrixSettings
    matrix.alarmEnabled = true
    matrix.alwaysShowValue = false
    matrix.animationThreshold = 20
    matrix.autoHide = false
    matrix.autoHideThreshold = 0
    matrix.columns = 22
    matrix.deltaX = 10
    matrix.deltaY = 200
    matrix.displayThresholds = false
    matrix.height = 168
    matrix.hidden = false
    matrix.iconOpacity = 1
    matrix.iconPosition = "left"
    matrix.invertDirection = false
    matrix.keepLayoutOnRelease = false
    matrix.locked = false
    matrix.mode = "vertical"
    matrix.nextLinkOrder = 271
    matrix.opacity = 1
    matrix.showIcon = true
    matrix.showName = false
    matrix.sortDirection = "rows"
    matrix.textScale = 1
    matrix.useGradient = false
    matrix.useMonoIcon = false
    matrix.width = 10
    matrix.x = 120
    matrix.y = 470
    preset.globalSettings.multiDragMode = false
    preset.globalSettings.tooltipSettings = {
        opacity = BUNDLED_TOOLTIP_BACKGROUND_OPACITY,
        showAssociatedMoodle = true,
        showDetailedInfo = true,
        showMoodleDescription = true,
        showMoodleTitle = true,
        showName = true,
        showThresholds = true,
        showValue = true,
    }

    local layout = {
        MS_BleedingIndicator = { x = 120, y = 70, width = 18 },
        MS_CarryWeightIndicator = { x = 140, y = 70, width = 15 },
        MS_HealthIndicator = { x = 155, y = 70, width = 15 },
        MS_HungerIndicator = { x = 170, y = 70, width = 10 },
        MS_ThirstIndicator = { x = 180, y = 70, width = 10 },
        MS_EnduranceIndicator = { x = 190, y = 70, width = 10 },
        MS_FatigueIndicator = { x = 200, y = 70, width = 10 },
        MS_StressIndicator = { x = 210, y = 70, width = 10 },
        MS_PanicIndicator = { x = 220, y = 70, width = 10 },
        MS_BoredomIndicator = { x = 230, y = 70, width = 10 },
        MS_DiscomfortIndicator = { x = 240, y = 70, width = 10 },
        MS_UnhappynessIndicator = { x = 250, y = 70, width = 10 },
        MS_AngerIndicator = { x = 260, y = 70, width = 10 },
        MS_DrunkennessIndicator = { x = 270, y = 70, width = 10 },
        MS_MedicineIndicator = { x = 280, y = 70, width = 10, displayThresholds = false },
        MS_StiffnessIndicator = { x = 290, y = 70, width = 10 },
        MS_PainIndicator = { x = 300, y = 70, width = 10 },
        MS_PoisonIndicator = { x = 310, y = 70, width = 10 },
        MS_NoxiousExposureIndicator = { x = 320, y = 70, width = 10 },
        MS_SicknessIndicator = { x = 330, y = 70, width = 10 },
        MS_WetnessIndicator = { x = 340, y = 70, width = 10 },
        MS_TemperatureIndicator = { x = 120, y = 260, width = 15 },
        MS_CatchAColdIndicator = { x = 135, y = 260, width = 10 },
        MS_WeightIndicator = { x = 145, y = 260, width = 15 },
        MS_CalorieIndicator = { x = 160, y = 260, width = 10 },
        MS_CarbohydratesIndicator = { x = 170, y = 260, width = 10 },
        MS_ProteinsIndicator = { x = 180, y = 260, width = 10 },
        MS_LipidsIndicator = { x = 190, y = 260, width = 10 },
        MS_DirtinessIndicator = { x = 200, y = 260, width = 10 },
        ISHygieneNeedStatusIndicator = { x = 210, y = 260, width = 10 },
        ISBathroomNeedStatusIndicator = { x = 220, y = 260, width = 10 },
        ISTABASBodyGrimeStatusIndicator = { x = 230, y = 260, width = 10 },
        ISWORCombinedStatusIndicator = { x = 240, y = 260, width = 10 },
        ISExcStomachStatusIndicator = { x = 250, y = 260, width = 10 },
        ISExcColonStatusIndicator = { x = 260, y = 260, width = 10 },
        ISExcUrineStatusIndicator = { x = 270, y = 260, width = 10 },
        ISExcSmellStatusIndicator = { x = 280, y = 260, width = 10 },
        ISExcShameStatusIndicator = { x = 290, y = 260, width = 10 },
    }

    for indicatorType, item in pairs(layout) do
        local indicator = _MSEnsureRequestedIndicator(preset, indicatorType)
        indicator.position = { x = item.x, y = item.y }
        indicator.style = "bar"
        indicator.isVertical = true
        indicator.barSize = { height = 168, width = item.width or 10 }
        indicator.displayThresholds = item.displayThresholds ~= false
        indicator.locked = false
        indicator.matrixLinked = false
        indicator.matrixLinkOrder = 0
        indicator.hidden = false
        indicator.alwaysShowValue = false
        indicator.showIcon = true
        indicator.showName = true
        indicator.useGradient = false
        indicator.useMonoIcon = false
        indicator.invertDirection = false
    end

    return preset
end

_MSUpdateVerticalOneRowPreset()
MS_BundledPresets.presets["Horizontal 1 Column"] = _MSBuildRequestedHorizontalOneColumnPreset(168, 22, "standard")
MS_BundledPresets.presets["Horizontal 1 Wide Column InvertReserves"] = _MSBuildRequestedHorizontalOneColumnPreset(240, 20, "invertReserves")
MS_BundledPresets.presets["Horizontal 1 Wide Column InvertRisks"] = _MSBuildRequestedHorizontalOneColumnPreset(240, 20, "invertRisks")

MS_BundledPresets.presets["Vertical 2 Rows"] = _MSBuildRequestedVertical2RowsPreset()



local function _MSApplyBundledRequestedOrderAndMissingIndicators(preset, presetName)
    if type(preset) ~= "table" then return end
    preset.globalSettings = preset.globalSettings or {}
    preset.globalSettings.allIndicatorsSettings = preset.globalSettings.allIndicatorsSettings or {}
    preset.globalSettings.allIndicatorsSettings.customOrder = _MSBuildRequestedCustomOrder()

    preset.indicators = preset.indicators or {}
    local name = tostring(presetName or "")
    local isCircular = string.find(name, "Circular", 1, true) ~= nil
    local isVerticalOne = name == "Vertical 1 Row"
    local isVerticalTwo = name == "Vertical 2 Rows"
    local isHorizontal = string.find(name, "Horizontal", 1, true) ~= nil or string.find(name, "HorizMatrix", 1, true) ~= nil

    for index, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
        local indicator = _MSEnsureRequestedIndicator(preset, indicatorType)
        indicator.hidden = indicator.hidden == true and true or false
        indicator.locked = indicator.locked == true
        indicator.matrixLinkOrder = indicator.matrixLinked == true and (190 + index) or (indicator.matrixLinkOrder or 0)

        if isCircular then
            local zero = index - 1
            indicator.style = "circular"
            indicator.circularSize = indicator.circularSize or 48
            indicator.position = { x = 120 + ((zero % 5) * 60), y = 120 + (math.floor(zero / 5) * 60) }
        elseif isVerticalTwo then
            local zero = index - 1
            local row = zero < 23 and 0 or 1
            local col = row == 0 and zero or (zero - 23)
            indicator.style = "bar"
            indicator.isVertical = true
            indicator.barSize = { height = 168, width = indicatorType == "MS_BleedingIndicator" and 18 or 12 }
            indicator.position = { x = 120 + (col * 10), y = row == 0 and 70 or 260 }
        elseif isVerticalOne then
            indicator.style = "bar"
            indicator.isVertical = true
            indicator.barSize = { height = 168, width = 22 }
            indicator.position = { x = 145 + ((index - 1) * 20), y = 90 }
        elseif isHorizontal then
            indicator.style = "bar"
            indicator.isVertical = false
            indicator.barSize = indicator.barSize or { height = 18, width = 168 }
            indicator.position = { x = indicator.position and indicator.position.x or 140, y = 80 + ((index - 1) * 20) }
        elseif not indicator.position then
            local zero = index - 1
            indicator.position = { x = 120 + ((zero % 5) * 60), y = 120 + (math.floor(zero / 5) * 60) }
        end

        if indicatorType == "ISNCDigestiveEffectsStatusIndicator" then
            indicator.displayThresholds = false
        elseif indicator.displayThresholds == nil then
            indicator.displayThresholds = true
        end
    end
end

for presetName, preset in pairs(MS_BundledPresets.presets or {}) do
    _MSApplyBundledRequestedOrderAndMissingIndicators(preset, presetName)
    _MSEnsureBundledBleedingIndicator(preset)
    _MSApplyBundledGlobalDefaults(preset)
    _MSApplyBundledIndicatorUpdateIntervals(preset)
    _MSApplyBundledIndicatorThresholds(preset)
    _MSApplyBundledIndicatorBaseColors(preset)
end


local function _MSApplyBundledPresetSpecificLayoutFixes()
    local nutritionKeepVisible = {
        MS_HungerIndicator = true,
        MS_ThirstIndicator = true,
        MS_WeightIndicator = true,
        MS_CalorieIndicator = true,
        MS_CarbohydratesIndicator = true,
        MS_ProteinsIndicator = true,
        MS_LipidsIndicator = true,
    }

    local matrixPreset = MS_BundledPresets.presets["HorizMatrix - AutoHide (NotNutrition) - FillHiddenGaps"]
    if type(matrixPreset) == "table" and type(matrixPreset.indicators) == "table" then
        matrixPreset.globalSettings = matrixPreset.globalSettings or {}
        matrixPreset.globalSettings.matrixSettings = matrixPreset.globalSettings.matrixSettings or {}
        local matrix = matrixPreset.globalSettings.matrixSettings
        matrix.height = 32
        matrix.deltaY = 28
        matrix.compactHiddenIndicators = true
        matrix.autoHide = false
        matrix.autoHideThreshold = 0
        for _, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
            local indicator = _MSEnsureRequestedIndicator(matrixPreset, indicatorType)
            indicator.autoHide = nutritionKeepVisible[indicatorType] ~= true
            if nutritionKeepVisible[indicatorType] == true then
                indicator.autoHideThreshold = indicator.autoHideThreshold or 0
            end
            indicator.matrixLinked = true
            indicator.matrixLinkOrder = 190 + (_ or 0)
            indicator.locked = false
        end
    end

    local function applyHorizontalCompactPattern(preset, widthFallback)
        if type(preset) ~= "table" or type(preset.indicators) ~= "table" then
            return
        end

        -- Keep horizontal one-column presets compact by using a 22 px bar height
        -- with 20 px Y steps. This intentionally overlaps only the borders.
        for index, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
            local indicator = preset.indicators[indicatorType]
            if type(indicator) == "table" then
                indicator.style = "bar"
                indicator.isVertical = false
                indicator.barSize = indicator.barSize or {}
                indicator.barSize.height = 22
                indicator.barSize.width = indicator.barSize.width or widthFallback or 168
                indicator.position = indicator.position or {}
                indicator.position.x = 140
                indicator.position.y = 80 + ((index - 1) * 20)
                indicator.locked = false
            end
        end
    end

    local horizontal = MS_BundledPresets.presets["Horizontal 1 Column"]
    applyHorizontalCompactPattern(horizontal, 168)

    local invertReserves = MS_BundledPresets.presets["Horizontal 1 Wide Column InvertReserves"]
    applyHorizontalCompactPattern(invertReserves, 240)

    local invertRisks = MS_BundledPresets.presets["Horizontal 1 Wide Column InvertRisks"]
    applyHorizontalCompactPattern(invertRisks, 240)
    if type(invertRisks) == "table" and type(invertRisks.indicators) == "table" then
        local extraInvert = {
            MS_WindchillIndicator = true,
            ISWindchillStatusIndicator = true,
            ISNCBladderStatusIndicator = true,
            ISNCBowelStatusIndicator = true,
            ISNCSoilageStatusIndicator = true,
            ISNCDigestiveEffectsStatusIndicator = true,
        }
        for indicatorType, _ in pairs(extraInvert) do
            local indicator = invertRisks.indicators[indicatorType]
            if type(indicator) == "table" then
                indicator.invertDirection = true
            end
        end
    end

    local verticalOne = MS_BundledPresets.presets["Vertical 1 Row"]
    if type(verticalOne) == "table" and type(verticalOne.indicators) == "table" then
        for _, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
            local indicator = verticalOne.indicators[indicatorType]
            if type(indicator) == "table" then
                indicator.barSize = indicator.barSize or {}
                indicator.barSize.width = 22
                indicator.position = indicator.position or { x = 145 + ((_ - 1) * 20), y = 90 }
                indicator.position.x = 145 + ((_ - 1) * 20)
                indicator.locked = false
            end
        end
    end

    local verticalTwo = MS_BundledPresets.presets["Vertical 2 Rows"]
    if type(verticalTwo) == "table" and type(verticalTwo.indicators) == "table" then
        for _, indicatorType in ipairs(MS_BUNDLED_REQUESTED_ORDER) do
            local indicator = verticalTwo.indicators[indicatorType]
            if type(indicator) == "table" then
                indicator.barSize = indicator.barSize or {}
                indicator.barSize.width = indicatorType == "MS_BleedingIndicator" and 18 or 12
                indicator.locked = false
            end
        end
    end
end

_MSApplyBundledPresetSpecificLayoutFixes()
