コード例 #1
0
        static void Count()
        {
            if (!ReviewWindowEditor.Current.active)
            {
                return;
            }

            double time = GenerateUnixTime();
            double diff = time - ReviewWindowEditor.Current.lastCheck;

            if (diff < 20)
            {
                return;
            }

            ReviewWindowEditor.Current.lastCheck = time;
            ReviewWindowEditor.Current.counter++;

            if (ReviewWindowEditor.Current.counter > 7)
            {
                Init();
                ReviewWindowEditor.Current.counter = 0;
            }

            ReviewWindowEditor.Save();
        }
コード例 #2
0
 void DisableRating()
 {
     ReviewWindowEditor.Current.active  = false;
     ReviewWindowEditor.Current.counter = 0;
     ReviewWindowEditor.Save();
     this.Close();
 }