Whilst still ugly, the new implementation is much simpler than the old.
Gone are all the add/remove checks and adding to hazard list and keeping
the id, making the hazards automatically defined based on graphics size
and changeable without a stupid apply button... but the internal
implementation is still rusty. Wasteful re-construction of entire hazard
array on every change to a single hazard. Will refactor with addition of
a graphical representation.
Maybe still not the prettiest interface in the world, but it is LEAGUES
ahead of what it used to be. Icons are used to indicate the type of
hazard, in addition to also showing the hazard itself. Everything is
easily understandable graphically now, as opposed to that annoying long
text. The controls may be able to be streamlined, but for now one of the
worst parts of the editor has been fixed.
Removed an extranous import.