Skip to content

Commit

Permalink
feat: ✨ update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
panxuc committed Mar 10, 2024
1 parent de1de86 commit 4b7e383
Show file tree
Hide file tree
Showing 6 changed files with 1,748 additions and 18 deletions.
1,735 changes: 1,735 additions & 0 deletions EESaga.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions icon.svg.import → EESaga.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

importer="texture"
type="CompressedTexture2D"
uid="uid://46756gstqh3x"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
uid="uid://cfktmvg1xqstn"
path="res://.godot/imported/EESaga.svg-4dde87f0dc22d93747841c08f7164de7.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
source_file="res://EESaga.svg"
dest_files=["res://.godot/imported/EESaga.svg-4dde87f0dc22d93747841c08f7164de7.ctex"]

[params]

Expand Down
11 changes: 5 additions & 6 deletions Scripts/UI/TitleMenu.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace EESaga.Scripts.UI;

using Godot;
using System;
using Utilities;

public partial class TitleMenu : Control
{
[Export] public PackedScene PlayScene { get; set; }
private SceneSwitcher _sceneSwitcher;

private MarginContainer _marginContainer;
private Button _playButton;
Expand All @@ -19,6 +19,8 @@ public partial class TitleMenu : Control

public override void _Ready()
{
_sceneSwitcher = GetNode<SceneSwitcher>("/root/SceneSwitcher");

_marginContainer = GetNode<MarginContainer>("MarginContainer");
_playButton = GetNode<Button>("%PlayButton");
_loadButton = GetNode<Button>("%LoadButton");
Expand All @@ -38,10 +40,7 @@ public override void _Ready()

private void OnPlayButtonPressed()
{
if (PlayScene != null)
{
GetTree().ChangeSceneToPacked(PlayScene);
}
_sceneSwitcher.PushScene(_sceneSwitcher.BattleManager);
}

private void OnOptionButtonPressed()
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Utilities/SceneSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ public Node? CurrentScene

private Timer _timer = new();

private TitleMenu _titleMenu = TitleMenu.Instance();
private BattleManager _battleManager = BattleManager.Instance();
public TitleMenu TitleMenu { get; } = TitleMenu.Instance();
public BattleManager BattleManager { get; } = BattleManager.Instance();

public override void _Ready()
{
Main = GetNodeOrNull<Node>("/root/Main");
AddChild(_timer);
if (Main != null)
{
PushScene(_titleMenu);
PushScene(TitleMenu);
}
}

Expand Down
4 changes: 0 additions & 4 deletions icon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config_version=5
config/name="EESaga"
run/main_scene="res://Scenes/main.tscn"
config/features=PackedStringArray("4.2", "C#", "Forward Plus")
config/icon="res://icon.svg"
config/icon="res://EESaga.svg"

[autoload]

Expand Down

0 comments on commit 4b7e383

Please sign in to comment.