ID:1775479
 
Resolved
BYOND Version:507
Operating System:Windows 7 Pro 64-bit
Web Browser:Chrome 40.0.2214.94
Applies to:Webclient
Status: Resolved

This issue has been resolved.
507.1272

Descriptive Problem Summary:
Controls with images set by \ref don't update on initial load

Numbered Steps to Reproduce Problem:
Compile and run Frontline Assault source and start a game and keep your eye on the player names and the colored icons next to them. All the colored icons should appear on game start with the player names.

Code Snippet (if applicable) to Reproduce Problem:
var/rsc_img = fcopy_rsc("Images\\Unit_[p.m_iIndexOfPlayer]_Off.png")
winset(m, "GamePane.Player[p.m_iIndexOfPlayer]Icon", "image-mode=stretch;image=\ref[rsc_img]")


Expected Results:
Player colored icons should appear next to names on game start.

Actual Results:
Colored icons don't appear until we make a second call on the players turn.

Does the problem occur:
Every time on inital load.

When does the problem NOT occur?
On the second call when we highlight the players turn.

Workarounds:
- Likely would be able to resolve the issue by playing around with the code a little bit. Figure out a way to cache the resources before trying to render them. Timing issue is possible.
- Could embed the resources as well.

Image showing the missing green icon that should have rendered when the game was started. The first two players had their turn and we're waiting for the third player to go. The highlight on the third player is what gets the icon to render. When the 4th player goes, we'll change the 3rd players icon to dull and highlight the 4th player and that's when we start seeing the icons.

I believe this has been fixed in 507.1280, related to id:1781490. Leastwise I'm not seeing it in that build.
Lummox JR resolved issue