Remove font testing
This commit is contained in:
parent
aafb54d8e9
commit
195550207f
Binary file not shown.
Before Width: | Height: | Size: 7.2 KiB |
57653
javascript/classes.js
57653
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -41,7 +41,7 @@ public class ClickGUI extends GuiScreen {
|
|||
int xy = -30;
|
||||
|
||||
sr = new ScaledResolution(mc);
|
||||
fr = Minecraft.getMinecraft().resentFont;
|
||||
fr = Minecraft.getMinecraft().fontRendererObj;
|
||||
width = GuiScreen.width - x;
|
||||
height = GuiScreen.height - y;
|
||||
x = sr.getScaledWidth() / 8 + xo;
|
||||
|
@ -108,7 +108,7 @@ public class ClickGUI extends GuiScreen {
|
|||
int xo = 0;
|
||||
int xy = -30;
|
||||
|
||||
fr = Minecraft.getMinecraft().resentFont;
|
||||
fr = Minecraft.getMinecraft().fontRendererObj;
|
||||
width = GuiScreen.width - x;
|
||||
height = GuiScreen.height - y;
|
||||
x = sr.getScaledWidth() / 8 + xo;
|
||||
|
|
|
@ -208,7 +208,6 @@ public class Minecraft implements IThreadListener {
|
|||
public EffectRenderer effectRenderer;
|
||||
private final Session session;
|
||||
private boolean isGamePaused;
|
||||
public FontRenderer resentFont;
|
||||
public FontRenderer fontRendererObj;
|
||||
public FontRenderer standardGalacticFontRenderer;
|
||||
public GuiScreen currentScreen;
|
||||
|
@ -382,17 +381,17 @@ public class Minecraft implements IThreadListener {
|
|||
this.mcSoundHandler = new SoundHandler(this.mcResourceManager, this.gameSettings);
|
||||
this.mcResourceManager.registerReloadListener(this.mcSoundHandler);
|
||||
this.mcMusicTicker = new MusicTicker(this);
|
||||
this.resentFont = new FontRenderer(this.gameSettings, new ResourceLocation("eagler:gui/ascii.png"), this.renderEngine, false);
|
||||
//this.resentFont = new FontRenderer(this.gameSettings, new ResourceLocation("eagler:gui/ascii.png"), this.renderEngine, false);
|
||||
this.fontRendererObj = new EaglerFontRenderer(this.gameSettings, new ResourceLocation("textures/font/ascii.png"), this.renderEngine, false);
|
||||
|
||||
if (this.gameSettings.language != null) {
|
||||
this.fontRendererObj.setUnicodeFlag(this.isUnicode());
|
||||
this.fontRendererObj.setBidiFlag(this.mcLanguageManager.isCurrentLanguageBidirectional());
|
||||
this.resentFont.setUnicodeFlag(this.isUnicode());
|
||||
this.resentFont.setBidiFlag(this.mcLanguageManager.isCurrentLanguageBidirectional());
|
||||
//this.resentFont.setUnicodeFlag(this.isUnicode());
|
||||
//this.resentFont.setBidiFlag(this.mcLanguageManager.isCurrentLanguageBidirectional());
|
||||
}
|
||||
|
||||
this.mcResourceManager.registerReloadListener(this.resentFont);
|
||||
//this.mcResourceManager.registerReloadListener(this.resentFont);
|
||||
this.standardGalacticFontRenderer = new EaglerFontRenderer(this.gameSettings, new ResourceLocation("textures/font/ascii_sga.png"), this.renderEngine, false);
|
||||
this.mcResourceManager.registerReloadListener(this.fontRendererObj);
|
||||
this.mcResourceManager.registerReloadListener(this.standardGalacticFontRenderer);
|
||||
|
|
|
@ -23,7 +23,7 @@ public class GuiMainMenu extends GuiScreen {
|
|||
this.mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/background.webp"));
|
||||
Gui.drawModalRectWithCustomSizedTexture(0, 0, 0.0f, 0.0f, this.width, this.height, this.width + 21, this.height + 50);
|
||||
final String s1 = "Copyright " + EnumChatFormatting.RED + EnumChatFormatting.BOLD + "M" + EnumChatFormatting.RESET + "ojang AB";
|
||||
this.drawString(Minecraft.getMinecraft().resentFont, s1, this.width - Minecraft.getMinecraft().resentFont.getStringWidth(s1) - 2, this.height - 10, -1);
|
||||
this.drawString(Minecraft.getMinecraft().fontRendererObj, s1, this.width - Minecraft.getMinecraft().fontRendererObj.getStringWidth(s1) - 2, this.height - 10, -1);
|
||||
RenderUtils.drawCenteredScaledString("" + EnumChatFormatting.AQUA + EnumChatFormatting.BOLD + "Resent", this.width / 2, this.height / 2 - 50, -1, 3f);
|
||||
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user