Picker Tweaks

by Nexela

Adds various small data tweaks for adjusting base values of items. Tweaks are adjustable via Mod Settings and most start off at factorio defaults.

1 year, 11 months ago
0.16 - 1.1
5.05K

b Near invisible dropoff arrow

2 years ago
(updated 2 years ago)

Players on my server were complaining about the dropoff arrows on splitters (when in priority mode for example) being basically invisible on the splitters. After a lot of testing found out it was this mods option to change that graphic, there's this code in this mod:

local ion_line = settings.startup['picker-iondicators-line'].value
local ion_arrow = settings.startup['picker-iondicators-arrow'].value
if ion_line ~= 'vanilla' then
    utility_sprites.indication_line.filename = '__PickerTweaks__/graphics/iondicators/indication-line.png'
    utility_sprites.indication_line.tint = Color(Color.color[ion_line], 0.5)
end
if ion_arrow ~= 'vanilla' then
    utility_sprites.indication_arrow.filename = '__PickerTweaks__/graphics/iondicators/indication-arrow.png'
    utility_sprites.indication_arrow.tint = Color(Color.color[ion_arrow], 0.5)
end

And the Color(Color.color[ion_arrow], 0.5) and such similar calls are modulating the alpha of the color to half of its original value, which is the cause of this.

Would it be possible to add a new setting option to allow us to define our own transparency value for these, can default to 0.5 as it is now though my players will want it set to 1.0 so there is no change in the transparency while still allowing to set the color.

New response