..
This commit is contained in:
@@ -99,8 +99,21 @@ namespace AGVNavigationCore.Controls
|
||||
//예측문자는 디버깅시에만 표시한다.
|
||||
if (string.IsNullOrEmpty(PredictMessage) == false && System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
g.DrawString(this.PredictMessage, this.Font, Brushes.White, 10, 10);
|
||||
g.DrawString(this.PredictMessage, this.Font, Brushes.White, 10, 100);
|
||||
}
|
||||
DrawAlertMessage(g);
|
||||
|
||||
}
|
||||
|
||||
void DrawAlertMessage(Graphics g)
|
||||
{
|
||||
if (showalert == false) return;
|
||||
|
||||
//상단에 경고 메세지를 추가한다
|
||||
if (String.IsNullOrEmpty(this._alertmesage)) return;
|
||||
|
||||
|
||||
g.DrawString(this._alertmesage, this.Font, Brushes.Gold, 10, 10);
|
||||
}
|
||||
|
||||
private void DrawSyncScreen(Graphics g)
|
||||
|
||||
@@ -135,6 +135,14 @@ namespace AGVNavigationCore.Controls
|
||||
private float _syncProgress = 0.0f;
|
||||
private string _syncDetail = "";
|
||||
|
||||
string _alertmesage = "";
|
||||
bool showalert = false;
|
||||
public void SetAlertMessage(string m)
|
||||
{
|
||||
_alertmesage = m;
|
||||
showalert = !string.IsNullOrEmpty(m);
|
||||
}
|
||||
|
||||
// 브러쉬 및 펜
|
||||
private Brush _normalNodeBrush;
|
||||
private Brush _rotationNodeBrush;
|
||||
@@ -643,7 +651,7 @@ namespace AGVNavigationCore.Controls
|
||||
_pathPen = new Pen(Color.Purple, 3);
|
||||
_agvPen = new Pen(Color.Red, 3);
|
||||
_highlightedConnectionPen = new Pen(Color.Red, 4) { DashStyle = DashStyle.Solid };
|
||||
_magnetPen = new Pen(Color.FromArgb(100,Color.LightSkyBlue), 15) { DashStyle = DashStyle.Solid };
|
||||
_magnetPen = new Pen(Color.FromArgb(100, Color.LightSkyBlue), 15) { DashStyle = DashStyle.Solid };
|
||||
_markPen = new Pen(Color.White, 3); // 마크는 흰색 선으로 표시
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user