Skip to content

WIP: Better waypoint icons

Ghost User requested to merge Lyberta/WaypointIcons into develop

So I decided to fix the color problem once and for all. Current waypoint icons suck because they use color from HUD icons. The solution is to add grayscale icons that will be perfectly colored at runtime. This branch does exactly that.

I have created the grayscale version of Luma theme locally using the following script in the copy of the luma directory:

for img in $(find . -iname '*.tga'); do echo -n "Converting $img"; convert -colorspace GRAY $img $img && echo ' [Done]'; done
for img in $(find . -iname '*.tga'); do echo -n "Normalizing $img"; convert -normalize $img $img && echo ' [Done]'; done

This creates normalized grayscale images that have absolutely no color information left. Now they can be colored to our heart's content. Then I cherry-picked ones that are needed and gave them waypoint_* naming scheme. Those icons are not included in the repo because I feel that we may be able to completely do away with colored HUD icons on disk and I don't want to increase repo size right now with something that can go through many revisions before the merge.

Entity fields

The m_waypoint field of game items was renamed to m_waypoint_text. m_waypoint_icon was introduced to hold the name of the waypoint icon.

New HUD icons

Screenshot_at_2018-06-15_21-04-31

  • waypoint_armor
  • waypoint_armor_mega
  • waypoint_dom_team1
  • waypoint_dom_team2
  • waypoint_dom_team3
  • waypoint_dom_team4
  • waypoint_flag
  • waypoint_flag_carrying
  • waypoint_flag_lost
  • waypoint_fuel_regen
  • waypoint_health
  • waypoint_health_mega
  • waypoint_invisibility
  • waypoint_jetpack
  • waypoint_ka_ball
  • waypoint_ka_ball_carrying
  • waypoint_key
  • waypoint_key_carrying
  • waypoint_key_dropped
  • waypoint_shield
  • waypoint_speed
  • waypoint_strength
  • waypoint_weapon_blaster
  • waypoint_weapon_shotgun
  • waypoint_weapon_machinegun
  • waypoint_weapon_mortar
  • waypoint_weapon_minelayer
  • waypoint_weapon_electro
  • waypoint_weapon_crylink
  • waypoint_weapon_vortex
  • waypoint_weapon_hagar
  • waypoint_weapon_devastator
Edited by Mario

Merge request reports