コード例 #1
0
        // Token: 0x0600D7A7 RID: 55207 RVA: 0x003AB4AC File Offset: 0x003A96AC
        private UISpineGraphic CreateSpineGraphic(string assetName, float scale, Vector2 offset, int team, GameObject parent, List <ReplaceAnim> replaceAnims)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateSpineGraphicStringSingleVector2Int32GameObjectList ` 1_hotfix != null)
            {
                return((UISpineGraphic)this.m_CreateSpineGraphicStringSingleVector2Int32GameObjectList ` 1_hotfix.call(new object[]
                {
                    this,
                    assetName,
                    scale,
                    offset,
                    team,
                    parent,
                    replaceAnims
                }));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            UISpineGraphic uispineGraphic = new UISpineGraphic();

            uispineGraphic.Create(assetName);
            uispineGraphic.SetParent(parent);
            uispineGraphic.SetDirection((team != 0) ? -1 : 1);
            uispineGraphic.SetPosition(offset);
            uispineGraphic.SetScale(scale);
            uispineGraphic.SetReplaceAnimations(replaceAnims);
            uispineGraphic.PlayAnimation("idle", true, 0);
            uispineGraphic.ForceUpdate();
            return(uispineGraphic);
        }
コード例 #2
0
        // Token: 0x06012F93 RID: 77715 RVA: 0x004D984C File Offset: 0x004D7A4C
        private void CreateSpineGraphic(ConfigDataJobConnectionInfo jobConnectionInfo, ref UISpineGraphic m_graphic, GameObject m_grapgicObj)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateSpineGraphicConfigDataJobConnectionInfoUISpineGraphic_GameObject_hotfix != null)
            {
                LuaDelegation.Lua_BlackJack_ProjectL_UI_HeroSimpleItemInfoUIController_CreateSpineGraphic_ConfigDataJobConnectionInfo_UISpineGraphic_GameObject(this, this.m_CreateSpineGraphicConfigDataJobConnectionInfoUISpineGraphic_GameObject_hotfix, jobConnectionInfo, ref m_graphic, m_grapgicObj);
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.DestroySpineGraphic(ref m_graphic);
            if (jobConnectionInfo == null)
            {
                return;
            }
            m_graphic = new UISpineGraphic();
            float   num      = (float)jobConnectionInfo.UI_ModelScale * 0.01f;
            Vector2 position = new Vector2((float)jobConnectionInfo.UI_ModelOffsetX, (float)jobConnectionInfo.UI_ModelOffsetY);

            m_graphic.Create(jobConnectionInfo.Model);
            m_graphic.SetParent(m_grapgicObj);
            m_graphic.SetDirection(1);
            m_graphic.SetPosition(position);
            m_graphic.SetScale(num);
            m_graphic.SetRectTransformSize(new Vector2(500f / num, 500f / num));
            m_graphic.SetReplaceAnimations(jobConnectionInfo.ReplaceAnims);
            m_graphic.PlayAnimation("idle", true, 0);
            m_graphic.ForceUpdate();
        }
コード例 #3
0
        // Token: 0x060136A3 RID: 79523 RVA: 0x004F2ECC File Offset: 0x004F10CC
        protected void SetSpineAnim(string modelPath, ref UISpineGraphic graphic, GameObject go, ConfigDataSoldierInfo soldierInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSpineAnimStringUISpineGraphic_GameObjectConfigDataSoldierInfo_hotfix != null)
            {
                LuaDelegation.Lua_BlackJack_ProjectL_UI_StoreSoldierSkinDetailUIController_SetSpineAnim_String_UISpineGraphic_GameObject_ConfigDataSoldierInfo(this, this.m_SetSpineAnimStringUISpineGraphic_GameObjectConfigDataSoldierInfo_hotfix, modelPath, ref graphic, go, soldierInfo);
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            float   scale  = (float)soldierInfo.UI_ModelScale * 0.011f;
            Vector2 offset = new Vector2((float)soldierInfo.UI_ModelOffsetX + (float)Math.Abs(soldierInfo.UI_ModelOffsetX) * 0.2f, (float)soldierInfo.UI_ModelOffsetY + (float)Math.Abs(soldierInfo.UI_ModelOffsetY) * 1.1f);

            HeroDetailUIController.CreateSpineGraphic(ref graphic, modelPath, go, 1, offset, scale, soldierInfo.ReplaceAnims);
        }
