Further on I will probably try to add a company selector to the goal window with a first tab for viewing global goals. The goal list for each scope could then possible have sort by completion percentage rather than by goal ID.
API additions:
- GSGoal::Update(goal_id, text, progress)
- GSGoal::IsCompleted(goal_id) // Returns true if progress is 100, otherwise false
Thoughts about the patch/work
I'm thinking that if you haven't set any progress yet, it shouldn't show any value at all. Or that you can turn of progress display by setting progress to 255. As for NoCarGoal, showing percentage for global goals doesn't really make sense.
This patch includes changes to the savegame format and as I haven't done any such changes before, it is probably not complete in that matter. I have for example not changed the savegame format number yet.
Screenshots
(mind that I haven't updated the Goal strings in NoCarGoal to regard the fact that the goals are left visible after they have been completed)