Exemplo n.º 1
0
    public void Display(TxxxtData txxxt)
    {
        Clear();

        currentFile = txxxt;

        sizeDisplay.text = "File Size: " + FileSizeCalculator.BytesToString(txxxt.Size);

        titleBarText.text = txxxt.FileName + "." + txxxt.Extension.ToString("F");

        txxxtAnchor.text = txxxt.Text;
    }
Exemplo n.º 2
0
    public void Display(FapData fap)
    {
        Clear();

        currentFile = fap;

        sizeDisplay.text = "File Size: " + FileSizeCalculator.BytesToString(fap.Size);

        titleBarText.text = fap.FileName + "." + fap.Extension.ToString("f");

        fapAnchor.transform.GetChild(0).gameObject.SetActive(true);
        fapAnchor.clip = fap.Clip;
        fapAnchor.Play();
    }
Exemplo n.º 3
0
    public void Display(JifData jif)
    {
        Clear();

        currentFile = jif;

        sizeDisplay.text = "File Size: " + FileSizeCalculator.BytesToString(jif.Size);

        titleBarText.text = jif.FileName + "." + jif.Extension.ToString("f");

        jifAnchor.DOFade(1f, 0f);
        jifAnchor.sprite = jif.Image;
        jifAnchor.DOFillAmount(1f, 1f);
    }
Exemplo n.º 4
0
    public void Display(LelData lel)
    {
        Clear();

        Debug.Log("Playing lel");

        currentFile = lel;

        sizeDisplay.text = "File Size: " + FileSizeCalculator.BytesToString(lel.Size);

        titleBarText.text = lel.FileName + "." + lel.Extension.ToString("f");

        jifAnchor.DOFade(1f, 0f);
        jifAnchor.sprite = lelIcon;
        jifAnchor.DOFillAmount(1f, 1f);
        lelAnchor.clip = lel.Clip;
        lelAnchor.Play();
        lelAnchor.loop = true;
    }
Exemplo n.º 5
0
 private void RefreshSizeDisplay(bool isDrive)
 {
     if (isDrive)
     {
         Explorer.SizeDisplay.text = FileSizeCalculator.BytesToString(hardDrive.GetUsedSpace()) + "/"
                                     +
                                     FileSizeCalculator
                                     .BytesToString(
             hardDrive
             .capacity);
     }
     else if (Reader.Loaded)
     {
         Explorer.SizeDisplay.text = FileSizeCalculator.BytesToString(Reader.LoadedDisck.GetUsedSpace()) + "/"
                                     +
                                     FileSizeCalculator
                                     .BytesToString(
             Reader.LoadedDisck
             .capacity);
     }
 }
Exemplo n.º 6
0
    private void Start()
    {
        capacity = (int)(Mathf.Pow(2, 20)) * 10;

        Debug.Log("Drive " + Letter + " " + FileSizeCalculator.BytesToString(capacity));
    }