mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Resize cursor on start
This commit is contained in:
parent
7ec389c7bb
commit
ed4f708ae9
4 changed files with 9 additions and 2 deletions
|
|
@ -1127,7 +1127,7 @@ position = Vector2(-2000, -736)
|
|||
[node name="ControlPad8" parent="Parallax2D/Factory Tilemaps/LevelProps" node_paths=PackedStringArray("Targets") instance=ExtResource("12_hfkf1")]
|
||||
position = Vector2(-2027, -735)
|
||||
Targets = [NodePath("../HorizontalForceField")]
|
||||
Requirements = Array[ExtResource("6_8tdlb")]([ExtResource("84_ma1ta")])
|
||||
Requirements = [ExtResource("84_ma1ta")]
|
||||
|
||||
[node name="Ammo6" parent="Parallax2D/Factory Tilemaps/LevelProps" instance=ExtResource("34_17pjh")]
|
||||
position = Vector2(-872, -220)
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ public partial class GameManager : Node2D
|
|||
{
|
||||
Instance = this;
|
||||
|
||||
GlobalState.Instance.ResizeCursor();
|
||||
|
||||
if (GlobalState.Instance.SessionSettings.AllowSaving)
|
||||
{
|
||||
GlobalState.Instance.SaveGame();
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@ public partial class GlobalState : Node
|
|||
}
|
||||
|
||||
private void OnSizeChanged()
|
||||
{
|
||||
ResizeCursor();
|
||||
}
|
||||
|
||||
public void ResizeCursor()
|
||||
{
|
||||
var root = GetTree().GetRoot();
|
||||
var baseSize = root.ContentScaleSize;
|
||||
|
|
|
|||
|
|
@ -123,6 +123,6 @@ public partial class OptionsMenu : MenuBase
|
|||
|
||||
// Scale mouse
|
||||
|
||||
GlobalState.Instance.ResizeCursor(4);
|
||||
GlobalState.Instance.ResizeCursor();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue