Holographic Signs


This mod adds holographic signs to show configurable icon and text.

Utilities
2 days ago
1.1 - 2.0
23.6K

i New option for changing the speed of update animation

2 years ago

1.
In speech_bubbles.lua change line 18 from name="compi-speech-bubble", to name="hs-speech-bubble",.

2.
In data.lua (or prototypes/holo_sign.lua, whichever is more convenient) add:

data:extend({
{
    type = "speech-bubble",
    name = "hs-speech-bubble",
    style = "compilatron_speech_bubble",
    wrapper_flow_style = "compilatron_speech_bubble_wrapper",
    fade_in_out_ticks = settings.startup["hs-opt-update-animation-ticks"].value,
    flags = {"not-on-map", "placeable-off-grid"}
},
})

3.
In settings.lua add this definition:

{
  type = "double-setting",
  name = "hs-opt-update-animation-ticks",
  setting_type = "startup",
  default_value = 30.0,
  minimum_value = 0.0,
  maximum_value = 300.0,
}

4.
In locale/en/config.cfg in mod-setting-name section add hs-opt-update-animation-ticks=Update animation ticks.

2 years ago

Thanks a lot! Added to the new version! =)

New response