Exemplo n.º 1
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public bool Show(string rootPath, INTENT paramIntent, FSFilter paramFilter, OnButon onButon)
    {
        if (gameObject.activeSelf == false)
        {
            m_rootPath = rootPath;

            m_onButon = onButon;

            intent = paramIntent;

            filter = (paramFilter != null) ? paramFilter.byval : new FSFilter(FSFilter.LOD.FILE, FSFilter.LOD.FILE, "*");

            m_curFilter = filter.pattern;

            InitInputFields();

            UpdateTitle();


            m_fade.Begin(FADE_TYPE.FADE_IN, FADE_IN_DURATION, OnFadeFinished);

            Update();


            gameObject.SetActive(true);

            EnableButons(false);

            return(true);
        }

        return(false);
    }
Exemplo n.º 2
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public bool Show(OnButon onButon, Localizable target)
    {
        if ((gameObject.activeSelf == false) && (target != null))
        {
            m_onButon = onButon;

            BuildSitesList(target);

            ReflectTarget(target);


            m_fade.Begin(FADE_TYPE.FADE_IN, FADE_IN_DURATION, OnFadeFinished);

            Update();


            gameObject.SetActive(true);

            EnableButons(0);

            return(true);
        }

        return(false);
    }
Exemplo n.º 3
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public bool Show(OnButon onButon, string[] header)
    {
        if ((gameObject.activeSelf == false) && (header != null))
        {
            m_header = header;

            m_onButon = onButon;

            m_options.ResetToDefault();

            ConfigureDropDownLists();

            ReflectOptions();


            m_fade.Begin(FADE_TYPE.FADE_IN, FADE_IN_DURATION, OnFadeFinished);

            Update();


            gameObject.SetActive(true);

            EnableButons(BUTON_FLAG.F_NONE);

            return(true);
        }

        return(false);
    }
Exemplo n.º 4
0
 public void OnOK()
 {
     if (m_onButon != null)
     {
         m_onButon(this, BUTON.OK); m_onButon = null;
     }
     gameObject.SetActive(false);
 }
Exemplo n.º 5
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public void OnDELETE()
    {
        DeleteTarget();    if (m_onButon != null)
        {
            m_onButon(this, BUTON.DELETE); m_onButon = null;
        }
        gameObject.SetActive(false);
    }
Exemplo n.º 6
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public bool Show(OnButon onButon, Color color)
    {
        if (gameObject.activeSelf == false)
        {
            m_onButon = onButon;

            DecomposeColor(color);


            m_fade.Begin(FADE_TYPE.FADE_IN, FADE_IN_DURATION, null);

            Update();

            gameObject.SetActive(true);

            return(true);
        }

        return(false);
    }
Exemplo n.º 7
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public bool Show(OnButon onButon, Options options)
    {
        if ((gameObject.activeSelf == false) && (options != null))
        {
            m_onButon = onButon;

            ReflectOptions(options);


            m_fade.Begin(FADE_TYPE.FADE_IN, FADE_IN_DURATION, OnFadeFinished);

            Update();


            gameObject.SetActive(true);

            EnableButons(0);

            return(true);
        }

        return(false);
    }