Hello,

i have been thinking quite a bit about how to integrate a theme for replays
without having too much trouble. At the moment there is the situation, that
all the replay gui commands are defined in default.cfg and are shown in
normal gameplay as well. That doesn't make very much sense since they can't
be used there.

As i discovered lately, there already is the concept of modifying themes,
which would nicely fit into solving this problem, although it is used for a
different purpose atm (lower screen resolutions).
- There are Theme WML tags (add, change, remove)
- There is code to process these tags

So what i suggest is:
1. Specify for every theme config file a new attribute "replay_theme"
2. On entering the replay screen this theme is loaded and processed

The processing needs a new method, something like "void modify_theme(config&
replay_cfg...)". The replay gui information could be integrated within the
same theme_file or separated in an additional file. I don't have an opinion
on that yet but having to do a quickshot i think i prefer the last option.

So if no one has objections on that i would go and implement it that way.

Regards

Jörg


Reply via email to