/// <summary>
    /// Update the style of the map system
    /// </summary>
    /// <param name="theIndex"></param>
    void UpdateStyle(int theIndex)
    {
        MapSystemStyle aStyle = itsStyles[theIndex];

        KGFMapSystem aMapSystem = KGFAccessor.GetObject <KGFMapSystem>();

        if (aMapSystem != null)
        {
            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsBackground     = aStyle.itsBackgroundMap;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsBackground = aStyle.itsBackgroundMinimap;

            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsButton      = aStyle.itsButton;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsButtonHover = aStyle.itsButtonHover;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsButtonDown  = aStyle.itsButtonDown;

            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsButton      = aStyle.itsButton;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsButtonHover = aStyle.itsButtonHover;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsButtonDown  = aStyle.itsButtonDown;


            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsIconZoomIn     = aStyle.itsButtonZoomIn;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsIconZoomOut    = aStyle.itsButtonZoomOut;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsIconFullscreen = aStyle.itsButtonMap;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsIconZoomLock   = aStyle.itsButtonLock;
            aMapSystem.itsDataModuleMinimap.itsGlobalSettings.itsColorMap          = aStyle.itsColorMap;

            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsIconZoomIn     = aStyle.itsButtonZoomIn;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsIconZoomOut    = aStyle.itsButtonZoomOut;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsIconFullscreen = aStyle.itsButtonMap;
            aMapSystem.itsDataModuleMinimap.itsAppearanceMap.itsIconZoomLock   = aStyle.itsButtonLock;

            aMapSystem.SetMask(aStyle.itsMinimapMask, aStyle.itsMapMask);
            aMapSystem.itsDataModuleMinimap.itsAppearanceMiniMap.itsButtonPadding = aStyle.itsPaddingButtons;
            aMapSystem.itsDataModuleMinimap.itsGlobalSettings.itsColorAll         = aStyle.itsColorAll;

            aMapSystem.itsDataModuleMinimap.itsViewport.itsColor = aStyle.itsViewportColor;

            aMapSystem.itsDataModuleMinimap.itsToolTip.itsTextureBackground = aStyle.itsBackgroundTooltip;

            aMapSystem.UpdateStyles();
        }

//		itsGuiStyle = new GUIStyle();
//		itsGuiStyle.normal.background = aStyle.itsButton;
//		itsGuiStyle.hover.background = aStyle.itsButtonHover;
//		itsGuiStyle.active.background = aStyle.itsButtonDown;
    }