Ejemplo n.º 1
0
 private static void gmFixRingCountPartProcDispMain(AppMain.GMS_FIX_PART_WORK part_work)
 {
     AppMain.GMS_FIX_PART_RINGCOUNT part_ringcount = (AppMain.GMS_FIX_PART_RINGCOUNT)part_work;
     if (((int)part_work.flag & 4) != 0)
     {
         if (AppMain.gmFixUpdateBlink(part_work))
         {
             part_work.flag &= 4294967287U;
         }
         else
         {
             part_work.flag |= 8U;
         }
     }
     else
     {
         part_work.flag &= 4294967287U;
     }
     if (((int)part_work.flag & 8) != 0)
     {
         AppMain.gmFixRingCountPartSetDispDigits(part_ringcount, false);
     }
     else
     {
         AppMain.gmFixRingCountPartSetDispDigits(part_ringcount, true);
     }
     AppMain.gmFixRingCountPartUpdateActionDigitsType(part_ringcount);
 }
Ejemplo n.º 2
0
 private static void gmFixRingCountPartUpdateActionDigitsType(
     AppMain.GMS_FIX_PART_RINGCOUNT part_ringcount)
 {
     for (int index = 0; index < 3; ++index)
     {
         AppMain.gmFixSetFrameStatic((AppMain.OBS_OBJECT_WORK)part_ringcount.sub_parts[AppMain.gm_fix_part_ring_count_digit_subpart_idx_tbl[index]], AppMain.gm_fix_part_ring_count_digit_type_frame_tbl[part_ringcount.digit_list[index]]);
     }
 }
Ejemplo n.º 3
0
    private static void gmFixRingCountPartUpdateDigitList(
        AppMain.GMS_FIX_PART_RINGCOUNT part_ringcount)
    {
        int ringNum = (int)AppMain.gmFixGetRingNum();

        AppMain.AkUtilNumValueToDigits(ringNum, part_ringcount.digit_list, 3);
        if (ringNum != 0)
        {
            return;
        }
        for (int index = 0; index < 3; ++index)
        {
            part_ringcount.digit_list[index] = 10;
        }
    }
Ejemplo n.º 4
0
 private static void gmFixRingCountPartSetDispDigits(
     AppMain.GMS_FIX_PART_RINGCOUNT part_ringcount,
     bool enable)
 {
     for (int index = 0; index < 4; ++index)
     {
         if (index != 0)
         {
             if (enable)
             {
                 ((AppMain.OBS_OBJECT_WORK)part_ringcount.sub_parts[index]).disp_flag &= 4294967263U;
             }
             else
             {
                 ((AppMain.OBS_OBJECT_WORK)part_ringcount.sub_parts[index]).disp_flag |= 32U;
             }
         }
     }
 }