remplissage, menu, gamin audio et autre
This commit is contained in:
@@ -2,12 +2,14 @@ using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection.Emit;
|
||||
|
||||
public partial class DoorView : Control
|
||||
{
|
||||
[Export] Sprite2D mob;
|
||||
[Export] AnimationPlayer anim;
|
||||
[Export] Control menu;
|
||||
[Export] CanvasLayer layer;
|
||||
Texture2D mobTex {get; set;}
|
||||
|
||||
|
||||
@@ -23,7 +25,7 @@ public partial class DoorView : Control
|
||||
|
||||
CharacterBody2D player;
|
||||
|
||||
[Export] Label text_mob;
|
||||
[Export] Godot.Label text_mob;
|
||||
[Export] Button butA;
|
||||
[Export] Button butB;
|
||||
|
||||
@@ -46,11 +48,12 @@ public partial class DoorView : Control
|
||||
txt.Add("Spectral visions of mental warfare");
|
||||
player = (CharacterBody2D)GetParent().GetParent();
|
||||
}
|
||||
public async void start()
|
||||
{
|
||||
public void start()
|
||||
{
|
||||
trick_bool = false;
|
||||
GetParent<Camera2D>().PositionSmoothingEnabled = false;
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
layer.Visible = true;
|
||||
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
GetTree().Paused = true;
|
||||
Visible = true;
|
||||
mob.Texture = mobTex;
|
||||
@@ -73,9 +76,12 @@ public partial class DoorView : Control
|
||||
|
||||
public void stop()
|
||||
{
|
||||
Input.MouseMode = Input.MouseModeEnum.Hidden;
|
||||
layer.Visible = false;
|
||||
Input.MouseMode = Input.MouseModeEnum.Hidden;
|
||||
GetParent<Camera2D>().PositionSmoothingEnabled = false;
|
||||
GetTree().Paused = false;
|
||||
|
||||
|
||||
GetTree().Paused = false;
|
||||
Visible = false;
|
||||
anim.Play("RESET");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user