MOD: Utils - National Wonder Splashes
This is the utility code used by the mods "UI - National Wonder Splash Screens" and "UI - Project Splash Screens"
The code is "self-aware" and will only execute once - this enables it to be included safely into multiple mods, which means that mods can be stand-alone, yet still co-operate.
Mods don't have to include these utilitity classes, they can just define the artwork and Buildings/Projects table entries (see "Tech - Satellites Reveal Cities" and "Unique Building - Bull Ring" for examples). In this case the building/project mods will run without splash screens unless another mod is also enabled that has the utility code.
The code also performs "lazy" (or late) initialisation - so it won't try to compile the list of National Wonders and/or Projects with splash screens defined until needed. This will always be after all mods are loaded. This means that it doesn't matter if the Bull Ring mod loads before or after the National Wonders Splash mod, the latter will always find the formers splash screen definition.