Exemplo n.º 1
0
 private static int GmBsCmnUpdateFlashScreen(AppMain.GMS_CMN_FLASH_SCR_WORK flash_work)
 {
     AppMain.NNS_RGBA_U8 end_color   = new AppMain.NNS_RGBA_U8((byte)0, (byte)0, (byte)0, (byte)0);
     AppMain.NNS_RGBA_U8 start_color = new AppMain.NNS_RGBA_U8(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue);
     if (flash_work.active_flag == 0U)
     {
         return(1);
     }
     if (AppMain.GmBsCmnUpdateScreenFadingColor(flash_work.fade_obj_work) != 0)
     {
         if (((int)flash_work.active_flag & 1) != 0)
         {
             if ((double)flash_work.duration_timer > 0.0)
             {
                 --flash_work.duration_timer;
             }
             else
             {
                 flash_work.active_flag &= 4294967294U;
                 AppMain.GmBsCmnClearScreenFadingColor(flash_work.fade_obj_work);
                 flash_work.fade_obj_work = AppMain.GmBsCmnInitScreenFadingColor(start_color, end_color, flash_work.fi_frame);
             }
         }
         else if (((int)flash_work.active_flag & 2) != 0)
         {
             AppMain.GmBsCmnClearScreenFadingColor(flash_work.fade_obj_work);
             flash_work.fade_obj_work = (AppMain.GMS_FADE_OBJ_WORK)null;
             flash_work.active_flag  &= 4294967293U;
         }
     }
     return(0);
 }
Exemplo n.º 2
0
 private static AppMain.GMS_FADE_OBJ_WORK GmBsCmnInitScreenFadingColor(
     AppMain.NNS_RGBA_U8 start_color,
     AppMain.NNS_RGBA_U8 end_color,
     float frame)
 {
     AppMain.GMS_FADE_OBJ_WORK fadeObj = AppMain.GmFadeCreateFadeObj((ushort)6656, (byte)3, (byte)0, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_FADE_OBJ_WORK()), (ushort)61439, 10U);
     AppMain.GmFadeSetFade(fadeObj, 0U, start_color.r, start_color.g, start_color.b, start_color.a, end_color.r, end_color.g, end_color.b, end_color.a, frame, 0, 0);
     return(fadeObj);
 }
Exemplo n.º 3
0
 private static void dmTitleOpFallShaderPreRenderUserFunc(object data)
 {
     AppMain.NNS_RGBA_U8       color  = new AppMain.NNS_RGBA_U8((byte)0, (byte)0, (byte)0, byte.MaxValue);
     AppMain.AMS_RENDER_TARGET target = AppMain._am_render_manager.targetp != AppMain._gm_mapFar_render_work ? AppMain._gm_mapFar_render_work : AppMain._am_draw_target;
     if (target.width == 0)
     {
         return;
     }
     AppMain.amRenderCopyTarget(target, color);
 }
Exemplo n.º 4
0
 private static void GmBsCmnInitFlashScreen(
     AppMain.GMS_CMN_FLASH_SCR_WORK flash_work,
     float fo_frame,
     float duration_frame,
     float fi_frame)
 {
     AppMain.NNS_RGBA_U8 start_color = new AppMain.NNS_RGBA_U8((byte)0, (byte)0, (byte)0, (byte)0);
     AppMain.NNS_RGBA_U8 end_color   = new AppMain.NNS_RGBA_U8(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue);
     flash_work.Clear();
     flash_work.active_flag   |= 3U;
     flash_work.fi_frame       = fi_frame;
     flash_work.duration_timer = duration_frame;
     flash_work.fade_obj_work  = AppMain.GmBsCmnInitScreenFadingColor(start_color, end_color, fo_frame);
 }
