diff --git a/SlayTheSpire2.LAN.Multiplayer/Components/CopiedLabel.cs b/SlayTheSpire2.LAN.Multiplayer/Components/CopiedLabel.cs index 107837a..e1fd982 100644 --- a/SlayTheSpire2.LAN.Multiplayer/Components/CopiedLabel.cs +++ b/SlayTheSpire2.LAN.Multiplayer/Components/CopiedLabel.cs @@ -32,13 +32,13 @@ namespace SlayTheSpire2.LAN.Multiplayer.Components base._Ready(); } - public void ShowWithGlobalPosition(Vector2 position) + public void Show(Vector2 globalPosition) { _tween?.Kill(); Modulate = new Color(Colors.White); - GlobalPosition = position; + GlobalPosition = globalPosition; _tween = GetTree().CreateTween(); diff --git a/SlayTheSpire2.LAN.Multiplayer/Components/IPAddressInfoPanel.cs b/SlayTheSpire2.LAN.Multiplayer/Components/IPAddressInfoPanel.cs index 19b2140..dfc6f18 100644 --- a/SlayTheSpire2.LAN.Multiplayer/Components/IPAddressInfoPanel.cs +++ b/SlayTheSpire2.LAN.Multiplayer/Components/IPAddressInfoPanel.cs @@ -193,7 +193,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Components !string.IsNullOrEmpty(_ipAddressLabel.Text)) { DisplayServer.ClipboardSet(_ipAddressLabel.Text); - _copiedLabel.ShowWithGlobalPosition(inputEventMouseButton.GlobalPosition); + _copiedLabel.Show(inputEventMouseButton.GlobalPosition); } }; @@ -210,7 +210,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Components !string.IsNullOrEmpty(_ipv6AddressLabel.Text)) { DisplayServer.ClipboardSet(_ipv6AddressLabel.Text); - _copiedLabel.ShowWithGlobalPosition(inputEventMouseButton.GlobalPosition); + _copiedLabel.Show(inputEventMouseButton.GlobalPosition); } }; @@ -315,7 +315,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Components !string.IsNullOrEmpty(ipAddressLabel.Text)) { DisplayServer.ClipboardSet(ipAddressLabel.Text); - _copiedLabel?.ShowWithGlobalPosition(inputEventMouseButton.GlobalPosition); + _copiedLabel?.Show(inputEventMouseButton.GlobalPosition); } };