McHorse's McLib

McHorse's McLib

4M Downloads

McLib 2.0

mchorse opened this issue ยท 0 comments

commented

New stuff

  • Add Icon API for easier icon rendering
  • Add configuration API to allow easier management of global config options
    • Add references to original category and config instances
    • Add some appearance related McLib configuration
      • Primary color (allows to change color of button backgrounds, etc.)
      • Toggle for element borders (allow to disable/enable borders for buttons and other elements)
      • Background color and image options
      • Model renderer's grid option instead of grass block
      • Toggle check box rendering instead of toggles
    • Make config options show up in the order they were added
  • Add a GuiUtils.openWebLink(String)
  • Add list sorting feature (suggested by Frtc and Chunk7)
  • Add a method to return keybinds within GUI (and add help rendering menu)
  • Add a possibility to register keybinds within GUI elements
  • Add context menu (on right clicking) API
  • Add active element switching to the next by pressing tab
    • Doesn't work sometimes with nested elements, needs investigation
  • Add color picker element

Changes

  • Rewrite GUI element hierarchy (introduce parent-child)
  • Rewrite GUI element input (introduce GUI context)
  • Rewrite key handling (from plain void to cancel-able boolean)
  • Rewrite list elements to support multi select
  • Rewrite old wrapper elements:
    • Rewrite GuiTrackpadElement
    • Rewrite GuiButtonElement into their own GuiClickElement<T> subclasses
      • GuiButton -> GuiButtonElement
      • GuiTexturedButton -> GuiIconElement
      • GuiCheckBox -> GuiToggleElement
      • GuiCirculate -> GuiCirculateElement
    • Rewrite GuiSlot and GuiInventory
      • Slightly adjust the code for easier use (with no copy paste)
    • Make sure that all of these wrappers support locked input (enabled = false) indicators
  • Move MatrixUtils from Blockbuster
  • Move pickable GuiModelRenderer from Blockbuster
  • Move mouse cursor rendering code from Aperture

Fixes

  • Fix Interpolations.envelope to not go above and beyond in negative directions...
  • Fix language strings updating with resource packs problem