コード例 #1
0
 public void DisplayInfo()
 {
     infoPanel = InfoPanel.Create(new Vector2(0.5f, 0.5f));
     infoPanel.AddTitle(record.FullName);
     DisplayDoorInfo();
     lockData.DisplayLockInfo(infoPanel);
 }
コード例 #2
0
    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);
    }
コード例 #3
0
    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);
    }
コード例 #4
0
 void IActivatable.DisplayInfo()
 {
     infoPanel = InfoPanel.Create(new Vector2(0.5f, 0.5f));
     infoPanel.AddTitle(record.FullName);
 }
コード例 #5
0
 public void DisplayInfo()
 {
     infoPanel = InfoPanel.Create(transform.position);
     infoPanel.AddTitle(record.FullName);
     lockData.DisplayLockInfo(infoPanel);
 }