Hello Guest

Author Topic: 2D Toolkit UI 1.0 Beta 6  (Read 39506 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #15 on: May 21, 2013, 02:53:26 pm »
It's free for existing tk2d users. Part of 2d toolkit 2.0.

IslandOfficials

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #16 on: May 23, 2013, 07:00:53 am »
For the UIDragItems is there a way to check if the object is currently being dragged? I tried GetComponent<tk2dUIDragItem> ().uiItem.IsPressed but that didn't work.

I worked around this by poking around the source and changing isBtnActive to public. Is there any problem with that? Can this (or a new similar variable) be made public in the future?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #17 on: May 23, 2013, 10:22:49 am »
Its probably a better to add an accessor:
Code: [Select]
public bool IsDragging {
  get { return isBtnActive; }
}
Just to make sure its never written into :)

I'll add something to the next version.

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #18 on: May 26, 2013, 04:12:54 pm »
I was wondering - will I be able to use this UI toolkit without the full blown 2d Toolkit?

My specific use case in mind, is to use this as a GUI system for a 3D game. Is this one of the intended/supported use cases?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #19 on: May 26, 2013, 10:57:03 pm »
You will still need tk2d for sprites / atlasing - all the UI stuff relies on that, but doesn't necessarily require it. If you can provide your own sprites, then that could work too - though there are a few required lists.

You can use this as a GUI system for a 3D game, just create a second ortho camera and use that for all the GUI stuff.

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #20 on: May 27, 2013, 07:12:23 am »
You can use this as a GUI system for a 3D game, just create a second ortho camera and use that for all the GUI stuff.

Can I use tk2dCamera?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #21 on: May 27, 2013, 11:29:20 am »
Yes, but you will have to reposition the sprites, resize bits and bobs manually. Its not a MASSIVE amount of work, but its not automatic either.

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #22 on: May 27, 2013, 11:35:24 am »
Then, may I suggest, at this early stage of UI Kit development, perhaps to make a lightweight version, that only has what is needed to make 2D UIs on top of a 3D (or not) game? I think it will be useful, and from a business standpoint, will open your market a little to other Unity developers who focus on 3D games.

I for one, would very much be interested in such "separation of concerns".

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #23 on: May 27, 2013, 11:58:34 am »
I could, but the dependencies will be pretty significant - you will need ability to do sprites, sliced sprites, etc. Thats where I think the integration makes a lot of sense, and the whole pipeline involving automatic building of atlases, etc.

I could add a sample of it being used in a 3D game? Would that help?

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #24 on: May 27, 2013, 12:02:59 pm »
Understood. If too many dependencies, then your approach makes total sense.

A sample use in a 3D game would most definitely help.



rc183

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #25 on: May 28, 2013, 10:21:34 pm »
Hi,

I think there is a bug with the tk2dUIToggleButtonGroup.

In fact when the "OnChange" function is triggered the "SelectedIndex" attribute is the index of the last selected button and not the new selected button.


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #26 on: May 28, 2013, 10:58:54 pm »
@rc183 - Indeed it is. Its been fixed, and will be in 2D Toolkit 2.0 beta2 / final whatever that turns out to be.

TekuStudios

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Teku Studios
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #27 on: June 18, 2013, 11:45:16 am »
Quick question: does the UI only support mouse on PC? Our game doesn't have any mouse input at all, and we want our UI to be controlled by keyboard.
We are an Indie videogame developer located in Teruel, Spain. A small 6-people team which is currently working on the upcoming 'Candle'.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #28 on: June 18, 2013, 11:54:38 am »
At this point, it doesn't support "focusing", which is required for keyboard/gamepad only UIs. You do get full source code though.... :)

TekuStudios

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Teku Studios
Re: 2D Toolkit UI 1.0 Beta 6
« Reply #29 on: June 18, 2013, 11:56:59 am »
Yes, we will try to achieve it somehow, if we have the time for it.
We are an Indie videogame developer located in Teruel, Spain. A small 6-people team which is currently working on the upcoming 'Candle'.