#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 )
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 , 8 years ago
comment:2 by , 8 years ago
Description: | modified (diff) |
---|---|
Keywords: | simple added |
comment:4 by , 8 years ago
Milestone: | Alpha 21 → Backlog |
---|
comment:5 by , 7 years ago
Keywords: | beta added |
---|---|
Milestone: | Backlog → Alpha 22 |
comment:6 by , 7 years ago
Description: | modified (diff) |
---|---|
Keywords: | simple beta removed |
Milestone: | Alpha 22 |
Resolution: | → needsinfo |
Status: | new → closed |
Summary: | GUI Highlighting → GUI 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:8 by , 7 years ago
Milestone: | Backlog |
---|
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.