예제 #1
0
 private void LoadAreaInfo(QuestAreaMaster qam) {
     AreaInfoStackPanel.Visibility = Visibility.Visible;
     AreaInfo_id.Text = qam.id.ToString();
     AreaInfo_name.Text = qam.name;
     AreaInfo_text.Document = Utility.ParseTextToDocument(qam.text);
 }
예제 #2
0
 private Line GetAreaLine(QuestAreaMaster thisArea, QuestAreaMaster nextArea)
 {
     Line line = new Line();
     line.X1 = thisArea.icon_pos_x*SCALE_PARAMETER + LEFT_OFFSET;
     line.Y1 = thisArea.icon_pos_y*SCALE_PARAMETER + TOP_OFFSET;
     line.X2 = nextArea.icon_pos_x*SCALE_PARAMETER + LEFT_OFFSET;
     line.Y2 = nextArea.icon_pos_y*SCALE_PARAMETER + TOP_OFFSET;
     line.Stroke = new SolidColorBrush(Color.FromRgb(153, 255, 119));
     line.StrokeThickness = 4;
     line.StrokeDashArray = new DoubleCollection() { 0.75, 0.75 };
     return line;
 }