void InitOverlays()
 {
     LeftPanel = InstantiateChild <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(8f, 41f, 486f, 587f)
     }, 100000);
     LeftPanel.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.box.normal.background));
     RightPanel = InstantiateChild <LMS_GuiBaseBox2D>(new LMS_GuiConfig()
     {
         Rect = new Rect(197f, 41f, 705f, 587f)
     }, 100000);
     RightPanel.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.box.normal.background));
 }
    void InitButtonDefault(LMS_GuiBaseButton b, string text, string title, int textSize = 15, LMS_GuiBaseButton.ClickCallbackDelegate onClick = null)
    {
        b.SetTexture((int)E_Texture.DOWN, m_Skin.button.active.background);
        b.SetTexture((int)E_Texture.IDLE, LMS_GuiBaseUtils.NextGrade(m_Skin.button.normal.background));
        b.BlendMode = E_BlendMode.NORMAL;
        if (onClick != null)
        {
            b.OnClick += onClick;
        }
        LMS_GuiViewSelection sel = new LMS_GuiViewSelection
        {
            Text            = text,
            Title           = "<size=" + textSize + ">" + title + "</size>",
            CollectionIndex = SelectionIndex.Values.Count
        };

        SelectionIndex[sel.CollectionIndex] = new KeyValuePair <LMS_GuiView, LMS_GuiBaseButton>(sel, b);
    }