Describe the bug
There are two related issues with task icons in the PDA user interface:
- Secondary (additional) tasks do not display icons in map tooltips.
- Task icons may disappear after completing or switching tasks.
Issue 1: Missing icons for secondary tasks
In the CUIMapLocationHint::SetInfoTask() function, secondary tasks explicitly hide the icon:
else if (task->GetTaskType() == eTaskTypeAdditional)
{
m_info["t_icon"]->Show(false); <---- Here!
}
###Issue 2: Icon not rendering after task switch
After completing a task or switching the active task:
texture path is valid
InitTexture() is called
However, the icon is not rendered because UIStatic remains in a disabled texture state (m_bTextureEnable = false).
To Reproduce
Steps to reproduce the behavior:
- Open PDA
- Hover a secondary task → no icon shown
- Complete a task or wait for auto-switch
- New active task appears without icon
Expected behavior
Both storyline and additional tasks should display icons
Icons should always render when texture is set.
Actual behavior
Additional task icons are hidden
Icons may not render after task switch
Root cause
UI logic explicitly hides icons for additional tasks
UIStatic::TextureOff() disables rendering and InitTexture() does not restore it
Screenshots, videos

Proposed solution
Enable icon rendering for additional tasks and align layout with storyline tasks
Ensure texture rendering is re-enabled before assigning a new texture
This results in no icon being displayed for secondary tasks, even when a valid texture is provided.
Fix PDA task icons for additional tasks and after task switch
Desktop (please complete the following information):
- OS: Windows 10 22H2 19045.6466
- OpenXRay night build version 7368d4b
Describe the bug
There are two related issues with task icons in the PDA user interface:
Issue 1: Missing icons for secondary tasks
In the CUIMapLocationHint::SetInfoTask() function, secondary tasks explicitly hide the icon:
else if (task->GetTaskType() == eTaskTypeAdditional)
{
m_info["t_icon"]->Show(false); <---- Here!
}
###Issue 2: Icon not rendering after task switch
After completing a task or switching the active task:
texture path is valid
InitTexture() is called
However, the icon is not rendered because UIStatic remains in a disabled texture state (m_bTextureEnable = false).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Both storyline and additional tasks should display icons
Icons should always render when texture is set.
Actual behavior
Additional task icons are hidden
Icons may not render after task switch
Root cause
UI logic explicitly hides icons for additional tasks
UIStatic::TextureOff() disables rendering and InitTexture() does not restore it
Screenshots, videos

Proposed solution
Enable icon rendering for additional tasks and align layout with storyline tasks
Ensure texture rendering is re-enabled before assigning a new texture
This results in no icon being displayed for secondary tasks, even when a valid texture is provided.
Fix PDA task icons for additional tasks and after task switch
Desktop (please complete the following information):