Exemplo n.º 5
0
 private static void gmWaterSurfaceTcbProcPreDrawDT(object data)
 {
     AppMain.AMS_RENDER_TARGET target = AppMain._am_render_manager.targetp != AppMain._gm_mapFar_render_work ? AppMain._gm_mapFar_render_work : AppMain._am_draw_target;
     if (target.width == 0)
     {
         return;
     }
     AppMain.amDrawEndScene();
     AppMain.NNS_RGBA_U8 color = new AppMain.NNS_RGBA_U8((byte)0, (byte)0, (byte)0, byte.MaxValue);
     AppMain.amRenderCopyTarget(target, color);
     AppMain.GMS_WATER_SURFACE_MGR mgr = AppMain.gmWaterSurfaceGetMgr();
     if (mgr == null)
     {
         return;
     }
     mgr.render_target = target;
 }
Exemplo n.º 6
0
 // Token: 0x060018DF RID: 6367 RVA: 0x000E2B60 File Offset: 0x000E0D60
 private static void dmTitleOpFallShaderPreRenderUserFunc(object data)
 {
     AppMain.NNS_RGBA_U8       color             = new AppMain.NNS_RGBA_U8(0, 0, 0, byte.MaxValue);
     AppMain.AMS_RENDER_TARGET ams_RENDER_TARGET = AppMain._am_render_manager.targetp;
     if (ams_RENDER_TARGET == AppMain._gm_mapFar_render_work)
     {
         ams_RENDER_TARGET = AppMain._am_draw_target;
     }
     else
     {
         ams_RENDER_TARGET = AppMain._gm_mapFar_render_work;
     }
     if (ams_RENDER_TARGET.width == 0)
     {
         return;
     }
     AppMain.amRenderCopyTarget(ams_RENDER_TARGET, color);
 }
 // Token: 0x06001185 RID: 4485 RVA: 0x00099484 File Offset: 0x00097684
 private static void gmWaterSurfaceTcbProcPreDrawDT(object data)
 {
     AppMain.AMS_RENDER_TARGET ams_RENDER_TARGET = AppMain._am_render_manager.targetp;
     if (ams_RENDER_TARGET == AppMain._gm_mapFar_render_work)
     {
         ams_RENDER_TARGET = AppMain._am_draw_target;
     }
     else
     {
         ams_RENDER_TARGET = AppMain._gm_mapFar_render_work;
     }
     if (ams_RENDER_TARGET.width == 0)
     {
         return;
     }
     AppMain.amDrawEndScene();
     AppMain.NNS_RGBA_U8 color = new AppMain.NNS_RGBA_U8(0, 0, 0, byte.MaxValue);
     AppMain.amRenderCopyTarget(ams_RENDER_TARGET, color);
     AppMain.GMS_WATER_SURFACE_MGR gms_WATER_SURFACE_MGR = AppMain.gmWaterSurfaceGetMgr();
     if (gms_WATER_SURFACE_MGR != null)
     {
         gms_WATER_SURFACE_MGR.render_target = ams_RENDER_TARGET;
     }
 }
 // Token: 0x06000F5A RID: 3930 RVA: 0x00087E2C File Offset: 0x0008602C
 private static void amRenderCopyTarget(AppMain.AMS_RENDER_TARGET target, AppMain.NNS_RGBA_U8 color)
 {
 }
 // Token: 0x06000F58 RID: 3928 RVA: 0x00087E27 File Offset: 0x00086027
 private static AppMain.AMS_RENDER_TARGET amRenderSetTarget(AppMain.AMS_RENDER_TARGET target, uint flag, AppMain.NNS_RGBA_U8 color, float z, int stencil)
 {
     return(null);
 }
 // Token: 0x06000F56 RID: 3926 RVA: 0x00087E07 File Offset: 0x00086007
 private static AppMain.AMS_RENDER_TARGET amRenderSetTarget(AppMain.AMS_RENDER_TARGET target, uint flag, AppMain.NNS_RGBA_U8 color)
 {
     return(AppMain.amRenderSetTarget(target, flag, color, 1f, 0));
 }