Ishadijcks / Ishadijcks.github.io

PokéClicker
15 stars 32 forks source link

Added a .actionView class to refactor the primary view #164

Closed yuhasem closed 7 years ago

yuhasem commented 7 years ago

currentEnemy, #townView, #shopView, #gymView, and #dungeonView all are part of the class .actionView. hideAllViews() renamed to hideAllActionViews()

This change makes the css slightly more readable as it consolidates a lot of what all these views did into a single rule. It also makes the primary view more extensible, as any new addition only needs to declare the class actionView in the html to be hidden when changing views.

Ishadijcks commented 7 years ago

Ah yeah that is much better.