mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
Disable HUD on dialogue
This commit is contained in:
parent
88e4d4c0be
commit
b5e691398e
2 changed files with 6 additions and 0 deletions
|
|
@ -190,6 +190,9 @@ public partial class GlobalState : Node
|
|||
public void SaveGame()
|
||||
{
|
||||
var items = InventoryManager.Instance.Save();
|
||||
|
||||
SessionSettings.Items = items;
|
||||
|
||||
var serializedSavedata = new Godot.Collections.Dictionary<string, Variant>()
|
||||
{
|
||||
{ "Items", items },
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ public partial class DialogueStartEvent : EventResource
|
|||
return;
|
||||
}
|
||||
|
||||
Hud.Instance?.HideHud();
|
||||
|
||||
_dialogic.Connect("timeline_ended", Callable.From(OnTimelineEnded));
|
||||
|
||||
var dialogicNode =_dialogic.Call("start", TimelineName.ToString());
|
||||
|
|
@ -34,6 +36,7 @@ public partial class DialogueStartEvent : EventResource
|
|||
|
||||
private void OnTimelineEnded()
|
||||
{
|
||||
Hud.Instance?.ShowHud();
|
||||
_gameManager.ChangeState(GameState.Playing);
|
||||
if (_dialogic.IsConnected("timeline_ended", Callable.From(OnTimelineEnded)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue