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
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)
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)
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
- 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 below0
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)
— roundx
to nearest integerceil(x)
— roundx
to upper integertrunc(x)
— truncatex
, floorx
whenx
is positive, and ceilx
when it's negativemax(a, b)
— return a bigger value betweena
andb
min(a, b)
— return a smaller value betweena
andb
exp(x)
— e constant to the power ofx
ln(x)
— natural logarithm ofx
sqrt(x)
— square root ofx
mod(x, d)
— get remainder ofx
divided byd
, equivalent tox % d
pow(x, p)
—x
to the power ofp
, equivalent tox^p
lerp(a, b, x)
— linearly interpolate betweena
tob
usingx
as a factor
- Added ternary operator support, for example
0 ? 1 : 5 = 5
,1 ? 4 : 2 = 4
orx >= 0 ? 5 : -5
, equals5
whenx
is positive, and-5
ifx
is negative - Added boolean comparison operators which return
1
if condition is met, or0
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 returns0
, otherwise if expression is0
it returns1
, for example:!(5 + 2) = 0
and!(2 - 2) = 1
- Added more math functions:
- 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
- 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
todouble
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
- Added current focused element to fix multiple selected text fields bug
This is a patch update which reworks file tree system, improves texture picker GUI and a couple of other neat features.
- Added key repeating (
Keyboard.enableRepeatEvents(true);
) (suggested by Tschipp) - Added "Open folder" to texture picker to open current folder
- Added
Interpolations.envelope()
methods which allow to easily make fade in/out factor calculations based on given time value, and durations of fade in, sustain and fade out - Added background option for list elemenet
- Added refreshing of current folder in texture picker
- Added
IResourceTransformer
to allow fixing any resource locations created viaRLUtils
- Added keyboard control to texture picker. You can now use arrows up/down to go up and down in the list, shift + arrow up/down to jump in the beginning/end of the list, type in the name to select the closest matching and enter to select the file/enter the folder
- Changed the way file tree system works to allow lazy loading (instead of full tree generation) and check for changes
A small patch update which is accompanied by Aperture 1.3.2 release.
- Added max values for width and height of
Resizer
class - Added scrollable base GUI element
- Added support for relative width and height for
Resizer
class - Added
double
variants of interpolation functions - Added
Interpolation
enum - Fixed issue with JSON multi resource location
A small patch update that features a couple of fixes, and one small feature.
- Add
random([range/min], [max], [seed])
function to math expression builder - Change clicking on
+
in multi-skin menu to select the added resource location - Fix multiple
../
in the texture picker (reported by mr wolf) - Fix crash with registering texture when a multi-skin child returns a
null
Second update. Mostly provides new code for Blockbuster, Aperture and Metamorph.
- Added a core mod which adds a handler in resource manager to support texture multi resource locations (i.e. multi-skin feature)
- Added texture picker GUI from Blockbuster and file tree API
- Added panel base GUI class (which allows to create multi-paneled GUIs)
- Extracted dummy entity and model renderer GUI from Blockbuster
- Extracted interpolation code from Aperture
- Extracted core modding utils from Blockbuster
- Extracted texture map reflection code from Blockbuster
- Fixed alpha in modals GUI which caused font not to render properly (reported by ycwei982)
Initial release. This bad boy contains so much useful code.
- Extracted math expression code from Aperture
- Extracted GUI framework code from Blockbuster
- Extracted Ernio's network base code from Blockbuster