Add elements

Attempt to block line of sight with walls
This commit is contained in:
2024-09-06 22:04:00 -07:00
parent 8eeeb0890c
commit dc035eb1fe
35 changed files with 102 additions and 2219 deletions

View File

@@ -1,42 +0,0 @@
using Godot;
namespace Laura.DeployToSteamOS;
[Tool]
public partial class DeviceItemPrefab : PanelContainer
{
private SteamOSDevkitManager.Device _device;
public delegate void DeviceDelegate(SteamOSDevkitManager.Device device);
public event DeviceDelegate OnDevicePair;
public event DeviceDelegate OnDeviceUnpair;
[ExportGroup("References")]
[Export] private Label _deviceNameLabel;
[Export] private Label _deviceConnectionLabel;
[Export] private Button _devicePairButton;
[Export] private Button _deviceUnpairButton;
public void SetUI(SteamOSDevkitManager.Device device)
{
_device = device;
_deviceNameLabel.Text = device.DisplayName;
_deviceConnectionLabel.Text = $"{device.Login}@{device.IPAdress}";
if (SettingsManager.Instance.Devices.Exists(x => x.IPAdress == device.IPAdress && x.Login == device.Login))
{
_devicePairButton.Visible = false;
_deviceUnpairButton.Visible = true;
}
}
public void Pair()
{
OnDevicePair?.Invoke(_device);
}
public void Unpair()
{
OnDeviceUnpair?.Invoke(_device);
}
}