コード例 #1
0
            private static void Postfix(uGUI_CraftNode __instance)
            {
                if (Object.op_Equality((Object)__instance.get_icon(), (Object)null))
                {
                    return;
                }
                RadialCell  radialCell     = RadialCell.Create(__instance);
                Vector2     targetPosition = uGUI_CraftNodeReflector.GetVisible(__instance) ? radialCell.Position : radialCell.parent.Position;
                GhostMoving ghostMoving    = new GhostMoving((radialCell.radius + radialCell.size) * (float)Config.AnimationSpeedMult, radialCell.size * (float)Config.AnimationFadeDistanceMult, targetPosition);

                ItemIconAnimation.Play(__instance.get_icon(), (ItemIconAnimation)ghostMoving);
            }
コード例 #2
0
            private static void Postfix(uGUI_CraftingMenu.Node node)
            {
                if (node.icon == null)
                {
                    return;
                }
                RadialCell  radialCell     = RadialCell.Create(node, LastIndex);
                Vector2     targetPosition = node.expanded ? radialCell.Position : radialCell.parent.Position;
                float       speed          = (radialCell.radius + radialCell.size) * (float)Config.AnimationSpeedMult;
                float       fadeDistance   = radialCell.size * (float)Config.AnimationFadeDistanceMult;
                GhostMoving newAnimation   = new GhostMoving(speed, fadeDistance, targetPosition);

                ItemIconAnimation.Play(node.icon, newAnimation);
            }
コード例 #3
0
            // Token: 0x06000056 RID: 86 RVA: 0x00002F40 File Offset: 0x00001140
            private static void Postfix(uGUI_CraftNode __instance)
            {
                if (__instance.icon == null)
                {
                    return;
                }
                RadialCell  radialCell     = RadialCell.Create(__instance);
                Vector2     targetPosition = uGUI_CraftNodeReflector.GetVisible(__instance) ? radialCell.Position : radialCell.parent.Position;
                float       speed          = (radialCell.radius + radialCell.size) * (float)Config.AnimationSpeedMult;
                float       fadeDistance   = radialCell.size * (float)Config.AnimationFadeDistanceMult;
                GhostMoving newAnimation   = new GhostMoving(speed, fadeDistance, targetPosition);

                ItemIconAnimation.Play(__instance.icon, newAnimation);
            }
コード例 #4
0
ファイル: Class1.cs プロジェクト: snoopybeegle/Radial-tabs
 // Token: 0x06000038 RID: 56 RVA: 0x000029CC File Offset: 0x00000BCC
 public static void Play(uGUI_ItemIcon actor, ItemIconAnimation newAnimation)
 {
     if (actor == null)
     {
         throw new ArgumentNullException("actor is null");
     }
     if (newAnimation == null)
     {
         throw new ArgumentNullException("newAnimation is null");
     }
     ItemIconAnimation.InitializeUpdater();
     if (ItemIconAnimation.animations.ContainsKey(actor))
     {
         ItemIconAnimation.animations[actor].OnStop(actor);
     }
     ItemIconAnimation.animations[actor] = newAnimation;
     newAnimation.OnStart(actor);
 }
コード例 #5
0
ファイル: Class1.cs プロジェクト: snoopybeegle/Radial-tabs
 // Token: 0x06000050 RID: 80 RVA: 0x00002E81 File Offset: 0x00001081
 private void Update()
 {
     ItemIconAnimation.UpdateAnimations();
 }