mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 11:10:29 +00:00
parent
1774f1a079
commit
d2a9e7e458
@ -65,6 +65,10 @@ public class PrintoutRenderer
|
|||||||
|
|
||||||
public static void drawText( int x, int y, int start, String[] text, String[] colours )
|
public static void drawText( int x, int y, int start, String[] text, String[] colours )
|
||||||
{
|
{
|
||||||
|
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
|
||||||
|
GlStateManager.enableBlend();
|
||||||
|
GlStateManager.enableTexture2D();
|
||||||
|
|
||||||
FixedWidthFontRenderer fontRenderer = (FixedWidthFontRenderer) ComputerCraft.getFixedWidthFontRenderer();
|
FixedWidthFontRenderer fontRenderer = (FixedWidthFontRenderer) ComputerCraft.getFixedWidthFontRenderer();
|
||||||
|
|
||||||
for( int line = 0; line < LINES_PER_PAGE && line < text.length; ++line )
|
for( int line = 0; line < LINES_PER_PAGE && line < text.length; ++line )
|
||||||
@ -76,6 +80,9 @@ public class PrintoutRenderer
|
|||||||
public static void drawBorder( double x, double y, double z, int page, int pages, boolean isBook )
|
public static void drawBorder( double x, double y, double z, int page, int pages, boolean isBook )
|
||||||
{
|
{
|
||||||
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
|
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
|
||||||
|
GlStateManager.enableBlend();
|
||||||
|
GlStateManager.enableTexture2D();
|
||||||
|
|
||||||
Minecraft.getMinecraft().getTextureManager().bindTexture( BG );
|
Minecraft.getMinecraft().getTextureManager().bindTexture( BG );
|
||||||
|
|
||||||
Tessellator tessellator = Tessellator.getInstance();
|
Tessellator tessellator = Tessellator.getInstance();
|
||||||
|
Loading…
Reference in New Issue
Block a user