Author Topic: UI Starter Kit: Starlink (NGUI + TNet)  (Read 92656 times)

_Daniel_

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #15 on: June 08, 2013, 09:18:49 PM »
Thanks for the clarification.

iwishash

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #16 on: June 10, 2013, 02:21:53 AM »
I reviewed this package.
I think there's lots of useful info about UI design.
I have simple question.
Why do you use seperated "Background Camera" for showing background images?
Is there any benefit compare with using single UI camera?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #17 on: June 10, 2013, 02:34:02 AM »
As I recall, the background camera is used to draw the starry background, which is a mesh rather than a widget -- as well as the blinking star particles.

galuodo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #18 on: June 13, 2013, 09:42:17 PM »
could you please offer a picture of chat window?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #19 on: June 13, 2013, 10:02:42 PM »
It's the second from the bottom. Easier to see it in action -- open up the demo, play, single player, start the match. You can now type by hitting enter.

Trithilon

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #20 on: June 15, 2013, 11:50:38 AM »
This is brilliant! I am happy you considered splitting Starlink and doing this in parts. :)
I am going to get this! XD

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #21 on: June 29, 2013, 07:12:05 AM »
HI,
Nice work, I picked it up and I'm playing with it now.
Especially like the TNet integration example.

At the moment however I have my head deep in UI visual design.

While I have certain visual skills (photo/video etc) one of my weaknesses, like a lot of programmer centric people I suspect, is UI design skills.
I've trawled the sites like http://graphicriver.net/collections/2642138-kn-bz-ui-kit looking for complete UI kits (as well as Asset Store kits), and I'm talking to some artists, but still not quite finding what I need.

I like the clean design of the starlink kit and I've been playing around with some new controls to see if I can use them for a current project.
ex:

Unfortunately it's missing a few essential GUI controls (drop down etc). I'm thinking of making them to fill the gap.
While the photoshop files are included it would be great if you could write up a quick guide as to HOW you created the controls for starlink, as there needs to be consistency to some degree for new controls to fit. Or can you point to a guide you used to create them? for ex, the main button seems to be a thin pixel square with a gradient applied, offset with a black background which ends up as a slight shadow effect?

ty!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #22 on: June 29, 2013, 03:21:58 PM »
Starlink UI features fancy looking buttons and irregularly shaped windows, but you seem to just have square ones here. I'm pretty sure the elements you've used here can all be found in one of the example atlases that comes with NGUI (wooden one I think). Nonetheless, to answer your question, I created all of these in photoshop, but the process can be hard to explain as it involves many steps. For the simplest case try this:

1. Color the background grey so you can see what you're doing in the future.
2. Create a new layer.
3. Draw a white box on this layer.
4. Double-click the white box layer, bringing up Layer Style window.
5. Add a Stroke the same color as the box (white).
6. Right click the layer, rasterize it (this collapses the style)
7. Double-click the layer again for a new Layer style.
8. Add a gradient overlay with 20% Opacity.
9. Add a Drop Shadow effect.
10. Add a Stroke effect and change its Size to be 1 pixel.
11. Close the Layer Style window and hide the Background layer.
12. Save.

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #23 on: June 29, 2013, 07:24:56 PM »
Yes, I've been playing with the other irregular designs as well. This test was more about exploring the standard feel, as well as the gradient semi 3D look.
Just the standard NGUI atlases don't include any of the base files so it's difficult to see the process to modify them for a new atlas.

Thanks for the process outline.

For doing the irregular designs are you using the pen tool to draw them out, then pretty much a variant of the above process?

ty!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #24 on: June 29, 2013, 08:12:22 PM »
Pen to draw the outline.

xunxun

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #25 on: June 30, 2013, 04:13:33 AM »
does this work on iOS for both NGui and Tnet integrated?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #26 on: June 30, 2013, 04:21:58 AM »
Starlink is a game for both iOS and Android, and it uses TNet + NGUI. The content of kit is taken directly from that game. So the answer to your question is "yes".

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #27 on: July 04, 2013, 08:57:56 PM »

4. Double-click the white box layer, bringing up Layer Style window.
5. Add a Stroke the same color as the box (white).


I don't quite get this.
How big a stroke in pixels?
And isn't creating a white stroke and then rasterizing it the same as just creating a white box in the first place?
Or is to to make the corners not so sharp?

ty!

LightSky

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 56
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #28 on: July 05, 2013, 01:29:49 AM »
I just picked this up and it looks fantastic so far. 
Just a quick question regarding the TNet aspect, I have my TNet server running and I assigned the address for the server into the TnTcp script and I can see the server itself on LAN and it works fine.  However whenever I try to connect to the server via TnTcp it causes my client connection to time out repeatedly and it will not show the games that are currently created (The ones created in LAN on the server that was visible).

TLDR:  I can see my TNet server in LAN and makes games but it doesn't work via TNTcp.  It keeps timing out.  I am using my external address.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #29 on: July 05, 2013, 07:31:19 AM »
I don't quite get this.
How big a stroke in pixels?
And isn't creating a white stroke and then rasterizing it the same as just creating a white box in the first place?
Or is to to make the corners not so sharp?

ty!
Default size  (3 pixels). Stroke around a box creates rounded edges.

@LightSky: Via TnTcp? Do you mean just TCP? All connections are done via TCP. UDP is an option for frequent data that you may or may not use. Timing out is most often caused by forgetting to choose "run in background" when building Unity.