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 - Ransu

Pages: [1]
1
Misc Archive / NGUI Teacher wanted, between 67 - 214 € payment!
« on: February 07, 2014, 07:24:12 PM »
Hi!
I would like to understand NGUI basic functions better and need a teacher.
I am a beginner at coding, and NGUI hasn´t yet landed in my brain  :o.

Yes some examples I try work  :), others don´t  >:(... so I need some help
to get some speed ahead.
- patience required
- good to explain basics (what is needed, which codes where and why...)
- somewhat fast response
- Javascript (Unityscript) knowledge is a bonus.
(to questions like: drag and drop, changing sprites, language selection...)

contact:              ransu70@gmail.com

2
NGUI 3 Support / Re: PopUp menu
« on: March 02, 2013, 06:18:37 PM »
In the tutorial 11 in NGUI, I can see the following code on the SlicedSprite "X" that changes color.

using UnityEngine;
[ExecuteInEditMode]
[RequireComponent(typeof(UIWidget))]
[AddComponentMenu("NGUI/Examples/Set Color on Selection")]
public class SetColorOnSelection : MonoBehaviour{
   UIWidget mWidget;
   void OnSelectionChange (string val){
      if (mWidget == null) mWidget = GetComponent<UIWidget>();
      switch (val)
      {
         case "White":   mWidget.color = Color.white;   break;
         case "Red":   mWidget.color = Color.red;      break;
         case "Green":   mWidget.color = Color.green;   break;
         case "Blue":   mWidget.color = Color.blue;      break;
         case "Yellow":   mWidget.color = Color.yellow;   break;
         case "Cyan":   mWidget.color = Color.cyan;      break;
         case "Magenta":     mWidget.color = Color.magenta;   break;
      }
   }
}

If I add a new SlicedSprite of the X and add the code SetColorOnSelection onto it, this mew slicedsprite won´t change color?

If the UISlider.onValueChange is the solution, could someone please write the code, howto do it.

3
NGUI 3 Support / PopUp menu
« on: March 01, 2013, 06:45:39 PM »
Hi, I am new to NGUI and coding so bare with me. There is a tutorial example 11 that shows a POPUP menu.
How do I get a text (label) to show texts according to the selection of the POPUP selection.
Like POPUP alternatives (1,2,3,4)
Pressing 1 - show label "1 is a number"
Pressing 2 - show label "2 is also a number"
Thankful for any help, and please explain clearly as to a noob!  ;)

4
Had the same issue!
å, ä, ö wouldn´t show up. Unless you "forced" them by writing the text in the inspector in Unity3d 8also caused some problems).
Saving as UTF16 gave parsing errors, as u described.

Downloaded Notepad++, saved as UTF8, and all is fine. Seem to be an issue with Monodevelop.

Pages: [1]