Hello Guest

Author Topic: 2D Toolkit UI 1.0 beta 3  (Read 54254 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
2D Toolkit UI 1.0 beta 3
« on: April 19, 2013, 12:36:41 pm »
IMPORTANT: This version is not guaranteed to be backwards compatible with the alpha release. Most class names have changed. If you have started work with the alpha version, follow the instructions the beta 2 post to upgrade before proceeding.

This version is backwards compatible with beta 2.


Webplayer demo here

Features:
- Light weight code, ultra fast.
- Lots of control prefabs. Use as a basis for customization, or create your own.
Buttons
Checkboxes
Radio Buttons
Textboxes
Lists
Sliders
Progress bars
Scrollbars
Scrolling areas
- Multi touch support, including on screen keyboard on iOS / Android
- Full mobile / webplayer / PC / Mac support. Almost full Flash support.
- Works in Unity Free & Pro

Bugfixes and improvements:
- Works in Flash, apart from text input. This is a known issue with Unity.
- UIDropDown now has a helper to help set up heights.
- Scrollbar, arrow buttons mirror mouse operations - held down for duration of mouse click.
- Esc/tab entering incorrect input on Mac only (known Unity issue).
- Dismiss on screen keyboard by clicking outside the view
- Scrollbar, when dragging thumb, the arrows aren't highlighted.
- UIControlsHelper works when scaled
- Scrollable area depth masks are now sliced sprites (easily scaled)
- Scrollbar "bar" is a sliced sprite.
- tk2dUIItem doesn't require a collider any more, sphere colliders can be set up.
- textinput password option with configureable character.
- fixed bug where clicking on the next textinput (on mobile) will enter text in both.
- scrollable area option to set value without event.
- in scrollable area, when setting content length programatically, if content length < visible length, scrollbar is hidden.
- tk2dUI prefix on all classes (finalized)
- tk2dUITime is now a static class
- scrollable area snapback uses velocity
- click + hold scrollbar arrow to scroll continuously
- now possible to change toggle buttons at runtime
- scrollbar editor widget corrected and shows thumb size
- editor widgets show extended line when being used, easier to position and tweak correctly.

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit UI 1.0 beta 3
« Reply #1 on: April 19, 2013, 12:45:40 pm »
This is cool.

Will it be compatible with both Unity 3.5 and 4.x?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #2 on: April 19, 2013, 12:52:13 pm »
Yes.

mike2d

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 63
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #3 on: April 19, 2013, 02:06:59 pm »
really nice work !

will this be included in the package or is it a seperate purchase ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #4 on: April 19, 2013, 02:15:07 pm »
@mike2d you've got pm :)

Dgizusse

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #5 on: April 19, 2013, 03:04:17 pm »
Updated from beta 2 using Unity 3.5.7

Works flawlessly!

Very nice job once again.

mike2d

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 63
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #6 on: April 19, 2013, 04:25:09 pm »
thanks :D

AppleGuy

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #7 on: April 21, 2013, 05:42:17 am »
My scrollable area does not seem to be receiving any touch events.

This is what I did.

1. The UI Camera of tk2DUIManager is pointing to my existing tk2DCamera of my current project.
2. As per instruction in the PDF for scrollable area, I created the scrollable area including the camera and layer.

I can see the scrollable area but unable to scroll it.  Please advise.  Thanks.

Will you consider having prefabs that can work with current tk2dcamera instead of a separate camera?

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit UI 1.0 beta 3
« Reply #8 on: April 21, 2013, 08:13:17 am »
Will you consider having prefabs that can work with current tk2dcamera instead of a separate camera?
I also like the option of working with one camera.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #9 on: April 21, 2013, 11:36:35 pm »
It does work, just that it needs the sprites built for that resolution. Obviously then the sizes of things will be different, but I guess you're changing the dimensions of things when you customize anyway, aren't you? I have a script that will rescale appropriately when switching sprite collection, but I'm not sure its worth including in the system as its a bit rough around the edges...

AppleGuy

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #10 on: April 22, 2013, 07:35:54 am »
It does work, just that it needs the sprites built for that resolution. Obviously then the sizes of things will be different, but I guess you're changing the dimensions of things when you customize anyway, aren't you? I have a script that will rescale appropriately when switching sprite collection, but I'm not sure its worth including in the system as its a bit rough around the edges...

I am unable to scroll the scrollable area though I can see it visible on screen.

Logon

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #11 on: April 22, 2013, 10:06:26 am »
Really nice work!
Used this for my main menu plus inventory screen and it works like a charm.

will this be included in the package or is it a seperate purchase ?

I would also like to know this.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #12 on: April 22, 2013, 10:21:35 am »
It does work, just that it needs the sprites built for that resolution. Obviously then the sizes of things will be different, but I guess you're changing the dimensions of things when you customize anyway, aren't you? I have a script that will rescale appropriately when switching sprite collection, but I'm not sure its worth including in the system as its a bit rough around the edges...

I am unable to scroll the scrollable area though I can see it visible on screen.

That should definitely work - I've used it in a project with tk2dCamera set on the sprite collection and also on a perspective camera. Did you simply drag in the prefab and configure from there, or did you set it up yourself?

AppleGuy

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #13 on: April 22, 2013, 10:30:22 am »

That should definitely work - I've used it in a project with tk2dCamera set on the sprite collection and also on a perspective camera. Did you simply drag in the prefab and configure from there, or did you set it up yourself?

I dragged in the prefab.  Set the scrollable area to a scrollable camera.  However, my UI camera for the tk2duimanager is pointing to my existing tk2dcamera instead of another camera and it has a orthographic size of 480.  Will that be an issue?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 beta 3
« Reply #14 on: April 22, 2013, 10:32:46 am »
The UIcamera has to be the camera that "sees" the GUI, whichever that may be.