v2.0.0 Neoforge-1.20.6 Major Update - Changes since Tau 1.0.3-1.19
API Changes
Vector2i
renamed toSimpleVec2i
- Theme signature changes to work with the new Minecraft
GuiGraphics
API - Removed
ScaleTransform
andTranslationTransform
Transformation
is no longer an interface but a class- Added
scale
andtranslate
methods to the Transform class to replaceScaleTransform
andTranslationTransform
Transform
component will now also transform inputs given to the children componentsPrimitiveComponent#build
will now take in aBuildContext
instead of lists- Added
ClientTooltipPositioner
parameter toTooltip
- Added
menu
package- Adds container/menu support to Tau
- Tau can now be used to create UI with inventories
- Added new
PlayerInventory
andItemSlot
Component (These components will only function in aTauMenu
)
Internal Changes
ListView
no longer scrolls per child component and instead scrolls by a fixed amountDynamicUIComponent
no longer exposes dangerous fields
v1.0.0-1.18 Major Update
Others
- Ported most functionalities to minecraft version 1.18.2
- Changes below are the differences compared for Tau v1.2.0 - 1.16.x
Tooltip
no longer allow custom colors for its border and background- Removed
showDecimals
field fromSlider
- Added parameter
stepSize
anddecimalPlaces
toSlider
- Added method
drawTooltip
toTheme
- Removed tooltip color related methods from
Theme
v1.0.0-1.19 Major Update
Others
- Ported most functionalities to minecraft version 1.19.3
- Changes below are the differences compared for Tau v1.2.0 - 1.16.x
Tooltip
no longer allow custom colors for its border and background- Removed
showDecimals
field fromSlider
- Added parameter
stepSize
anddecimalPlaces
toSlider
- Renamed
Renderable
toRenderableComponent
- Added method
drawTooltip
toTheme
- Removed tooltip color related methods from
Theme
v1.1.0 - Major Update
Built-in Components
- Added
Spacer
- Allows spacing out items in a Row/Column/ListView - Added
If
- Allows child component to be displayed if a condition is met
Others
- Added Color Schemes
- Added parameter boolean
drawColor
toContainer
- Added color parameters to
Tooltip
- Created
StringAlignUtils
- Added option to not render gray background in ScreenUIRenderer
- Added
sizeBehaviour
field toContainer
- Fixed
DynamicUIComponent
crashes - Added more constructors for
ScreenUIRenderer
andHudUIRenderer
v1.0.5 - Minor Update
Built-in Components
- Added
Slider
- Added
FlatButton
Others
- Texture.Builder now has a constructor parameter for texture location instead of it being in the build method
Button
now uses GuiUtils.drawContinuousTextureBox so it can be any size without any problems- All UIComponents that takes in a list of children now accept Iterables and Arrays.
- Fixed tooltip being drawn over
- Fixed
Padding
not behaving as intended
v1.0.4 - Minor Update
Others
Button
'sonPress
callback is now aConsumer<Integer>
instead ofRunnable
and accepts an integer as the mouse button pressed- Fixed
Text
'sWRAP
overflow not behaving as intended - Fixed
Text
'sCLIP
overflow not behaving as intended - Added
ELLIPSIS
overflow behaviour to text Texture
's default uvSize is now the texture size instead of 0x0- Added
size
field to Texture
v1.0.3 - Minor Update
Others
- Renamed interface
Renderer
toRenderProvider
- Created built-in
RenderProvider
-ItemRenderProvider
v1.0.2 - Minor Update
Built-in Components
- Added
Tooltip
that renders a tooltip when child component is hovered
v1.0.1 - Minor Update
Built-in Components
- Added
Texture
that renders a texture - Added
ListView
that displays a list of items in a columns and creates a scrollable view - Added
Clip
that clips all graphics drawn outside its boundary - Added
Renderable
that is just a wrapper for an IRenderable
Others
- Added
getPosition
overload in Layout that returns position inVector2i
and takes in the size withVector2i
- Fixed
Container
wasn't actually using the color given by the parameter - Added
within
static method inVector2i
that checks if a coordinate is within aVector2i
of postiion and anotherVector2i
of size - Fixed
DynamicUIComponent
not being setup correctly if it implementsPrimitiveUIComponent
- Fixed crashes with
DynamicUIComponent
DynamicUIComponent
now caches layout internally and no longer requiresLayout
to be passed intorebuild
- Made small performance improvement to
DynamicUIComponent
- Added
copy
method toLayout
andStackedAxialSettings
that deep copies the data - Added new
Size
function - Added new overload for percentage
Size
- Added new overload for static
Size
Known Issues
- IGuiEventListeners are interactable after being clipped