Doomsday Script (DS) is the Doomsday 2 scripting language, built right into the core of the engine. Its syntax is heavily Python-inspired, however with a somewhat smaller set of language features. Recently I’ve been improving DS with future needs in mind.
Detour into scripting and log history
It has been a busy week without much time for Doomsday. Sometimes after a break it is easier to return to the project by looking at a completely different topic than what I was working on before. This allows one to ease into the code again in a more comfortable way.
The log history widget was among the first that I wrote on the new UI framework. Since then, I’ve added a handy utility class called
TextDrawable for drawing and laying out UI text. It has nice features like automatic background threading if there is a large amount of text. However,
LogWidget being quite old, I had implemented a separate multithreaded text rendering mechanism there. I decided to replace this with
TextDrawable so there wouldn’t be unnecessary redundancy in the code base.