Sunday 10th March 2024
Blog Entry 8
This week I finished the UI work.
My lecturers had no clue what was going wrong with the UI constructors or localisation so that was a setback since the last blog. However, I was able to find out what was going wrong through a lot of research. I needed to use the NativeConstruct rather than the normal constructor. And for the localisation issue it turns out that when debugging the code the localisation does not work until the end of the function it is in, this is most likely due to how the code is being compiled or an optimisation made by the Unreal Engine that makes it seem like it is not working when it is. Turns out the localisation issues were never issues but a symptom of the constructor issue.
For the UI I have made an exception to my pure C++ rule purely for laying out the UI. I do not want to manually position widgets in C++ as that is a massive time sink and pain. As such only the layout of the UI will be done with blueprints.
The UI now works perfectly and can display the date and time of day in game and display the players stats in the pause menu.
I have also begin thinking about the games environment which I will be starting next week.