Implement editing of areas, like in vector drawing programs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Incomplete
|
Wishlist
|
Unassigned |
Bug Description
Implement editing of areas, like in vector drawing programs (such as Inkscape). This is needed for:
* Event unhide area
* Event conquer area
* Trigger building
* Future events and triggers.
Example:
The user is going to create a trigger building. He presses the mouse button where he wants the trigger, drags the mouse to set the radius and then releases the mouse. Then the options dialog is opened, where he can change the other options (player, building type, count). When he clicks OK in the dialog, the trigger is created and shown on the map with some text, such as "Trigger building: <name>". Holding the mouse pointer over it will show a tooltip with the properties (player, building type, count). Selecting it will allow moving it around by dragging the mouse. It will also show a handle that can be dragged to change the radius. Pressing Delete while the trigger is selected should delete it. Right-clicking on the trigger should bring up a context menu from which the trigger can be deleted or its options menu opened.
This is related to the discussion we had about areas in the editor. I created an empty blueprint for this and linked this bug report