Exemplo n.º 1
0
    public static CommandLayoutManagerLayoutVisible VISIBLE_LAYOUT_DELAY(SceneProcedure procedure, float delayTime, LAYOUT_TYPE type, bool visible, bool immediately = false, string param = "")
    {
        CommandLayoutManagerLayoutVisible cmd = mCommandSystem.newCmd <CommandLayoutManagerLayoutVisible>(true, true);

        cmd.mLayoutType  = type;
        cmd.mForce       = false;
        cmd.mVisibility  = visible;
        cmd.mImmediately = immediately;
        cmd.mParam       = param;
        mCommandSystem.pushDelayCommand(cmd, mLayoutManager, delayTime);
        procedure.addDelayCmd(cmd);
        return(cmd);
    }
Exemplo n.º 2
0
    public static CommandLayoutManagerLayoutVisible VISIBLE_LAYOUT_DELAY_EX(SceneProcedure procedure, float delayTime, LAYOUT_TYPE type, bool visible, CommandCallback start, bool immediately = false, string param = "")
    {
        CommandLayoutManagerLayoutVisible cmd = newCmd(out cmd, true, true);

        cmd.mLayoutType  = type;
        cmd.mForce       = false;
        cmd.mVisibility  = visible;
        cmd.mImmediately = immediately;
        cmd.mParam       = param;
        cmd.addStartCommandCallback(start);
        pushDelayCommand(cmd, mLayoutManager, delayTime);
        if (procedure != null)
        {
            procedure.addDelayCmd(cmd);
        }
        return(cmd);
    }