// Token: 0x06002928 RID: 10536 RVA: 0x00157888 File Offset: 0x00155A88
 public static void updateUpsellScreen()
 {
     if (Upsell.anm_progress != -1)
     {
         Upsell.anm_progress += 25;
         if (Upsell.anm_progress > 255)
         {
             Upsell.anm_progress = 255;
         }
         if (Upsell.anm_progress < -1)
         {
             Upsell.anm_progress += 25;
             if (Upsell.anm_progress > -50)
             {
                 Upsell.anm_progress = -1;
             }
         }
     }
     if (Upsell.wasUpsell && !Guide.IsVisible && !XBOXLive.isTrial(true))
     {
         Upsell.disposeUpsellScreen();
         if (Upsell.buy_scr_work != null)
         {
             Upsell.buy_scr_work.result[0] = 0;
             AppMain.DmSndBgmPlayerPlayBgm(0);
             return;
         }
         AppMain.event_after_buy = true;
         AppMain.SyDecideEvtCase(1);
         AppMain.SyChangeNextEvt();
     }
 }
Пример #2
0
 // Token: 0x06002886 RID: 10374 RVA: 0x001532AA File Offset: 0x001514AA
 public static void showGuide()
 {
     if (XBOXLive.isTrial() && !Guide.IsVisible)
     {
         Guide.ShowMarketplace(PlayerIndex.One);
     }
 }
Пример #3
0
 public static void updateUpsellScreen()
 {
     if (Upsell.anm_progress != -1)
     {
         Upsell.anm_progress += 25;
         if (Upsell.anm_progress > (int)byte.MaxValue)
         {
             Upsell.anm_progress = (int)byte.MaxValue;
         }
         if (Upsell.anm_progress < -1)
         {
             Upsell.anm_progress += 25;
             if (Upsell.anm_progress > -50)
             {
                 Upsell.anm_progress = -1;
             }
         }
     }
     if (!Upsell.wasUpsell || XBOXLive.isTrial(true))
     {
         return;
     }
     Upsell.disposeUpsellScreen();
     if (Upsell.buy_scr_work != null)
     {
         Upsell.buy_scr_work.result[0] = 0;
         AppMain.DmSndBgmPlayerPlayBgm(0);
     }
     else
     {
         AppMain.event_after_buy = true;
         AppMain.SyDecideEvtCase((short)1);
         AppMain.SyChangeNextEvt();
     }
 }
Пример #4
0
 public static void showGuide()
 {
     if (!XBOXLive.isTrial())
     {
         return;
     }
     //Guide.ShowMarketplace(PlayerIndex.One);
 }
Пример #5
0
 private void enterEfct()
 {
     if (30UL >= this.GetCount())
     {
         return;
     }
     if (this.m_result[0] == 0)
     {
         XBOXLive.showGuide();
         XBOXLive.isTrial(true);
         this.fadeOutStart();
     }
     else
     {
         this.fadeOutStart();
     }
 }
Пример #6
0
 // Token: 0x06002065 RID: 8293 RVA: 0x0013E4CA File Offset: 0x0013C6CA
 private void enterEfct()
 {
     if (30UL < base.GetCount())
     {
         if (this.m_result[0] == 0)
         {
             XBOXLive.showGuide();
             if (!Guide.IsVisible)
             {
                 XBOXLive.isTrial(true);
                 this.fadeOutStart();
                 return;
             }
         }
         else
         {
             this.fadeOutStart();
         }
     }
 }
