Skip to content

Releases: mchorse/mclib

McLib 2.2.2

14 Feb 14:00
Compare
Choose a tag to compare

This patch updated needed for Blockbuster 2.2.2.

  • Added new math functions to the parser: acos(value), asin(value), atan(value), atan2(y, x), randomi(min, max, seed), roll(num, low, high), rolli(num, low, high) and hermite(x)
  • Fix text field's cursor gets reset to start after resizing

McLib 2.2.1

10 Feb 09:04
Compare
Choose a tag to compare

This hot patch update fixes an annoying issue with Optifine Shader's Anti-Aliasing.

  • Fix OpenGL 1283 error spam (reported by Nichi, 0n3Appl3, Akhbalaev85 and Chunk7)

McLib 2.2

31 Jan 10:24
Compare
Choose a tag to compare

This update features a couple of cool quality of life tweaks to different GUI elements, as well as GUI rendering optimization.

  • Added an ability to use right counterpart keys for Shift, Ctrl and Alt (suggested by Silverx)
  • Added separate mod option for mouse button presses
  • Added mouse wheel display option to mouse button presses display option
  • Added View all keyframes and Select all keyframes context menu options to keyframe elements
  • Added View all keyframes (Home key) and Select all keyframes (Ctrl + A key combo, suggested by Chunk7) to keyframe elements
  • Added Drop the item down and Clear the item context menu options to item slot element
  • Added viewport culling to GUI system which prevents rendering of elements which are not seen on the screen
  • Added Copy transformations and multiple paste contet menu options to GUI transformation editor element (3x3 grid with Translate, Scale, Rotate labels)
  • Changed min and max zoom levels for keyframe elements
  • Fixed (or rather reduced) multi-skin collision with other skins
  • Fixed keyboard input in texture picker always selecting the last element
  • Fixed texture picker resetting skin upon closing

McLib 2.1.2

15 Dec 17:35
Compare
Choose a tag to compare

This patch fix features some bug fixes that are required for the release of my new Chameleon mod.

  • Added RenderLightmap utility class that allows setting hurt colors
  • Added ReflectionUtils.registerResourcePack(IResourcePack) to register resource custom packs
  • Changed scrolling speed in mod options GUI to 51 pixels per mouse wheel scroll
  • Fixed GuiElement.canBeSeen() skipping first parent when checking for visibility
  • Fixed wrong order of math expression parsing resulting into wrong calculations

McLib 2.1.1

01 Nov 09:04
Compare
Choose a tag to compare

This tiny update that provides some changes for Blockbuster.

  • Added GuiCanvasEditor class, which provides basic layout for image-like editors

McLib 2.1

19 Oct 06:29
Compare
Choose a tag to compare

This big update adds a lot of useful code (including WAV file parsing, loading and rendering), a handful of GUI element tweaks and new multi-skin features!

  • Added multi-skin editor, which includes new options:
    • Scale - scales up and down a skin
    • Shift - moves around a skin on the canvas
    • Scale to largest - allows easily to scale to the largest multi-skin in the list
    • Color - allows to multiply every pixel by this color, allowing hue shifting grayscale textures
    • Pixelate - filter that allows to pixelate a texture
    • Erase - option that allows to erase everything below using the current skin's opaque pixels as erase mask
  • Added list sorting to multi-skin
  • Added an option to asynchronously load multi-skin skins (enabled by default)
  • Added WAV parsing and waveform rendering
  • Added favorite and recent color palette GUI elements to color picker
  • Added arrow up and down keystrokes to increment and decrement, respectively, a value in trackpad fields (shift, ctrl and alt affect the value that is getting added or subtracted, suggested by Joziah2)
  • Added an option to disable increment button on trackpad fields
  • Fixed relative value editing of keyframes having horrible results
  • Fixed crash when emptying the text field in texture picker (reported by Tossler)
  • Fixed trackpad fields not indicating that value wasn't accepted after manually inputting out of range (reported by Tossler)
  • Fixed alpha colors not showing transparency when borders are enabled
  • Fixed dashboard not closing properly panels after switching to another GUI (instead of closing through Escape key) causing some panels to bug (reported by Chunk7)

McLib 2.0.3

28 Aug 12:31
Compare
Choose a tag to compare

This minor patch features enormous improvements to keyframe editing GUIs.

  • Added value editing through the value field in the dope sheet editor
  • Added bezier handles editing in tick and value fields when selecting them (instead of showing tick and value of the keyframe)
  • Added multi-selection of keyframes in graph/dope sheet GUI elements:
    • You can select them by Shift + Dragging an area in which all the keyframes will be selected
    • You can select individual keyframes by Shift + clicking on them to select not selected keyframe or deselect selected keyframe
    • You can move multiple-selected keyframes or its handles (depending on selection mode) by editing tick or value fields or dragging
    • You can also duplicate multiple selected keyframes using the same old way of holding alt while clicking else where to duplicate
  • Added context menu to graph/dope sheet elements to:
    • Remove selected keyframes
    • Switch selection between keyframe or its handles
  • Added new interpolations (with in, out, in/out easings): back, elastic and bounce
  • Fixed last keyframe's right bezier handle being editable

McLib 2.0.2

31 Jul 14:39
Compare
Choose a tag to compare

