コード例 #1
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();
        }
コード例 #2
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);
    }