MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / draw

Method draw

Minecraft-Utils/1.8/src/FileSelector.java:105–209  ·  view source on GitHub ↗
(int mouseX, int mouseY, float partialTicks)

Source from the content-addressed store, hash-verified

103 }
104
105 @Override
106 public void draw(int mouseX, int mouseY, float partialTicks) {
107 this.mouseX = mouseX;
108 this.mouseY = mouseY;
109
110 int scrollX0 = getScrollBarX();
111 int scrollX1 = scrollX0 + 6;
112 bindAmountScrolled();
113 GLUtil.disableLighting();
114 GLUtil.disableFog();
115 ckx tessellator = ckx.a();
116 civ worldRenderer = tessellator.c();
117 MinecraftFactory.getVars().bindTexture(bub.b);
118 GLUtil.color(1.0F, 1.0F, 1.0F, 1.0F);
119 // background
120 float f1 = 32.0F;
121 worldRenderer.b();
122 worldRenderer.c(2105376);
123 worldRenderer.a((double) left, (double) bottom, 0.0D, (double) left / f1, ((double) bottom + (int) this.amountScrolled) / f1);
124 worldRenderer.a((double) right, (double) bottom, 0.0D, (double) right / f1, ((double) bottom + (int) this.amountScrolled) / f1);
125 worldRenderer.a((double) right, (double) top, 0.0D, (double) right / f1, ((double) top + (int) this.amountScrolled) / f1);
126 worldRenderer.a((double) left, (double) top, 0.0D, (double) left / f1, ((double) top + (int) this.amountScrolled) / f1);
127 tessellator.b();
128
129 int selectionX0 = left;
130 int selectionY0 = top + 4 - (int) amountScrolled;
131 drawSelectionBox(selectionX0, selectionY0, mouseX, mouseY);
132 GLUtil.disableDepth();
133 byte var10 = 4;
134 this.overlayBackground(0, top, 255, 255);
135 this.overlayBackground(bottom, height, 255, 255);
136 GLUtil.enableBlend();
137 GLUtil.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_FALSE, GL11.GL_TRUE);
138 cjm.c();
139 cjm.j(7425);
140 cjm.x();
141 // Schatten
142 worldRenderer.b();
143 worldRenderer.a(0, 0);
144 worldRenderer.a((double) left, (double) (top + var10), 0.0D, 0.0D, 1.0D);
145 worldRenderer.a((double) right, (double) (top + var10), 0.0D, 1.0D, 1.0D);
146 worldRenderer.a(0, 255);
147 worldRenderer.a((double) right, top, 0.0D, 1.0D, 0.0D);
148 worldRenderer.a((double) left, top, 0.0D, 0.0D, 0.0D);
149 tessellator.b();
150
151 worldRenderer.b();
152 worldRenderer.a(0, 255);
153 worldRenderer.a((double) left, (double) bottom, 0.0D, 0.0D, 1.0D);
154 worldRenderer.a((double) right, (double) bottom, 0.0D, 1.0D, 1.0D);
155 worldRenderer.a(0, 0);
156 worldRenderer.a((double) right, (double) bottom - var10, 0.0D, 1.0D, 0.0D);
157 worldRenderer.a((double) left, (double) bottom - var10, 0.0D, 0.0D, 0.0D);
158 tessellator.b();
159
160 int var11 = m();
161 if (var11 > 0) {
162 int var12 = (bottom - top) * (bottom - top) / getContentHeight();

Callers

nothing calls this directly

Calls 15

getScrollBarXMethod · 0.95
bindAmountScrolledMethod · 0.95
disableLightingMethod · 0.95
disableFogMethod · 0.95
getVarsMethod · 0.95
colorMethod · 0.95
drawSelectionBoxMethod · 0.95
disableDepthMethod · 0.95
overlayBackgroundMethod · 0.95
enableBlendMethod · 0.95
tryBlendFuncSeparateMethod · 0.95
mMethod · 0.95

Tested by

no test coverage detected