2508151712 增加消防畫面至火警狀態

This commit is contained in:
jasonchenwork 2025-08-15 17:14:12 +08:00
parent ab3ecf9597
commit 4c962b14ce
3 changed files with 30 additions and 12 deletions

View File

@ -400,6 +400,8 @@ namespace DualScreenDemo
public void ShowSendOffScreen() public void ShowSendOffScreen()
{ {
var data = LoadBtnConfigData();
sendOffPanel.BringToFront(); sendOffPanel.BringToFront();
sendOffPanel.Visible = true; sendOffPanel.Visible = true;
@ -413,6 +415,16 @@ namespace DualScreenDemo
buttonTopRight.BringToFront(); buttonTopRight.BringToFront();
buttonTopLeft.BringToFront(); buttonTopLeft.BringToFront();
buttonThanks.BringToFront(); buttonThanks.BringToFront();
if (Program.room.Getstate() == "fire")
{
sendOffPanel.BackgroundImage = new Bitmap(Path.Combine(serverPath, data["PrimaryFormBtn"]["Calamity"]));
serviceBellPictureBox.Visible = false;
buttonMiddle.Visible = false;
buttonTopRight.Visible = false;
buttonTopLeft.Visible = false;
buttonThanks.Visible = false;
}
} }
// 修正螢幕初始化關鍵 // 修正螢幕初始化關鍵
public void HideSendOffScreen() public void HideSendOffScreen()

View File

@ -117,6 +117,10 @@ namespace DualScreenDemo
public bool IsOpen() => State.Equals("active"); public bool IsOpen() => State.Equals("active");
public string Getstate()
{
return State;
}
} }

View File

@ -43,6 +43,8 @@ Close=themes\superstar\主畫面\選單內介面_送客畫面.jpg
Voice=themes\superstar\button\3.介面\其他符號_人聲.png Voice=themes\superstar\button\3.介面\其他符號_人聲.png
Calamity=themes\superstar\主畫面\選單內介面_消防畫面.jpg
[PrimaryFormSubBtn] [PrimaryFormSubBtn]