コード例 #4
0
 // Token: 0x06012F94 RID: 77716 RVA: 0x004D9944 File Offset: 0x004D7B44
 private void DestroySpineGraphic(ref UISpineGraphic m_graphic)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DestroySpineGraphicUISpineGraphic__hotfix != null)
     {
         LuaDelegation.Lua_BlackJack_ProjectL_UI_HeroSimpleItemInfoUIController_DestroySpineGraphic_UISpineGraphic(this, this.m_DestroySpineGraphicUISpineGraphic__hotfix, ref m_graphic);
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     if (m_graphic != null)
     {
         m_graphic.Destroy();
         m_graphic = null;
     }
 }
コード例 #5
0
    public static int Destroy(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            uispineGraphic.Destroy();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #6
0
    public static int get_AssetName(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, uispineGraphic.AssetName);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #7
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic o = new UISpineGraphic();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #8
0
 // Token: 0x0600D7A8 RID: 55208 RVA: 0x003AB5CC File Offset: 0x003A97CC
 private void DestroySpineGraphic(UISpineGraphic g)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DestroySpineGraphicUISpineGraphic_hotfix != null)
     {
         this.m_DestroySpineGraphicUISpineGraphic_hotfix.call(new object[]
         {
             this,
             g
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     if (g != null)
     {
         g.Destroy();
     }
 }
コード例 #9
0
    public static int SetDirection(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            int            direction;
            LuaObject.checkType(l, 2, out direction);
            uispineGraphic.SetDirection(direction);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #10
0
    public static int SetRectTransformSize(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            Vector2        rectTransformSize;
            LuaObject.checkType(l, 2, out rectTransformSize);
            uispineGraphic.SetRectTransformSize(rectTransformSize);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #11
0
    public static int SetParent(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            GameObject     parent;
            LuaObject.checkType <GameObject>(l, 2, out parent);
            uispineGraphic.SetParent(parent);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #12
0
    public static int StopAnimation(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            int            trackIndex;
            LuaObject.checkType(l, 2, out trackIndex);
            uispineGraphic.StopAnimation(trackIndex);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #13
0
    public static int EnableCanvasGroupAlpha(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            bool           enable;
            LuaObject.checkType(l, 2, out enable);
            uispineGraphic.EnableCanvasGroupAlpha(enable);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #14
0
    public static int SetReplaceAnimations(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic     uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            List <ReplaceAnim> replaceAnimations;
            LuaObject.checkType <List <ReplaceAnim> >(l, 2, out replaceAnimations);
            uispineGraphic.SetReplaceAnimations(replaceAnimations);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #15
0
    public static int SetAnimationSpeed(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            float          animationSpeed;
            LuaObject.checkType(l, 2, out animationSpeed);
            uispineGraphic.SetAnimationSpeed(animationSpeed);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #16
0
    public static int IsLoop(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            int            trackIndex;
            LuaObject.checkType(l, 2, out trackIndex);
            bool b = uispineGraphic.IsLoop(trackIndex);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #17
0
    public static int GetAnimationTime(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            int            trackIndex;
            LuaObject.checkType(l, 2, out trackIndex);
            float animationTime = uispineGraphic.GetAnimationTime(trackIndex);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, animationTime);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #18
0
    public static int HasAnimation(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            string         name;
            LuaObject.checkType(l, 2, out name);
            bool b = uispineGraphic.HasAnimation(name);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #19
0
        // Token: 0x0600CAB4 RID: 51892 RVA: 0x0037E698 File Offset: 0x0037C898
        public void CreateSpineGraphic(string assetName)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateSpineGraphicString_hotfix != null)
            {
                this.m_CreateSpineGraphicString_hotfix.call(new object[]
                {
                    this,
                    assetName
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.DestroySpineGraphic();
            UISpineGraphic uispineGraphic = new UISpineGraphic();

            uispineGraphic.Create(assetName);
            uispineGraphic.SetParent(this.m_graphicGameObject);
            uispineGraphic.PlayAnimation("idle", true, 0);
            uispineGraphic.ForceUpdate();
            this.m_spineGraphic = uispineGraphic;
        }
コード例 #20
0
    public static int ShowSlot(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            string         name;
            LuaObject.checkType(l, 2, out name);
            bool show;
            LuaObject.checkType(l, 3, out show);
            uispineGraphic.ShowSlot(name, show);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #21
0
    public static int GetAnimationDuration(IntPtr l)
    {
        int result;

        try
        {
            int total = LuaDLL.lua_gettop(l);
            if (LuaObject.matchType(l, total, 2, typeof(int)))
            {
                UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
                int            trackIndex;
                LuaObject.checkType(l, 2, out trackIndex);
                float animationDuration = uispineGraphic.GetAnimationDuration(trackIndex);
                LuaObject.pushValue(l, true);
                LuaObject.pushValue(l, animationDuration);
                result = 2;
            }
            else if (LuaObject.matchType(l, total, 2, typeof(string)))
            {
                UISpineGraphic uispineGraphic2 = (UISpineGraphic)LuaObject.checkSelf(l);
                string         name;
                LuaObject.checkType(l, 2, out name);
                float animationDuration2 = uispineGraphic2.GetAnimationDuration(name);
                LuaObject.pushValue(l, true);
                LuaObject.pushValue(l, animationDuration2);
                result = 2;
            }
            else
            {
                LuaObject.pushValue(l, false);
                LuaDLL.lua_pushstring(l, "No matched override function GetAnimationDuration to call");
                result = 2;
            }
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #22
0
    public static int PlayAnimation(IntPtr l)
    {
        int result;

        try
        {
            UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l);
            string         name;
            LuaObject.checkType(l, 2, out name);
            bool loop;
            LuaObject.checkType(l, 3, out loop);
            int trackIndex;
            LuaObject.checkType(l, 4, out trackIndex);
            uispineGraphic.PlayAnimation(name, loop, trackIndex);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #23
0
 // Token: 0x06012FE9 RID: 77801 RVA: 0x004DA030 File Offset: 0x004D8230
 public void DestroySpineGraphic(ref UISpineGraphic m_graphic)
 {
     this.m_owner.DestroySpineGraphic(ref m_graphic);
 }
コード例 #24
0
 // Token: 0x06012FE8 RID: 77800 RVA: 0x004DA020 File Offset: 0x004D8220
 public void CreateSpineGraphic(ConfigDataJobConnectionInfo jobConnectionInfo, ref UISpineGraphic m_graphic, GameObject m_grapgicObj)
 {
     this.m_owner.CreateSpineGraphic(jobConnectionInfo, ref m_graphic, m_grapgicObj);
 }
コード例 #25
0
 // Token: 0x060136CA RID: 79562 RVA: 0x004F3390 File Offset: 0x004F1590
 public void SetSpineAnim(string modelPath, ref UISpineGraphic graphic, GameObject go, ConfigDataSoldierInfo soldierInfo)
 {
     this.m_owner.SetSpineAnim(modelPath, ref graphic, go, soldierInfo);
 }
コード例 #26
0
 // Token: 0x0600D800 RID: 55296 RVA: 0x003ABED4 File Offset: 0x003AA0D4
 public void DestroySpineGraphic(UISpineGraphic g)
 {
     this.m_owner.DestroySpineGraphic(g);
 }