your current location:首页 > news>[IM Lib] IMG UI Lib Minecraft

[IM Lib] IMG UI Lib Minecraft

2024-12-12 09:34:42|Myriagame |source:minecraft skins

Overview

This library provides an IMGUI drawing implementation that allows you to use imgui in Minecraft (Forge) 1.12.2.

Minecraft images

Special explanation

This LIB only tested the operation in the Windows environment!

You need to process keyboard input and mouse events in Screen. The following is a simple window drawing:

 Public Class MyGuiscreen Extends Guiscreen {@Override Public Void DrawScreen (Int Mousex, Int Mousey, Float Partialti cks) {Super.DrawScreen (Mousex, MOUSEY, PartialTicks); imguiimpl.Draw (IO-> {Imgui.ShowDemowindow ();});}}}} @Override Public Void HandlekeyboardInput () Throws IOEXCEPTION {Super.handlekeyboardInput (); Imguiimpl.handleKey (); // You need to call this method here to process the key message} @OverridePublic void handlemouseinput () Throws IOEXCEPTION {Super.Handlemouseinput (); Imguiimpl.handlemouse (); // You need to manually call this method to handle messages such as mouse wheels} 

Code code

Fabric-Imgui-EXAMPLE-MOD;

imgui-lwjgl2.

Known problem

In version 1.12.2, set the startup parameter-DFILE.encoding = UTF-8 startup game, the IMGUI text has a certain probability that it will render the error!

Very metaphysical, specific manifestations are ■■■■■, garbled string or something

Minecraft images

Minecraft images

Imguiconfigflags.ViewPortsenable cannot be used.