diff --git a/Assets/Resources/Prefabs/UI/Choice Button.prefab b/Assets/Resources/Prefabs/UI/Choice Button.prefab index 7b8cb0802..547de952e 100644 --- a/Assets/Resources/Prefabs/UI/Choice Button.prefab +++ b/Assets/Resources/Prefabs/UI/Choice Button.prefab @@ -231,8 +231,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.5} m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 280, y: 0} - m_SizeDelta: {x: 455.96, y: 48} + m_AnchoredPosition: {x: 650, y: 0} + m_SizeDelta: {x: 1200, y: 48} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6660134571396433606 CanvasRenderer: diff --git a/Assets/Resources/Yarn/OptionTest/OptionTest1.yarn b/Assets/Resources/Yarn/OptionTest/OptionTest1.yarn index e1a204dfb..ffa5ae05d 100644 --- a/Assets/Resources/Yarn/OptionTest/OptionTest1.yarn +++ b/Assets/Resources/Yarn/OptionTest/OptionTest1.yarn @@ -2,6 +2,16 @@ --- <> 我: 这是选项测试文件 #line:069537f +我: 做一点测试 + -> 选项一 + -> 选项二 + -> 超长选项测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 + +我: 粗体斜体下划线删除线制定颜色 +我: 放大缩小上标正常下标 +我: 彩虹褪色摇晃波浪震动 +我: Bounce旋转Wiggle + 我: 点击不同按钮可以执行不同命令 #line:00147c3 # auto_next <> 我: 加载测试场景 #line:0a67910 diff --git a/Assets/Scripts/UI/DialogUiViewer.cs b/Assets/Scripts/UI/DialogUiViewer.cs index e8ff45aed..dc62ea37f 100644 --- a/Assets/Scripts/UI/DialogUiViewer.cs +++ b/Assets/Scripts/UI/DialogUiViewer.cs @@ -89,7 +89,6 @@ namespace AibisDream public void ShowAutoLine(string dialogLine, string actor, Action nextStep) { dialogBox.SetActive(true); - dialogText.ShowText(""); dialogText.gameObject.SetActive(true); choiceBox.SetActive(false); @@ -112,6 +111,8 @@ namespace AibisDream dialogBox.SetActive(true); choiceBox.SetActive(true); dialogText.gameObject.SetActive(false); + dialogText.ShowText(""); + actorName.text = ""; // 销毁原来的按钮 foreach (Transform child in choiceBox.transform)