Example #1
0
 public void FindAll()
 {
     this.mask     = this.cdRoot.Find("Mask1").gameObject;
     this.mask1    = this.cdRoot.Find("Mask2").gameObject;
     this.mask2    = this.cdRoot.Find("Mask3").gameObject;
     this.tweener  = this.mask.GetComponent <TweenFill>();
     this.tweener1 = this.mask1.GetComponent <TweenFill>();
     this.tweener2 = this.mask2.GetComponent <TweenFill>();
 }
Example #2
0
 static public int get_to(IntPtr l)
 {
     try {
         TweenFill self = (TweenFill)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.to);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #3
0
 static public int SetEndToCurrentValue(IntPtr l)
 {
     try {
         TweenFill self = (TweenFill)checkSelf(l);
         self.SetEndToCurrentValue();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
    //TODO почистить
    public override void Subscribe()
    {
        UIEventListener.Get(UIButtonBack.gameObject).onClick       += GoToCategoryScreen;
        UIEventListener.Get(UIButtonSettings.gameObject).onClick   += GoToSettingsScreen;
        UIEventListener.Get(UIScrollUpButton.gameObject).onClick   += OnPressButtonScrollUpHandler;
        UIEventListener.Get(UIScrollDownButton.gameObject).onClick += OnPressButtonScrollDownHandler;

        uiSpriteLoaderTweenFill = UISpriteLoader.GetComponent <TweenFill>();
        uiSpriteLoaderTweenFill.onFinished.Add(new EventDelegate(LoadColoringScene));

        selectedPageItemIndex = 0;
    }
Example #5
0
 static public int constructor(IntPtr l)
 {
     try {
         TweenFill o;
         o = new TweenFill();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #6
0
    // Token: 0x060005CF RID: 1487 RVA: 0x00034A9C File Offset: 0x00032C9C
    public static TweenFill Begin(GameObject go, float duration, float fill)
    {
        TweenFill tweenFill = UITweener.Begin <TweenFill>(go, duration, 0f);

        tweenFill.from = tweenFill.value;
        tweenFill.to   = fill;
        if (duration <= 0f)
        {
            tweenFill.Sample(1f, true);
            tweenFill.enabled = false;
        }
        return(tweenFill);
    }
Example #7
0
    /// <summary>
    /// Start the tweening operation.
    /// </summary>

    static public TweenFill Begin(GameObject go, float duration, float fill)
    {
        TweenFill comp = UITweener.Begin <TweenFill>(go, duration);

        comp.from = comp.value;
        comp.to   = fill;

        if (duration <= 0f)
        {
            comp.Sample(1f, true);
            comp.enabled = false;
        }
        return(comp);
    }
Example #8
0
 static public int set_from(IntPtr l)
 {
     try {
         TweenFill     self = (TweenFill)checkSelf(l);
         System.Single v;
         checkType(l, 2, out v);
         self.from = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #9
0
 static public int set_value(IntPtr l)
 {
     try {
         TweenFill self = (TweenFill)checkSelf(l);
         float     v;
         checkType(l, 2, out v);
         self.value = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #10
0
    public static TweenFill Begin(GameObject go, float duration, float fillAmount, float initValue)
    {
        TweenFill comp = Begin <TweenFill>(go, duration);

        comp.from      = comp.fill;
        comp.initValue = initValue;
        comp.to        = fillAmount;

        if (duration <= 0f)
        {
            comp.Sample(1f, true);
            comp.enabled = false;
        }
        return(comp);
    }
Example #11
0
    /// <summary>
    /// Start the tweening operation.
    /// </summary>

    static public TweenFill Begin(GameObject go, float duration)
    {
        TweenFill comp = UITweener.Begin <TweenFill>(go, duration);

        comp.Fill = comp.from;

        if (duration <= 0f)
        {
            comp.Sample(1f, true);
            comp.enabled = false;
        }
        else
        {
            comp.enabled = true;
        }
        return(comp);
    }
Example #12
0
 static public int Begin_s(IntPtr l)
 {
     try {
         UnityEngine.GameObject a1;
         checkType(l, 1, out a1);
         System.Single a2;
         checkType(l, 2, out a2);
         System.Single a3;
         checkType(l, 3, out a3);
         var ret = TweenFill.Begin(a1, a2, a3);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }