38 lines
730 B
C#
38 lines
730 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class PhoneButton : TextureButton
|
|
{
|
|
// [Signal]
|
|
// public delegate void HoverEventHandler(Cell THISCELL, bool ISHOVERED);
|
|
public bool _isHovered = false;
|
|
public Phone _phone;
|
|
public Contact _contact;
|
|
|
|
public override void _Ready()
|
|
{
|
|
base._Ready();
|
|
_contact = GetNode<Contact>("Contact");
|
|
}
|
|
|
|
public override void _Pressed()
|
|
{
|
|
base._Pressed();
|
|
_phone.LoadContact(_contact);
|
|
}
|
|
|
|
|
|
|
|
// private void OnMouseEntered()
|
|
// {
|
|
// _isHovered = true;
|
|
// EmitSignal(SignalName.Hover, this, _isHovered);
|
|
// }
|
|
|
|
// private void OnMouseExited()
|
|
// {
|
|
// _isHovered = false;
|
|
// EmitSignal(SignalName.Hover, this, _isHovered);
|
|
// }
|
|
}
|