mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-19 04:26:52 -04:00
it's late and I can't be bothered working out why git reset isn't working on this file
This commit is contained in:
parent
9461bbbf59
commit
ec690648f8
@ -162,19 +162,19 @@ namespace ClassicalSharp.Gui.Screens {
|
|||||||
game.Gui.ShowOverlay(overlay, true);
|
game.Gui.ShowOverlay(overlay, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Render(double delta) {
|
public override void Render(double delta) {
|
||||||
base.Render(delta);
|
base.Render(delta);
|
||||||
Request item;
|
Request item;
|
||||||
if (!game.Downloader.TryGetItem(Identifier, out item) || item.Data == null) return;
|
if (!game.Downloader.TryGetItem(Identifier, out item) || item.Data == null) return;
|
||||||
|
|
||||||
long contentLength = (long)item.Data;
|
long contentLength = (long)item.Data;
|
||||||
if (contentLength <= 0) return;
|
if (contentLength <= 0) return;
|
||||||
string url = Identifier.Substring(3);
|
string url = Identifier.Substring(3);
|
||||||
|
|
||||||
float contentLengthMB = (contentLength / 1024f / 1024f);
|
float contentLengthMB = (contentLength / 1024f / 1024f);
|
||||||
lines[3] = "Download size: " + contentLengthMB.ToString("F3") + " MB";
|
lines[3] = "Download size: " + contentLengthMB.ToString("F3") + " MB";
|
||||||
ContextLost();
|
ContextLost();
|
||||||
ContextRecreated();
|
ContextRecreated();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user