Map background images refactoring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Some of the campaign maps have background images, but the tag isn't exposed in the editor. I have 2 solutions in mind:
1. We could have a nifty file selector in the editor to make sure that the user selects an image that already exists.
2. We could have a standard filename for the background image. The map could then simply check if the file is there when loading, and we would remove the "background" option from the map packet. We would have to duplicate some image files then though - the tutorial and 2 Barbarian scenarios share the same background image. Currently, we have:
campaigns/
campaigns/
campaigns/
campaigns/
campaigns/
campaigns/
campaigns/
Note that we also have an inconsistency here . Some pics are in the tribes, and one is in the campaigns.
For option 1., I would vote to put them in campaigns/pics.
For option 2., I would vote to name them <scenario folder>
Related branches
- SirVer: Approve
-
Diff: 69 lines (+6/-6)6 files modifiedcampaigns/atl01.wmf/elemental (+1/-1)
campaigns/emp01.wmf/elemental (+1/-1)
campaigns/emp02.wmf/elemental (+1/-1)
campaigns/t01.wmf/elemental (+1/-1)
campaigns/t02.wmf/elemental (+1/-1)
campaigns/tutorial01.wmf/elemental (+1/-1)
Changed in widelands: | |
status: | New → Confirmed |
milestone: | none → build19-rc1 |
tags: | added: campaign cleanups lowhangingfruit |
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
status: | Confirmed → In Progress |
Changed in widelands: | |
assignee: | GunChleoc (gunchleoc) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
I have always wondered where that image comes from.
I vote for option 2 for two reasons:
- We have the init.lua, whose name cannot be chosen by the map maker. Why should we do it differently for the background?
- The image belongs to the map. If the map is copied, but not the image (I think of user-created maps), the link will become invalid.
Note that I work on the tutorial - I do not think that they need a special background. I also plan to remove the first campaign (see bug 1088222), so there would not be any dupllicates.