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); }
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); }
// 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); }