Fix in game monument preview

This commit is contained in:
r.nikolin 2023-10-27 17:29:01 +03:00
parent 23b6921cc5
commit 74aecd2b9b
4 changed files with 1123 additions and 576 deletions

File diff suppressed because one or more lines are too long

View File

@ -44,12 +44,14 @@ public class MonumentController : MonoBehaviour
PlayerSetup.Instance.UnlockMonument(_info); PlayerSetup.Instance.UnlockMonument(_info);
} }
[ContextMenu("Show preview")]
public void PlaySound() public void PlaySound()
{ {
_previewSound.PlaySound(_info.LongClip); _previewSound.PlaySound(_info.LongClip);
_monumentPreview.ShowInfo(_info.Name, _info.Image, _info.LongDescription, _info.LongDuration); _monumentPreview.ShowInfo(_info.Name, _info.Image, _info.LongDescription, _info.LongDuration);
} }
public void ShowPreview() public void ShowPreview()
{ {
_cockpitUI.ShowInfo(_info.Image, _info.Description); _cockpitUI.ShowInfo(_info.Image, _info.Description);

View File

@ -28,6 +28,7 @@ public class UITextShow : MonoBehaviour
public void SetText(string text) public void SetText(string text)
{ {
_text.SetText($"{Prefix}{text}{Postfix}"); _text.SetText($"{Prefix}{text}{Postfix}");
_text.SetAllDirty();
} }
public void SetText(int num) public void SetText(int num)

File diff suppressed because one or more lines are too long