Files
tictactoe/Gameplay/PhoneButton.cs

38 lines
815 B
C#

using Godot;
using System;
public partial class PhoneButton : TextureButton
{
// [Signal]
// public delegate void HoverEventHandler(Shield THISSHIELD, bool ISHOVERED);
public bool _isHovered = false;
public Phone _phone;
public Contact _contact;
public ProgressBar _progressBar;
public override void _Ready()
{
base._Ready();
_contact = GetNode<Contact>("Contact");
_contact._button = this;
_progressBar = GetNode<ProgressBar>("ProgressBar");
}
public override void _Pressed()
{
base._Pressed();
}
// private void OnMouseEntered()
// {
// _isHovered = true;
// EmitSignal(SignalName.Hover, this, _isHovered);
// }
// private void OnMouseExited()
// {
// _isHovered = false;
// EmitSignal(SignalName.Hover, this, _isHovered);
// }
}