Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - will_brett

Pages: [1]
1
NGUI 3 Support / NGUI Grid sorts items 1, 10, 2, 3, etc
« on: April 16, 2015, 05:49:16 AM »
So my grid is sorting items 1, 10, 2, 3, etc when I want it to sort 1, 2, 3, .... , 10

How can I achieve this?

Thanks

2
NGUI 3 Support / NGUI grid with different sized elements
« on: March 11, 2015, 07:06:54 AM »
Hey everyone,

apologies if someone has already asked this but I couldn't find anything.

Can you create a grid with differnt sized elements that all have the same width gaps between them even though they are different sized? Like windows metro style.

I've attached a pic also.

Looking forward to your responses.

Thanks

Will

3
NGUI 3 Support / How to assign a sprite from a scriptable object?
« on: December 29, 2014, 06:33:44 PM »
Hey all,

Im creating a scriptable object to manage a load of GUI shop items. The data in the scriptable object then modifies a template item.

My question is how do I define a sprite in a scriptable object? Would I do it as a string to the path of the sprite in the atlas and if so how?

Thanks

Will

4
NGUI 3 Support / Replay typewriter effect each time text is updated
« on: May 29, 2014, 09:23:53 AM »
Hi everyone,

How would I go about getting the typewriter effect to replay when the UILabel is updated?

THanks

5
NGUI 3 Support / Set bool OnClick using Notify not working
« on: April 21, 2014, 08:09:35 AM »
Hey all,

This is probably something really obvious and Im just being a bit thick but I can not get it to work,

I have a GUI button that has a gameobject attached to the Notify part. This triggers the Function MyClickFunction() and it SHOULD change the bool from false to true but it does not. However the Debug.Log is posting so I know its running the function.

Any ideas? Here is the script

  1. public class ButtonClickTrigger: BaseTrigger
  2. {
  3.         public bool _buttonPressed = false;
  4.  
  5.  
  6.         public void MyClickFunction()
  7.         {
  8.                 _buttonPressed = true;
  9.                 Debug.Log ("Button Was clicked");
  10.         }

6
NGUI 3 Support / Desired resolution bigger than my monitor
« on: April 03, 2014, 04:16:34 AM »
Hey everyone.

Run into a problem. Im working on a project that has the game running in portrait at quite a large resolution. 1200 x 1920 however my monitor screen resolution isnt that high so getting the NGUI UI set up is difficult. When I undock my game window and make it full screen it is still only 1906 x  987.

Any suggestions how I can get around this issue?

Thanks

7
NGUI 3 Support / HUD Text issue
« on: January 18, 2014, 03:52:22 PM »
Hi everyone,

Just purchased HUD Text and its a pretty neat little package. However I think Im using it wrong.

I create a UI and under the panel create a sprite and attach the UIfollowTarget script. This works perfectly but I am attaching i am following an enemy that when I destroy posts out a load of errors saying the script is looking for the target but it is not there.

Should I create the UI under the enemy object itself? This would mean having multiple UI's and the enemies are prefabs that keep re-spawning.

Sorry if this is obvious but could do with some guidance.

Thanks

8
NGUI 3 Support / Curved text... is it possible?
« on: August 15, 2013, 11:45:10 AM »
Hi everyone,

I was wondering if you can create text that follows a curve in 2D. Much like in illustrator when you can create text on a spline.

I can think of many uses for this feature, so is it possible?

Cheers

W

9
NGUI 3 Support / Draggable panel that snaps to item???
« on: August 05, 2013, 09:35:30 AM »
Hey everyone.

I have made a panel with a grid and then 8 items inside that grid. The panel drags around perfectly but I want the panel to snap to each individual item much like the home screen on and ipad or iphone does. Is this something that can be done easily with NGUI and if so how?

Cheers and looking forward to your responses.

W

10
NGUI 3 Support / Smooth Zoom NGUI
« on: March 21, 2013, 05:20:37 PM »
Hi everyone.

I want to be able to zoom in on part of my game that is using NGUI when an event is triggered but I want it to be a smooth animation rather than just jump.

Is this something that can be done in NGUI? and if so how?

Thanks

W

11
NGUI 3 Support / What has happended?! My NGUI seems to have gone crazy
« on: March 17, 2013, 11:44:35 AM »
Hello everyone.

I have been working on a project solidly for weeks now and all of a sudden today this has happened (See Pic).

How do I fix this? All the text has gone insane and the buttons have changed slightly in appearance. I don't know what has caused this.

thanks

Will

12
NGUI 3 Support / Sub objects hide when main object is not active
« on: March 16, 2013, 03:26:24 PM »
Hello everyone.

I will try and write this question clearly but if it isn't please feel free to ask questions.

What I have is a little popup menu that I have made from a sprite. Inside this sprite (which is essentially a background image for a menu) I have 6 different buttons. However when the menu sprite is not active the buttons are still visible. How do I go about having these buttons only show when the menu is shown? I don't want to simply deactivate the buttons as there functions require them to be active.

To understand better...

What I am trying to do is a have a button that open up a menu that allows a player to send items to another player.

Then there is a second button that allows you to see the items that you have been sent.

Hope there is enough information here and that I have written the question clearly.

Looking forward to hearing your responses

All the best

WB


13
NGUI 3 Support / [Solved]Progress bar always starts at X 150 scale
« on: February 24, 2013, 05:45:25 PM »
Hello everyone.

I am loving NGUI it has had a massive impact on the quality of my project however I am still really new to it and have run into an issue.

Note: I am using Playmaker

My issue is that when I add the progress bar to  my GUI no matter what I try the foreground always starts at scale 150 in the X axis. I have the rest of it working... ie the add and remove health, just not the starting scale.

Looking forward to hearing your responses

All the best

WB

14
NGUI 3 Support / Resolution on mac looks great, on ipad looks terrible
« on: February 15, 2013, 08:22:01 AM »
Hello everyone.

Just bought NGUI and so far really impressed. I do have an issue though and that is that when I load my game onto the ipad all the NGUI components are really blurry and the text is very difficult to make out.

So far I have tried setting the screen height to the resolution of the ipad '768' and then change from pixel perfect to fixed for mobile device. This however didn't help.

I have only tried using the sci fi atlas that comes as default just to test ngui and have not attempted making my own yet.

Looking forward to your responses.

Thank you

Will

Pages: [1]