match ammo types when applying inventory templates
add clear inventory button
enable templ hotkeys even when buttons are hidden
ensure hover info is correct when inv items change
fix too few items made with pre-TFTD mfg rules
fix calculation for manufacturing days left
Only do HQX if it is enabled
Improve graphs performance
Merge pull request #887 from myk002/remember_ammo_in_template

match ammo types when applying inventory templates
Merge pull request #888 from myk002/clear_inventory_button

Add clear inventory button
Merge pull request #889 from myk002/fix_too_few_items_produced

Fix too few items manufactured and days left calculation
Merge pull request #891 from ajschult/hqx

Only do HQX if it is enabled
Fix compiler error
OK button a bit wider
remove clear inventory button; make hotkey only
Merge pull request #896 from redv/interface10_new_research

Pixel perfection: ResearchInfoState
Merge pull request #899 from myk002/move_clear_inv_to_hotkey_only

remove clear inventory button; make hotkey only
set fuse timer to match template
show new state when grenade is (de)activated

if you activate a grenated and explicitly set a timer, the ui is
automatically refreshed and the grenade is visibly shown as primed.
this commit applies that behavior to grenades that get primed with just
a r-click (like proximity grenades) and to all grenades when unprimed
with a r-click.
use clearer icons for inventory template actions