public void DisplayInfo() { infoPanel = InfoPanel.Create(new Vector2(0.5f, 0.5f)); infoPanel.AddTitle(record.FullName); DisplayDoorInfo(); lockData.DisplayLockInfo(infoPanel); }
public InfoPanel DisplayInfo(Vector3 position, ReferenceData referenceData) { // Some objects like activators have no description and are just used for scripts etc, so return null for these if (string.IsNullOrEmpty(fullName)) { return(null); } var infoPanel = InfoPanel.Create(new Vector2(0.5f, 0.5f)); infoPanel.AddTitle(fullName); return(infoPanel); }
public InfoPanel CreateInfo(Vector3 position, int quantity, bool displayIcon) { var infoPanel = InfoPanel.Create(new Vector2(0.5f, 0.5f)); // Display object count if greated than 1 if (quantity > 1) { infoPanel.AddTitle($"{fullName} ({quantity})"); } else { infoPanel.AddTitle(fullName); } if (displayIcon) { infoPanel.DisplayIcon(Icon); } return(infoPanel); }
void IActivatable.DisplayInfo() { infoPanel = InfoPanel.Create(new Vector2(0.5f, 0.5f)); infoPanel.AddTitle(record.FullName); }
public void DisplayInfo() { infoPanel = InfoPanel.Create(transform.position); infoPanel.AddTitle(record.FullName); lockData.DisplayLockInfo(infoPanel); }