#3489 closed defect (fixed)
[PATCH] Gamesetup chat colors wrong
Reported by: | Stan | Owned by: | mimo |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 19 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
We experienced the bug today on r17108
Steps to reproduce :
- Open the lobby
- Join a game
- Ask the host to change player colors
You will see that you kept the original color for the chat, while you should have a new one.
Attachments (3)
Change History (8)
comment:1 by , 9 years ago
by , 9 years ago
Attachment: | gamesetup.js.patch added |
---|
I used playerData[playerSlot].Color from function selectPlayerColor(playerSlot, colorIndex). Works for me so far, but I'm not sure if this is the proper way to do it.
comment:2 by , 9 years ago
Keywords: | patch review added |
---|---|
Milestone: | Backlog → Alpha 19 |
Summary: | Colors are not properly applied in MP gamesetup → [PATCH] Gamesetup chat colors wrong |
Right, if we read the player color from the map settings, then it's no surprise it doesn't update when changing the color with #1580.
by , 9 years ago
Attachment: | t3489_fix_gamesetup_chat_colors_V2.patch added |
---|
Credit goes to Evulant (AlThePhoenix).
Note:
See TracTickets
for help on using tickets.
This also happens when hosting a game yourself and it is not an updating issue. The problem is that gamesetup.js' mapSettings refers to the color set in the map's .xml file (or in case of Random Map, the default colors); see gamesetup.js in function addChatMessage(msg) at lines 1800-1808.