@@ -72,14 +72,14 @@ public DevInventoryScreen(PlayerEntity player) {
72
72
73
73
public void handledScreenTick () {
74
74
super .handledScreenTick ();
75
- if (this .searchBox != null ) {
76
- this .searchBox .tick ();
77
- }
75
+ // if (this.searchBox != null) {
76
+ // this.searchBox.tick();
77
+ // }
78
78
}
79
79
80
80
protected void onMouseClick (@ Nullable Slot slot , int slotId , int button , SlotActionType actionType ) {
81
81
if (slot == null ) return ;
82
- this .searchBox .setCursorToEnd ();
82
+ this .searchBox .setCursorToEnd (false );
83
83
this .searchBox .setSelectionEnd (0 );
84
84
85
85
if (slot == this .deleteItemSlot ) {
@@ -129,7 +129,7 @@ protected void init() {
129
129
setSelectedTab (6 );
130
130
if (Config .getConfig ().FocusSearch )
131
131
searchBox .setFocused (true );
132
- searchBox .setCursorToEnd ();
132
+ searchBox .setCursorToEnd (false );
133
133
searchBox .setSelectionEnd (0 );
134
134
this .client .player .playerScreenHandler .removeListener (this .listener );
135
135
this .listener = new CreativeInventoryListener (this .client );
@@ -276,7 +276,7 @@ private void populate() {
276
276
}
277
277
278
278
public void render (DrawContext context , int mouseX , int mouseY , float delta ) {
279
- this .renderBackground (context );
279
+ this .renderBackground (context , mouseX , mouseY , delta );
280
280
super .render (context , mouseX , mouseY , delta );
281
281
282
282
Integer hoveredGroup = getGroupFromMouse (mouseX ,mouseY );
@@ -348,7 +348,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
348
348
if (CodeClient .MC .options .chatKey .matchesKey (keyCode ,scanCode ) || CodeClient .editBind .matchesKey (keyCode ,scanCode )) {
349
349
if (keyCode == GLFW .GLFW_KEY_Y ) setSelectedTab (SEARCH .getIndex ());
350
350
searchBox .setFocused (true );
351
- searchBox .setCursorToEnd ();
351
+ searchBox .setCursorToEnd (false );
352
352
searchBox .setSelectionEnd (0 );
353
353
ignoreNextKey = true ;
354
354
return true ;
@@ -387,7 +387,7 @@ protected void drawBackground(DrawContext context, float delta, int mouseX, int
387
387
else context .drawTexture (TEXTURE , scrollbarX , scrollbarY + (95 * (int ) (this .scrollPosition * 9 ) / (scrollHeight )), 232 , 0 , 12 , 15 );
388
388
}
389
389
else {
390
- if (this .client != null && this .client .player != null ) InventoryScreen .drawEntity (context , this .x + 88 , this .y + 45 , 20 , ( float )( this .x + 88 - mouseX ), ( float )( this .y + 45 - 30 - mouseY ) , this .client .player );
390
+ if (this .client != null && this .client .player != null ) InventoryScreen .drawEntity (context , this .x + 73 , this .y + 6 , this .x + 105 , this .y + 49 , 20 , 0.0625F , ( float ) mouseX , ( float ) mouseY , this .client .player );
391
391
}
392
392
393
393
}
0 commit comments