This is a small quick patch which features a couple of neat GUI tweaks.

  • Added a feature to shift the mouse cursor to the opposite side of the screen when dragging trackpad fields
  • Added tracking of how many times keystrokes were pressed recently
  • Added evaluating of math expressions within trackpad fields upon pressing Alt + Enter when focused
  • Changed trackpad fields to use horizontal mouse offset, instead of distance
  • Changed zooming in/out in model renderers be more adaptive (zoom factor changes depending on current scale, which makes it faster to zoom in and out)
  • Fixed crash with index out of bounds with list elements (reported by Lycoon)
  • Fixed bug with math expressions having ( in the beginning and ) in the end of the expression being invalid
  • Moved keyframe code from Aperture (for future features)

McLib 2.0.1

12 Jul 07:18
Compare
Choose a tag to compare

This is a small quick patch.

  • Added more characters which are allowed to be input into text fields with filename constraint ([, ], !, @, #, $, %, ^, &, ( and ))
  • Fixed yellow highlight in the texture picker
  • Fixed mouse wheel scrolling going through when scrollbar reaches the end in the texture picker (suggested by Lucatim)
  • Updated Chinese strings for 2.0 (thanks to Chunk7, KuenYo_ and H2SO4GepaoAX)

McLib 2.0

26 Jun 18:29
Compare
Choose a tag to compare

This enormous update drastically improves the GUI system that is used in my mods, as well as adding its own configuration system, and different APIs to make it easier to develop GUI stuff. It's also allows you to slightly personalize the GUI.

  • Added configuration system
  • Added Dashboard GUI from Blockbuster mod
    • Added Numpad* keybinds to open a specific panel
  • Added Icon API to ease texture coordinate hell
  • Added GuiUtils.openWebLink(String)
  • Added MatrixUtils class from Blockbuster mod
  • Added Timer class to keep mark and keep track of timed operations
  • Added config options:
    • Primary color — sets the default color for all sorts of GUI elements, including selection and active colors
    • Button borders — toggles black borders around button elements
    • Checkbox instead of toggle element — toggles toggle element rendering as a checkbox
    • Model grid — toggles grid rendering instead of a grass block in model renderer
    • GUI scale — allows to change the GUI scale of McLib's GUIs without changing Minecraft's GUI scale
    • Mouse cursor rendering — toggles mouse cursor rendering (moved from Aperture mod)
    • Keystrokes rendering — toggles pressed keystrokes rendering
    • Background image and background color — allows to set a custom image background or background color
    • Scrollbars options — allow you to customize appearance of scrollbar
    • Max. packet size — vanilla tweak option which allows to increase the limit of Minecraft's network messages
  • Fixed Interpolations.envelope going below 0 when outside of envelope's range
  • Fixed texture picker messing up the resource location in the root
  • Improved math expression parser:
    • Added more math functions:
      • round(x) — round x to nearest integer
      • ceil(x) — round x to upper integer
      • trunc(x) — truncate x, floor x when x is positive, and ceil x when it's negative
      • max(a, b) — return a bigger value between a and b
      • min(a, b) — return a smaller value between a and b
      • exp(x) — e constant to the power of x
      • ln(x) — natural logarithm of x
      • sqrt(x) — square root of x
      • mod(x, d) — get remainder of x divided by d, equivalent to x % d
      • pow(x, p)x to the power of p, equivalent to x^p
      • lerp(a, b, x) — linearly interpolate between a to b using x as a factor
    • Added ternary operator support, for example 0 ? 1 : 5 = 5, 1 ? 4 : 2 = 4 or x >= 0 ? 5 : -5, equals 5 when x is positive, and -5 if x is negative
    • Added boolean comparison operators which return 1 if condition is met, or 0 otherwise (these operators are also have the highest precedence):
      • &&1 if both operands are non-zero
      • ||1 if only one operand non-zero
      • <1 if left operand is less than second
      • <=1 if left operand is less or equal to second operand
      • >=1 if left operand is greater or equal to second operand
      • >1 if left operand is greater to second operand
      • ==1 if left operand equals to second
      • !=1 if left operand isn't equal to second
    • Added ! operator which negates an expression, i.e. if expression is non-zero, then it returns 0, otherwise if expression is 0 it returns 1, for example: !(5 + 2) = 0 and !(2 - 2) = 1
  • Improved GuiDraw.scissor to support nested scissor test
  • Refactored fully the GUI system:
    • Added current focused element to fix multiple selected text fields bug
      • Added an ability to Tab betweeen input fields
      • Added Esc keybind to unfocus the element when focused
    • Added tooltip support to every element
    • Added support for horizontal scroll in scroll element
    • Added context menu API
    • Added keybind support for individual GUI elements
      • Added F9 keybind to any GUI screen to view all available keybinds
    • Added color picker element
    • Changed track pad element:
      • Added increment buttons to incremeent by one
      • Changed dragging from vertical distance to horizontal distance
      • Changed from float to double for better precision
      • Removed label option
    • Changed modal elements to remove themselves from parent instead of unsetting the delegate
    • Fixed labels staying the same after changing to a different language
    • Improved list element:
      • Added label-value lists
      • Added multi-selection support (shift + click adds selects an additional element)
      • Added drag-n-drop sorting support
      • Added direct filtering of elements support
      • Added interpolations list from Blockbuster mod
      • Added support for horizontal lists
    • Refactored resizers to support many new placement features, including automatic layout resizers for responsive row, column and grid placement of the elements
    • Refactored inventory and slot elements
    • Refactored button elements:
      • Added for circulate button element to right click for previous value
    • Refactored model renderer:
      • Added picking code from Blockbuster
      • Changed the navigation within to orbit style
      • Fixed update method to be called correctly regardless of framerate