Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#3912 closed enhancement (needsinfo)

GUI Highlighting of 2D Rectangles from the Simulation

Reported by: scythetwirler Owned by:
Priority: Nice to Have Milestone:
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by elexis)

It would be really nice to have GUI Highlighting or rectangle drawing on various panels etc. for trigger maps (especially tutorials).

Entity Highlighting is already possible.

It can be handled similar to dialog boxes; send a message through the GuiInterface with some parameters (like the box position), which is parsed by the GUI.

Some hints to process it similar to dialog boxes and triggers: dialogs directory, messages.js (openDialog function), Triggers_demo.js.

Change History (8)

comment:1 by sanderd17, 8 years ago

This should be possible the same way dialogs are done:

Have some XML to define the rectangle, then some GUI JS code that communicates with the GuiInterface on where and how to show it.

comment:2 by sanderd17, 8 years ago

Description: modified (diff)
Keywords: simple added

comment:3 by elexis, 8 years ago

Backlogging due to lack of progress.

comment:4 by elexis, 8 years ago

Milestone: Alpha 21Backlog

comment:5 by scythetwirler, 7 years ago

Keywords: beta added
Milestone: BacklogAlpha 22

comment:6 by elexis, 7 years ago

Description: modified (diff)
Keywords: simple beta removed
Milestone: Alpha 22
Resolution: needsinfo
Status: newclosed
Summary: GUI HighlightingGUI Highlighting of 2D Rectangles from the Simulation

I doubt that you want to highlight arbitrary 2D rectangles from the simulation.

If you want some tutorial campaign that explains the player which panel to use, you should indeed post a GUI notification that arrives at messages.js, but it shouldn't just draw at some 2D coordinates, because the panel locations can change every day.

Hardcoding those in the sim is terrible. Should rather send the name of the panel object and let the GUI decide what to do.

Furthermore we should have a use case.

comment:7 by elexis, 7 years ago

Milestone: Backlog

Backlogging due to lack of progress

comment:8 by elexis, 7 years ago

Milestone: Backlog
Note: See TracTickets for help on using tickets.