I've moved all UI-related textures to a new module to allow for custom skins. All references to these textures were updated to a virtual module named "skin" that just redirects to a real module (skin-default) in this case. Engine has a dependency on that virtual module (I had that part cut out, but it didn't help).
This works perfectly when the game starts up. However, it breaks at the loading screen, which is where the module environment is updated. In all but one screen (minichat console), the moved textures are missing.
It seems like the skins do not inherit from "default" anymore and thus do not even define the textures. The minichat works, because it doesn't rely on the inherited skin properties.
I can fix the missing textures with:
reloadSkin engine:default
reloadSkin engine:pauseMenu (and all the others)
Strangely enough, when I return back to the main menu, the textures are missing there, too.
The code can be found here: 452b981
I've moved all UI-related textures to a new module to allow for custom skins. All references to these textures were updated to a virtual module named "skin" that just redirects to a real module (skin-default) in this case. Engine has a dependency on that virtual module (I had that part cut out, but it didn't help).
This works perfectly when the game starts up. However, it breaks at the loading screen, which is where the module environment is updated. In all but one screen (minichat console), the moved textures are missing.
It seems like the skins do not inherit from "default" anymore and thus do not even define the textures. The minichat works, because it doesn't rely on the inherited skin properties.
I can fix the missing textures with:
Strangely enough, when I return back to the main menu, the textures are missing there, too.
The code can be found here: 452b981