carlssonemil / orion

Simple, lightweight & intuitive camouflage tracker for Call of Duty: Modern Warfare 2 (2022)
https://orion.emca.app
MIT License
58 stars 30 forks source link

Coming soon gun name missing with Hide Gold enabled #25

Closed florensie closed 1 year ago

florensie commented 1 year ago

image

carlssonemil commented 1 year ago

Whoops! I'll look at it tomorrow! 😄

sol3uk commented 1 year ago

I'm unable to replicate this on any browsers, tried Brave, Firefox, Chrome & Edge.

florensie commented 1 year ago

Here is my export:

[{"category":"Assault Rifles","name":"M4","dlc":false,"comingSoon":false,"progress":{"Scales":true,"Desert Hybrid":true,"Dark Leaves":true,"Urban Renewal":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"TAQ-56","dlc":false,"comingSoon":false,"progress":{"Hidden Snake":true,"Iceland":true,"Stonewall Digital":true,"Back in Blue":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"Kastov 762","dlc":false,"comingSoon":false,"progress":{"Urban Foliage":true,"Rip N' Tear":false,"Forest Ice":false,"Red Tiger":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"Lachmann-556","dlc":false,"comingSoon":false,"progress":{"Marshland":true,"Pine":true,"Dark Tiger Digital":true,"Cthulhu":true,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"STB 556","dlc":false,"comingSoon":false,"progress":{"Sponge Tac":true,"Black Top":true,"Slate":true,"Neon Pink":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"M16","dlc":false,"comingSoon":false,"progress":{"Modern Woodland":false,"Marsh Digital":false,"Dank Forest":false,"Intoxicate":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"Kastov-74U","dlc":false,"comingSoon":false,"progress":{"Ripple Effect":true,"Jungle Digital":true,"Canary Stone":true,"Chemical Reaction":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"Kastov 545","dlc":false,"comingSoon":false,"progress":{"Snowdrift":false,"Mudslide":false,"Savannah":false,"Petri Digital":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"M13B","dlc":true,"comingSoon":false,"progress":{"Tarnished":false,"Field Ops":false,"Projectile":false,"Ice Cave":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Assault Rifles","name":"Chimera","dlc":true,"comingSoon":true,"progress":{"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Battle Rifles","name":"Lachmann-762","dlc":false,"comingSoon":false,"progress":{"Day Marsh":true,"Desert Oil Digital":true,"Stalking Cat":false,"Internal Flame":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Battle Rifles","name":"SO-14","dlc":false,"comingSoon":false,"progress":{"Dune Stalker":false,"Reptilian":false,"Heavy Commando":false,"Tendrils":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Battle Rifles","name":"TAQ-V","dlc":false,"comingSoon":false,"progress":{"Dune Sea":false,"Faded Veil":false,"Anaconda":false,"Slime Time":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Battle Rifles","name":"FTAC Recon","dlc":false,"comingSoon":false,"progress":{"Beached":true,"Torn Scales":true,"Desert Cat":true,"Haunting":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"VEL 46","dlc":false,"comingSoon":false,"progress":{"Arid Digital":true,"Midnight Bay":true,"Tagged":true,"Whiteout":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"MX9","dlc":false,"comingSoon":false,"progress":{"Concrete Jungle":true,"Forest Digital":true,"Overgrown":true,"Rainbow Tiger":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"Lachmann Sub","dlc":false,"comingSoon":false,"progress":{"Darkfall":true,"Arctic Digital":true,"Crime Scene":true,"Poison":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"Vaznev-9K","dlc":false,"comingSoon":false,"progress":{"Snow Melt Digital":true,"Kill Brush":true,"Forest Rain":true,"Omnihex":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"FSS Hurricane","dlc":false,"comingSoon":false,"progress":{"Green Woods":true,"Python":true,"Moon Shadow":true,"Neon Loud":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"Minibak","dlc":false,"comingSoon":false,"progress":{"Timber":true,"Rattlesnake":true,"Green Digital":true,"Skyfire":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"PDSW 528","dlc":false,"comingSoon":false,"progress":{"Shadow Stalker":true,"Gecko":true,"Shale":true,"Power Pink":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"Fennec 45","dlc":false,"comingSoon":false,"progress":{"2087":true,"Motley":true,"Eclipse":true,"Feral Beast":true,"Gold":true,"Platinum":true,"Polyatomic":false}},{"category":"Sub Machine Guns","name":"BAS-P","dlc":true,"comingSoon":false,"progress":{"Grass Snake":false,"Bark Digital":false,"Urban Dusk":false,"Dark Violet":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Shotguns","name":"Lockwood 300","dlc":false,"comingSoon":false,"progress":{"Mosswood":false,"Jungle Cat":false,"Red Cell":false,"Hunting Orange":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Shotguns","name":"Expedite 12","dlc":false,"comingSoon":false,"progress":{"Forest Shadow":true,"Tiger Stripes":true,"Snowed In":true,"Violent Orchid":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Shotguns","name":"Bryson 800","dlc":false,"comingSoon":false,"progress":{"Mud Bath":false,"Bamboo":false,"Ground Cover":false,"Aqua":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Shotguns","name":"Bryson 890","dlc":false,"comingSoon":false,"progress":{"Snowstorm Digital":false,"Stone Guard":false,"Shedding":false,"Arctic Chill":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Light Machine Guns","name":"Sakin MG38","dlc":false,"comingSoon":false,"progress":{"Commando Paint":false,"Necropolis":false,"Fractal Mud":false,"Magma Digital":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Light Machine Guns","name":"HCR 56","dlc":false,"comingSoon":false,"progress":{"Surface Tension":true,"Hexed":true,"Sunset":true,"Tessellation":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Light Machine Guns","name":"556 Icarus","dlc":false,"comingSoon":false,"progress":{"Olive":true,"What Skulls?":true,"Night Quarry":true,"Autumn Dazzle":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Light Machine Guns","name":"Raal MG","dlc":false,"comingSoon":false,"progress":{"Rocky Desert":false,"Trailblazer":false,"Night Terror":false,"Lodge":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Light Machine Guns","name":"RPK","dlc":false,"comingSoon":false,"progress":{"Dark Rainforest":false,"China Lake":false,"Asphalt":false,"Rupture":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Light Machine Guns","name":"Rapp H","dlc":false,"comingSoon":false,"progress":{"Desert Snake":false,"Classic Digital":false,"Quarry":false,"Blue Tiger":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Marksman Rifles","name":"EBR-14","dlc":false,"comingSoon":false,"progress":{"Sandstorm Digital":false,"Moss":false,"Autumn Return":false,"Sunlit Croc":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Marksman Rifles","name":"SP-R 208","dlc":false,"comingSoon":false,"progress":{"Dark Canopy":true,"Desert Digital":true,"Ferns":true,"Crimson Streak":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Marksman Rifles","name":"Lockwood MK2","dlc":false,"comingSoon":false,"progress":{"Sand Viper":false,"Desert Rain":false,"Wild Zebra":false,"Granite":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Marksman Rifles","name":"LM-S","dlc":false,"comingSoon":false,"progress":{"Commando Digital":false,"Abominable":false,"Autumnal":false,"Coral Snake":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Marksman Rifles","name":"SA-B 50","dlc":false,"comingSoon":false,"progress":{"Urban Digital":true,"Bullsnake":true,"Toxicity":true,"Splintered Asphalt":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Marksman Rifles","name":"TAQ-M","dlc":false,"comingSoon":false,"progress":{"Dead Hive":false,"Forest Water":false,"Skin and Scales":false,"Chemist Digital":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Sniper Rifles","name":"MCPR-300","dlc":false,"comingSoon":false,"progress":{"Clay":false,"Snow Grass":false,"Neon Shards":false,"Bloodied":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Sniper Rifles","name":"Signal 50","dlc":false,"comingSoon":false,"progress":{"Gladiator":true,"Unearthed":true,"Earthbound":true,"Spectrums":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Sniper Rifles","name":"LA-B 330","dlc":false,"comingSoon":false,"progress":{"Shark Net":false,"Dirt":false,"Leafless":false,"Teal Tiger":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Sniper Rifles","name":"SP-X 80","dlc":false,"comingSoon":false,"progress":{"Scratch":false,"Dry Field":false,"Aspen":false,"Lichyard":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Sniper Rifles","name":"Victus XMR","dlc":true,"comingSoon":false,"progress":{"Snowy Nights":false,"Burned Edges":false,"Tangographical":false,"Coral Reef":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Handguns","name":"P890","dlc":false,"comingSoon":false,"progress":{"Sand":true,"Muddied":false,"Blue Digital":false,"Pixel Land":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Handguns","name":".50 GS","dlc":false,"comingSoon":false,"progress":{"Blades":true,"Foliage":true,"Leopard":true,"8-Bit Static":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Handguns","name":"X12","dlc":false,"comingSoon":false,"progress":{"Bio Static Digital":true,"Desert Wave":true,"Garter Snake":true,"Azul":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Handguns","name":"Basilisk","dlc":false,"comingSoon":false,"progress":{"Outcrop":false,"Countryside":false,"Dark Denim":false,"Chrysolite":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Handguns","name":"X13 Auto","dlc":false,"comingSoon":false,"progress":{"Void and Light":false,"Asphalt Digital":false,"Dark Echo":false,"Party Time":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Launchers","name":"PILA","dlc":false,"comingSoon":false,"progress":{"Dead Leaves":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Launchers","name":"STRELA-P","dlc":false,"comingSoon":false,"progress":{"Deep Jungle":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Launchers","name":"JOKR","dlc":false,"comingSoon":false,"progress":{"Azure Fray":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Launchers","name":"RPG-7","dlc":false,"comingSoon":false,"progress":{"Jungle Digital (RPG)":false,"Gold":false,"Platinum":false,"Polyatomic":false}},{"category":"Melee","name":"Combat Knife","dlc":false,"comingSoon":false,"progress":{"Crimson":true,"Gold":true,"Platinum":false,"Polyatomic":false}},{"category":"Melee","name":"Riot Shield","dlc":false,"comingSoon":false,"progress":{"Urban Zebra":false,"Gold":false,"Platinum":false,"Polyatomic":false}}]

I'm using Firefox v107.0

It seems to only occur when the coming soon gun is in the first column, meaning 5 or all other ARs hidden.

sol3uk commented 1 year ago

The hide gold is a red herring, it's if it's the first in the list: image You can delete the other weapon divs until it becomes first in the row and I'm assuming there's some CSS that breaks. I'll have a further look in a sec after I finish work 😄

sol3uk commented 1 year ago

Figured it out, its because the height isn't pushed all the way out and it's not fixed for "coming soon" css class, so it squishes up and hides the text accidentally: image image

sol3uk commented 1 year ago

Could maybe remove the position absolute and change it to an ::after instead of a ::before @carlssonemil? There's probably a better fix but that would be my first attempt

carlssonemil commented 1 year ago

Could maybe remove the position absolute and change it to an ::after instead of a ::before @carlssonemil? There's probably a better fix but that would be my first attempt

Nice find! I'll take a look at it after work!