Page MenuHomeFeedback Tracker

Move LoadingScreen logic away from constructor
Assigned, UrgentPublic

Description

Reasoning

A considerable amount of mods on the steam workshop is mods for customizing the loading screen created by server owners who aim to build a unified individual "look and feel" for their community.
Doing this shouldn't be hard.

Current Situation

Unless I didn't understand how modding in DayZ works (which is absolutely possible due to the lack of proper documentation), modding constructors is not actually a thing which has been properly implemented yet.

Apparently, we currently have to copy the original constructor logic and then "edit in" our modifications. Neither super nor override seem to work the same way they do for normal functions.

Furthermore, having the constructor do all the things it currently does means that we have to mess with a lot of code to do simple things.

A common requirement is to simply customize the background image of the default loading screen.

Suggested Solution

We shouldn't have to modify the entire thing when it could be as simple as overriding the Init() function (which exists in other loading related classes).

We'd only have to find the ImageBackground widget, call ImageWidget.LoadImageFile() with our custom texture and leave everything else to super.Init().

I'd therefore suggest to properly encapsulate the loading screen logic into reasonable functions so each one can be easily modded.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
Ingame UI

Event Timeline

RandomHost changed Category from General to Ingame UI.
Geez changed the task status from New to Assigned.Nov 8 2021, 11:07 AM