Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#448 closed task (fixed)

Building construction placement UI

Reported by: Philip Taylor Owned by: Philip Taylor
Priority: Should Have Milestone: Pre-Alpha 1
Component: UI & Simulation Keywords:
Cc: Patch:

Description

When the player chooses to build a building, they need some way to pick a location for it.

The implementation should be somewhat similar to the Atlas entity preview feature. Probable approach is: GuiInterface.js should provide some functions ShowEntityPreview(templateName, x, z, angle, player) and HideEntityPreview(). Those functions would construct a local entity with the preview|templateName magic template, and move it around, and delete it when it's hidden. Show would return a flag indicating if that's a valid build location (based on terrain, obstructions, etc). (Also it'd have to change the colour to indicate obstruction, and deal with FOW etc). The GUI input-handling scripts would just call those functions to show the previews, and then send the parameters to a 'construct' command when the player clicks.

Change History (3)

comment:1 by Philip Taylor, 14 years ago

Resolution: fixed
Status: newclosed

Done in r7285, r7352, etc.

comment:2 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:3 by historic_bruno, 12 years ago

Milestone: Pre-Alpha 1
Note: See TracTickets for help on using tickets.