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.


Messages - Galahad_druid

Pages: [1]
1
NGUI 3 Support / Can't Add function to with EventDelegate
« on: December 13, 2013, 11:18:54 AM »
Sadly when I try this:

  1.         void Start()
  2.         {
  3.                 EventDelegate.Add(GetComponent<UIPopupList>().onChange, this.OnControllerChange);
  4.         }
  5.  
  6.         private void OnControllerChange (string sel)
  7.         {
  8.                 switch (sel) {
  9.                 case "Default":
  10.                         print ("Normal Movement");
  11.                         GameManager.Player.Movement.controllerType = ThirdPersonMovement.ControllerType.Normal;
  12.                         break;
  13.                 case "Mouse":
  14.                         print ("Mouse Movement");
  15.                         GameManager.Player.Movement.controllerType = ThirdPersonMovement.ControllerType.MouseRotation;
  16.                         break;
  17.                 case "Click":
  18.                         print ("Click Movement");
  19.                         GameManager.Player.Movement.controllerType = ThirdPersonMovement.ControllerType.ClickToMove;
  20.                         GameManager.Player.Movement.Stop();
  21.                         break;
  22.                 }
  23.         }
  24.  

it triggers the following errors:
Quote
Assets/RPG 2.0/Scripts/Mobile/Player/ChangeMovementType.cs(8,31): error CS1502: The best overloaded method match for `EventDelegate.Add(System.Collections.Generic.List<EventDelegate>, EventDelegate)' has some invalid arguments

Assets/RPG 2.0/Scripts/Mobile/Player/ChangeMovementType.cs(8,31): error CS1503: Argument `#2' cannot convert `method group' expression to type `EventDelegate'

What I'm supposed to do? =[

2
NGUI 3 Support / Re: Label in columns
« on: July 29, 2012, 08:10:49 PM »
Thanks,

I'll be trying tomorrow, if succeeds I'll be posting it.

3
NGUI 3 Support / Re: Label in columns
« on: July 29, 2012, 07:38:48 PM »
Surely,

But which logic could work better?

Saving the extra characters in another string and instantiate a new GameObject with UILabel component, applying the saved string into it?

Or the characters could be repositioned in the same Label?

Or this entire idea is less efficient than just making several Labels and placing them myself?

What do you say guys?

4
NGUI 3 Support / Label in columns
« on: July 29, 2012, 03:01:54 PM »
Good afternoon.

It is possible to make Label's extra lines(those after the specified value of Line Count) be organized into a new column?

What I'm trying to do is an e-book for iPads and Android Tabs. I'm using the Example 7 as a starting point since the dragging control and momentum really fits with I'm trying to achieve.

Pages: [1]