Releases: ashbash1987/hackbox-unity
Releases · ashbash1987/hackbox-unity
v0.13.0 Update
- Added
ParameterListComparerfor better handling of Parameter lists merging. - Added an overloaded
AddChoicesComponenttoStateBuilder - Fixed an connection issue that was caused by multiple connect calls being made on the same Host instance.
- Fixed the regex in
BackgroundHelpersto properly match the beginning of the string. - Refactored the socket data stream code to improve performance.
- Removed HostVersion on the Host component and Fonts properties on the Theme object as these are no longer in use; font use is inferred from presets/component style properties.
v0.12.0 Update
- The Sort component is now supported since the last official version change - essentially a Choices component where the player must drag and drop the options into a sorted order before submitting. Thanks to theoryofgame for adding this support!
- New
Hackbox.Buildersnamespace with some convenience builder-style classes to much more quickly and reliably configure Presets, Components, and States in code. All lower-level code remains intact - this namespace just provides a more friendly higher-level interface to the system. - Added very basic image-based background property mode in the Editor. Should be more friendly now to specify a image with a URL to use as the background for the State or Components.
v0.11.0 Update
- Add
ConnectExistingto Host to allow connecting to an existing room on Hackbox with a given room code and host user ID.
v0.10.0 Update
- Add handling of
changemember events (they occur as the user makes changes to a component, debounced by some interval). UseOnValueChangeorValueChangeEventsto listen for these value change events. - Updated the parameter defaults for TextInput preset to allow specifying a
typeofnumberfor constricting to numeric input only (and also allowmin/max/stepparameters). - More exception handling code in place to more reliably catch unexpected behaviour should it happen.
v0.9.1 Update
- Add
Createmethods to Theme, Preset, UIComponent, and State to avoid having to use ScriptableObject.CreateInstance() each time. (TheState.Create()isn't strictly needed as it doesn't derive from ScriptableObject, but it's implemented to maintain a consistent creation method naming scheme.) - Add
HeaderBackgroundColorandMainBackgroundColorproperties to Theme to make it easier to set the backgrounds to solid colors. - Add
HeaderText,HeaderColorandHeaderBackgroundproperties to State to make it easier to initialise/set those parameters.GetHeaderText()andSetHeaderText()methods will remain to maintain backwards compatibility. - Compressed the event foldout in the Host inspector into a scrollview.
- Updated the package.json to a more modern format.
- Added a CHANGELOG.md to the package.
v0.9.0 Update
- Tweak the regular expression used on the dimension parameter.
- Added
TryGetComponenton State to access a component much in the same vein asDictionary<T>.TryGetValue. - Add the
persistentparameter to TextInput presets & components (devanhurst/hackbox#9) - Add slightly better room code validation and ownership verification in so it can error out more meaningfully before trying to connect to a non-existent or non-owned room.
v0.8.0 Update
- Fix Disconnect event on JavaScript on WebGL builds.
- Add new fields (
ConnectOnStart,ReconnectOnEnable,DisconnectOnEnable) to control automatic connect/disconnect behaviour.
v0.7.0 Update
- New tooltips added to help describe parameters.
- Updated parameters in line with latest Hackbox changes.
- Supports new Choices grid display (
grid,gridColumns,gridGap,gridRowHeight). - Supports
minWidth/minHeighton main part of theme, andminHeight/maxHeighton header part. - Fix for the dimension magic regex.
- Limit hover style parameters to
backgroundandcoloronly as those are the only ones supported.
v0.6.0 Update
Custom fonts are now supported! Setup the font names in the theme, and then use them as you wish in the preset and component objects!
v0.5.0 Update
- Background 'string' drawer now extracted and made more use in other places in the package (namely the Theme main and header backgrounds).
- Helper methods in UIComponent and ParameterList are far more feature complete now. Can get/set parameter and style parameter values far more easily.
- Set the default version for new instances of the Host component to 2 as version 2 is far more feature rich and also fairly stable.
- ParameterList drawer is now foldable, meaning that the inspector doesn't get completely overwhelmed with all of the parameter properties drawing at all times.
- Parameter creation in code is far more friendly now, accepting parameterless constructors and typed constructors for the appropriate types the parameters box around.
- Can now construct states, parameter lists, etc. with object initializers and collection initializers, meaning that code-created elements can take up just a few lines of code now instead of lots of boilerplate-style code being required. The older construction methods are still 100% supported and backwards compatible alongside this new initializer interface.