Ejemplo n.º 1
0
 public void onShow(bool immediately, float delay)
 {
     if (immediately)
     {
         mHideDone = false;
         LayoutTools.ACTIVE_WINDOW(mRole);
         mRole.stop();
         mRole.setCurFrameIndex(mRole.getTextureFrameCount() - 1);
     }
     else
     {
         LayoutTools.ACTIVE_WINDOW_DELAY_EX(mScript, mRole, true, delay, onRoleShow);
     }
 }
Ejemplo n.º 2
0
    public override void onShow(bool immediately, string param)
    {
        LayoutTools.ACTIVE_WINDOW(mSelectionRoleTitle);
        mSelectionRoleTitle.stop();
        if (immediately)
        {
            mSelectionRoleTitle.setCurFrameIndex(mSelectionRoleTitle.getTextureFrameCount() - 1);
            showDone();
        }
        else
        {
            mSelectionRoleTitle.play();
        }
        int count = mRoleSelectionList.Count;

        for (int i = 0; i < count; ++i)
        {
            mRoleSelectionList[i].onShow(immediately, immediately ? 0.0f : i * 0.2f);
        }
    }