遙控器調整+歡迎詞調整
This commit is contained in:
parent
091152084b
commit
2b0b4d5ca0
@ -41,6 +41,9 @@ namespace DualScreenDemo
|
|||||||
break;
|
break;
|
||||||
case "A263A4":
|
case "A263A4":
|
||||||
ClearDisplay();
|
ClearDisplay();
|
||||||
|
_wrongInputCountfor62 = 0; // 重置計數器
|
||||||
|
_wrongInputCountfor61 = 0; // 重置計數器
|
||||||
|
_indataHistory.Clear(); // 清空歷史紀錄
|
||||||
break;
|
break;
|
||||||
case "A268A4":
|
case "A268A4":
|
||||||
OverlayForm.MainForm.currentPage = 1;
|
OverlayForm.MainForm.currentPage = 1;
|
||||||
@ -343,11 +346,13 @@ namespace DualScreenDemo
|
|||||||
_wrongInputCountfor61++;
|
_wrongInputCountfor61++;
|
||||||
if(_wrongInputCountfor61 <= MaxWrongLimit)
|
if(_wrongInputCountfor61 <= MaxWrongLimit)
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text += "#";
|
string old ="";
|
||||||
|
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||||
|
_indataHistory.Clear(); // 清空歷史紀錄
|
||||||
_wrongInputCountfor61 = 0; // 重置計數器
|
_wrongInputCountfor61 = 0; // 重置計數器
|
||||||
}
|
}
|
||||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||||
@ -371,11 +376,13 @@ namespace DualScreenDemo
|
|||||||
_wrongInputCountfor61++;
|
_wrongInputCountfor61++;
|
||||||
if(_wrongInputCountfor61 <= MaxWrongLimit)
|
if(_wrongInputCountfor61 <= MaxWrongLimit)
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text += "#";
|
string old ="";
|
||||||
|
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||||
|
_indataHistory.Clear(); // 清空歷史紀錄
|
||||||
_wrongInputCountfor61 = 0; // 重置計數器
|
_wrongInputCountfor61 = 0; // 重置計數器
|
||||||
}
|
}
|
||||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||||
@ -385,6 +392,16 @@ namespace DualScreenDemo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string check_control(string old){
|
||||||
|
foreach(string item in _indataHistory)
|
||||||
|
{
|
||||||
|
if(item == "A261A4")
|
||||||
|
old += "#";
|
||||||
|
else if(item == "A262A4")
|
||||||
|
old += "*";
|
||||||
|
}
|
||||||
|
return old;
|
||||||
|
}
|
||||||
|
|
||||||
private void HandleInputB()
|
private void HandleInputB()
|
||||||
{
|
{
|
||||||
@ -433,11 +450,13 @@ namespace DualScreenDemo
|
|||||||
_wrongInputCountfor62++;
|
_wrongInputCountfor62++;
|
||||||
if(_wrongInputCountfor62 <= MaxWrongLimit)
|
if(_wrongInputCountfor62 <= MaxWrongLimit)
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text += "*";
|
string old ="";
|
||||||
|
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||||
|
_indataHistory.Clear(); // 清空歷史紀錄
|
||||||
_wrongInputCountfor62 = 0; // 重置計數器
|
_wrongInputCountfor62 = 0; // 重置計數器
|
||||||
}
|
}
|
||||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||||
@ -459,11 +478,13 @@ namespace DualScreenDemo
|
|||||||
_wrongInputCountfor62++;
|
_wrongInputCountfor62++;
|
||||||
if(_wrongInputCountfor62 <= MaxWrongLimit)
|
if(_wrongInputCountfor62 <= MaxWrongLimit)
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text += "*";
|
string old ="";
|
||||||
|
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||||
|
_indataHistory.Clear(); // 清空歷史紀錄
|
||||||
_wrongInputCountfor62 = 0; // 重置計數器
|
_wrongInputCountfor62 = 0; // 重置計數器
|
||||||
}
|
}
|
||||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||||
@ -475,9 +496,8 @@ namespace DualScreenDemo
|
|||||||
|
|
||||||
private static void ClearDisplay()
|
private static void ClearDisplay()
|
||||||
{
|
{
|
||||||
|
|
||||||
OverlayForm.displayTimer.Stop();
|
OverlayForm.displayTimer.Stop();
|
||||||
|
|
||||||
|
|
||||||
if (OverlayForm.MainForm.InvokeRequired)
|
if (OverlayForm.MainForm.InvokeRequired)
|
||||||
{
|
{
|
||||||
|
@ -1 +1 @@
|
|||||||
歡迎使用超級巨星歡唱網路版系統,與你共度美好時光。
|
歡迎使用網路版系統,與你共度美好時光。
|
Reference in New Issue
Block a user