Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#4747 closed enhancement (fixed)

Diplomacy colors

Reported by: temple Owned by: temple
Priority: Should Have Milestone: Alpha 23
Component: UI & Simulation Keywords:
Cc: Patch: Phab:D754

Description

Add a button to toggle between normal and "diplomacy" colors:

  • When playing, players are colored according to your stance towards them: green are allies, yellow are neutral, red are enemies, and blue is you.
  • When observing, players are colored according to their team. (e.g. in a 4v4 one team could be blue and the other red.)

Work in progress at https://code.wildfiregames.com/D754

Change History (9)

comment:1 by elexis, 6 years ago

Priority: Nice to HaveShould Have

comment:2 by elexis, 6 years ago

In 20609:

Move viewed player dropdown update to a separate function in preparation of D754.

Differential Revision: https://code.wildfiregames.com/D1126
Patch By: temple
Refs #4747

comment:3 by bb, 6 years ago

In r20797

Stop serializing minimap playercolors

Patch By: temple Comments By: elexis Differential Revision: https://code.wildfiregames.com/D1124

Version 0, edited 6 years ago by bb (next)

comment:4 by temple, 6 years ago

Owner: set to temple
Patch: Phab:D754
Status: newassigned

comment:5 by elexis, 6 years ago

In r21005 by temple:

Move minimap color deserialization fix out of the gui

Differential Revision: ​https://code.wildfiregames.com/D1250
Reviewed by: elexis

comment:6 by temple, 6 years ago

Resolution: fixed
Status: assignedclosed

In 21107:

Diplomacy Colors

Add a button to toggle between normal and "diplomacy" colors.
Reviewed by: elexis
Comments by: leper, ffffffff, Stan
Fixes: #4747

Last edited 6 years ago by temple (previous) (diff)

comment:8 by elexis, 6 years ago

In 21527:

Implement basic color editing in the options page and use it for the diplomacy colors, refs #4747, rP21107.
Update the RangeOverlay config option only when the options dialog was closed, not each turn, refs rP19519.

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1291

comment:9 by elexis, 5 years ago

In 23091:

Make options page agnostic of session page and implement RangeOverlayManager GUI class, refs #5387, #4747.

Avoids further session commits that missed to keep options.json session code in sync,
enables use of anonymous or object owned config callback handlers and
encourages session developers to make the GUI more reactive to changing options.

Update RangeOverlays when reseting to default, and update
RangeOverlays of selected entities upon closing the page too (not only hotkey).

Differential Revision: https://code.wildfiregames.com/D2389

Note: See TracTickets for help on using tickets.