mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -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);
|
||||
}
|
||||
|
||||
public override void Render(double delta) {
|
||||
base.Render(delta);
|
||||
Request item;
|
||||
if (!game.Downloader.TryGetItem(Identifier, out item) || item.Data == null) return;
|
||||
|
||||
long contentLength = (long)item.Data;
|
||||
if (contentLength <= 0) return;
|
||||
string url = Identifier.Substring(3);
|
||||
|
||||
float contentLengthMB = (contentLength / 1024f / 1024f);
|
||||
lines[3] = "Download size: " + contentLengthMB.ToString("F3") + " MB";
|
||||
ContextLost();
|
||||
ContextRecreated();
|
||||
public override void Render(double delta) {
|
||||
base.Render(delta);
|
||||
Request item;
|
||||
if (!game.Downloader.TryGetItem(Identifier, out item) || item.Data == null) return;
|
||||
|
||||
long contentLength = (long)item.Data;
|
||||
if (contentLength <= 0) return;
|
||||
string url = Identifier.Substring(3);
|
||||
|
||||
float contentLengthMB = (contentLength / 1024f / 1024f);
|
||||
lines[3] = "Download size: " + contentLengthMB.ToString("F3") + " MB";
|
||||
ContextLost();
|
||||
ContextRecreated();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user