Skip to content

Releases: ashbash1987/hackbox-unity

v0.13.0 Update

14 Jul 17:21

Choose a tag to compare

  • Added ParameterListComparer for better handling of Parameter lists merging.
  • Added an overloaded AddChoicesComponent to StateBuilder
  • Fixed an connection issue that was caused by multiple connect calls being made on the same Host instance.
  • Fixed the regex in BackgroundHelpers to 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

15 Sep 17:07

Choose a tag to compare

  • 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.Builders namespace 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

27 Aug 20:41

Choose a tag to compare

  • Add ConnectExisting to Host to allow connecting to an existing room on Hackbox with a given room code and host user ID.

v0.10.0 Update

12 Aug 20:54

Choose a tag to compare

  • Add handling of change member events (they occur as the user makes changes to a component, debounced by some interval). Use OnValueChange or ValueChangeEvents to listen for these value change events.
  • Updated the parameter defaults for TextInput preset to allow specifying a type of number for constricting to numeric input only (and also allow min/max/step parameters).
  • More exception handling code in place to more reliably catch unexpected behaviour should it happen.

v0.9.1 Update

13 Apr 21:05

Choose a tag to compare

  • Add Create methods to Theme, Preset, UIComponent, and State to avoid having to use ScriptableObject.CreateInstance() each time. (The State.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 HeaderBackgroundColor and MainBackgroundColor properties to Theme to make it easier to set the backgrounds to solid colors.
  • Add HeaderText, HeaderColor and HeaderBackground properties to State to make it easier to initialise/set those parameters. GetHeaderText() and SetHeaderText() 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

10 Apr 21:51

Choose a tag to compare

  • Tweak the regular expression used on the dimension parameter.
  • Added TryGetComponent on State to access a component much in the same vein as Dictionary<T>.TryGetValue.
  • Add the persistent parameter 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

06 Feb 20:45

Choose a tag to compare

  • Fix Disconnect event on JavaScript on WebGL builds.
  • Add new fields (ConnectOnStart, ReconnectOnEnable, DisconnectOnEnable) to control automatic connect/disconnect behaviour.

v0.7.0 Update

09 Nov 20:12

Choose a tag to compare

  • 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/minHeight on main part of theme, and minHeight/maxHeight on header part.
  • Fix for the dimension magic regex.
  • Limit hover style parameters to background and color only as those are the only ones supported.

v0.6.0 Update

23 Sep 19:04

Choose a tag to compare

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

23 Sep 14:51

Choose a tag to compare

  • 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.