// Token: 0x06000256 RID: 598 RVA: 0x0000DA50 File Offset: 0x0000BC50 public static void DrawWorldItems() { try { if (Main.shouldDrawWorldItems.GetData <bool>() && Entities.droppedItems != null) { foreach (WorldItem worldItem in Entities.droppedItems) { if (WorldItemESP.smethod_0(worldItem, null)) { Vector3 vector3_ = WorldItemESP.smethod_2(WorldItemESP.smethod_1(worldItem)); Vector3 vector = WorldItemESP.smethod_3(MainCamera.mainCamera, WorldItemESP.smethod_2(WorldItemESP.smethod_1(worldItem))); Vector3 vector2 = WorldItemESP.smethod_3(MainCamera.mainCamera, vector3_); Vector3 screenPos = Misc.GetScreenPos(WorldItemESP.smethod_2(WorldItemESP.smethod_1(worldItem))); if (vector.z > 0f) { int num = (int)Vector3.Distance(WorldItemESP.smethod_2(WorldItemESP.smethod_1(WorldItemESP.smethod_4())), WorldItemESP.smethod_2(WorldItemESP.smethod_1(worldItem))); if ((float)num <= WorldItemESP.d) { Mathf.Abs(vector2.y - screenPos.y); vector.x += 3f; vector.y = (float)WorldItemESP.smethod_5() - (vector.y + 1f); Rendering.DrawString1(new Vector2(vector.x, vector.y - 10f), worldItem.item.info.displayName.english, Color.white, true, 10, FontStyle.Italic, 3); Rendering.DrawString1(new Vector2(vector2.x, (float)Screen.height - vector2.y - 20f), string.Format("[{0}m]", num), Color.white, true, 10, FontStyle.Italic, 3); Rendering.DrawString1(new Vector2(vector2.x, (float)Screen.height - vector2.y - 30f), string.Format("[{0}x]", worldItem.item.amount), Color.white, true, 10, FontStyle.Italic, 3); } } } } } } catch { } }
// Token: 0x06000257 RID: 599 RVA: 0x0000DC80 File Offset: 0x0000BE80 private void OnGUI() { try { WorldItemESP.DrawWorldItems(); } catch { } }