public void ShowDialog(TranscriptItem transcript) //显示提示信息 { tween.PlayForward(); describe.color = Color.yellow; describe.text = transcript.describe; energy.text = transcript.eneryNeed + ""; ShowBtn(); }
private void WriteMessageToTranscript(Message message) { //adds a line for the received or sent message TranscriptItem lineItem = new TranscriptItem(message.TimeStamp, message.SenderDisplayName, message.SenderUri, message.Modality.ToString(), message.Content); _viewModel.MessageHistory.Add(lineItem); //manually scrows down to the last added message listBoxHistory.UpdateLayout(); scrollViewerMessageLog.ScrollToVerticalOffset(listBoxHistory.ActualHeight); }
public void OnItemBtnClick(TranscriptItem transcript) //点击地下城按钮 { PlayerInfomation info = PlayerInfomation.instance; if (info.Level >= transcript.levelNeed) //人物等级大于地下城等级,可以进入 { currentTranscript = transcript; TranscriptDialog.instance.ShowDialog(transcript); } else //等级不足,警告 { TranscriptDialog.instance.ShowWarn(); } }