Пример #7
0
 public LiveFeature()
 {
     try
     {
         XBOXLive.signinStatus = XBOXLive.SigninStatus.SigningIn;
         XBOXLive.isTrial(true);
         for (int index = 0; index < 48; ++index)
         {
             this.hiScoresTables[index] = new LiveFeature.HISCORE_ENTRY[0];
             this.l_status[index]       = LiveFeature.LBStatus.NotRead;
         }
     }
     //catch (GameUpdateRequiredException ex)
     //{
     //    XBOXLive.HandleGameUpdateRequired(ex);
     //}
     catch (Exception ex)
     {
         XBOXLive.signinStatus = XBOXLive.SigninStatus.Error;
     }
     LiveFeature.instance  = this;
     XBOXLive.instanceXBOX = (XBOXLive)this;
 }
    // Token: 0x06002927 RID: 10535 RVA: 0x00157530 File Offset: 0x00155730
    public static bool inputUpsellScreen()
    {
        if (!Upsell.showUpsell)
        {
            return(false);
        }
        Upsell.pressed_button = -1;
        bool flag = GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed;

        if (flag)
        {
            if (Upsell.anm_progress != -1)
            {
                Upsell.anm_progress = -1;
                return(true);
            }
            Upsell.disposeUpsellScreen();
            if (Upsell.buy_scr_work != null)
            {
                Upsell.buy_scr_work.result[0] = 2;
                AppMain.DmSndBgmPlayerPlayBgm(0);
            }
            else
            {
                AppMain.SyDecideEvtCase(1);
                AppMain.SyChangeNextEvt();
            }
            return(true);
        }
        else
        {
            TouchCollection state = TouchPanel.GetState();
            if (state.Count == 0)
            {
                if (Upsell.px == 0 && Upsell.py == 0)
                {
                    return(true);
                }
                Upsell.curState = 1;
                Upsell.cx       = Upsell.px;
                Upsell.cy       = Upsell.py;
                Upsell.px       = 0;
                Upsell.py       = 0;
            }
            else
            {
                TouchLocation touchLocation = state[0];
                if (touchLocation.State == TouchLocationState.Pressed || touchLocation.State == TouchLocationState.Moved)
                {
                    Upsell.curState = 0;
                    Upsell.cx       = (int)touchLocation.Position.X;
                    Upsell.cy       = (int)touchLocation.Position.Y;
                }
                if (touchLocation.State == TouchLocationState.Released || touchLocation.State == TouchLocationState.Invalid)
                {
                    Upsell.curState = 1;
                    Upsell.cx       = Upsell.px;
                    Upsell.cy       = Upsell.py;
                    Upsell.px       = 0;
                    Upsell.py       = 0;
                }
            }
            Upsell.hl_buttons[0] = false;
            Upsell.hl_buttons[1] = false;
            if (Upsell.anm_progress > 100)
            {
                Upsell.anm_progress = -Upsell.anm_progress;
                Upsell.curState     = 1;
                Upsell.cx           = Upsell.px;
                Upsell.cy           = Upsell.py;
                Upsell.px           = 0;
                Upsell.py           = 0;
                return(true);
            }
            if (Upsell.anm_progress != -1)
            {
                return(true);
            }
            for (int i = 0; i < 5; i++)
            {
                if (Upsell.rects[i].Contains(Upsell.cx, Upsell.cy))
                {
                    Upsell.pressed_button = i;
                    break;
                }
            }
            switch (Upsell.pressed_button)
            {
            case 0:
                if (Upsell.curState == 0)
                {
                    Upsell.hl_buttons[0] = true;
                }
                else
                {
                    Upsell.disposeUpsellScreen();
                    if (Upsell.buy_scr_work != null)
                    {
                        Upsell.buy_scr_work.result[0] = 2;
                        AppMain.DmSndBgmPlayerPlayBgm(0);
                    }
                    else
                    {
                        AppMain.SyDecideEvtCase(1);
                        AppMain.SyChangeNextEvt();
                    }
                }
                break;

            case 1:
                if (Upsell.curState == 0)
                {
                    Upsell.hl_buttons[1] = true;
                }
                else
                {
                    Upsell.wasUpsell = true;
                    XBOXLive.showGuide();
                }
                break;

            case 2:
                if (Upsell.curState == 1)
                {
                    Upsell.ss_num--;
                    if (Upsell.ss_num < 1)
                    {
                        Upsell.ss_num = 5;
                    }
                    Upsell.screenshot.Dispose();
                    Upsell.screenshot = Texture2D.FromStream(LiveFeature.GAME.GraphicsDevice, TitleContainer.OpenStream("Content\\UPSELL\\s4us_ss_" + Upsell.ss_num + ".png"));
                }
                break;

            case 3:
                if (Upsell.curState == 1)
                {
                    Upsell.ss_num++;
                    if (Upsell.ss_num >= 5)
                    {
                        Upsell.ss_num = 1;
                    }
                    Upsell.screenshot.Dispose();
                    Upsell.screenshot = Texture2D.FromStream(LiveFeature.GAME.GraphicsDevice, TitleContainer.OpenStream("Content\\UPSELL\\s4us_ss_" + Upsell.ss_num + ".png"));
                }
                break;

            case 4:
                if (Upsell.curState == 0)
                {
                    Upsell.anm_progress = 0;
                }
                break;
            }
            if (Upsell.curState == 0)
            {
                Upsell.px = Upsell.cx;
                Upsell.py = Upsell.cy;
            }
            else
            {
                Upsell.curState = -1;
            }
            return(true);
        }
    }
Пример #9
0
 public static bool GsTrialIsTrial()
 {
     return(XBOXLive.isTrial());
 }