reworking effects, turning them into their own scene for replicability
This commit is contained in:
@@ -8,24 +8,21 @@ public partial class PhoneButton : TextureButton
|
||||
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();
|
||||
if (_contact._clickable)
|
||||
{
|
||||
_contact.CallAction();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// private void OnMouseEntered()
|
||||
// {
|
||||
// _isHovered = true;
|
||||
|
||||
Reference in New Issue
Block a user