Виртуальный курсор (для управления с геймпада)
This commit is contained in:
parent
d42bd00c3d
commit
bbb66a5273
12 changed files with 135 additions and 8 deletions
|
@ -10,6 +10,7 @@ public partial class Menu : Node2D
|
|||
private Array<string> _translations = new Array<string>{"en", "ru"};
|
||||
private int _languagesCount;
|
||||
private int _currentLanguage = 0;
|
||||
private Resource _cursorTexture;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
@ -31,6 +32,7 @@ public partial class Menu : Node2D
|
|||
_animationPlayer.Play("thunder");
|
||||
_thunderclap.Play();
|
||||
_timer.Start();
|
||||
DisplayServer.MouseSetMode(DisplayServer.MouseMode.Hidden);
|
||||
}
|
||||
else if (@event.IsActionPressed("ui_change_language"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue