Exemplo n.º 1
0
    public static void Init(CE_WSB_Dialogue _ce, SerializedProperty _text, int _index)
    {
        if (popup)
        {
            popup.Close();
        }
        property = _text;
        index    = _index;
        ce       = _ce;
        popup    = ScriptableObject.CreateInstance <ColorPopup>();
        Vector2 _pos = GUIUtility.GUIToScreenPoint(Event.current.mousePosition);

        popup.position = new Rect(_pos.x, _pos.y, 100, 75);
        popup.ShowPopup();
    }