Re: [MOD 0.14] Sticky notes - leave notes or signs on the map
Posted: Sun Feb 25, 2018 9:52 am
by Ironhair
hoping there's a .16 alternative as well !!
Re: [MOD 0.14] Sticky notes - leave notes or signs on the map
Posted: Tue Feb 27, 2018 1:33 pm
by SereneRebel
I have loaded Stickynotes 2.1.3 into 0.16.24 and hammered it to work
there was quite a few changes and i dont think it looks quite right but it works
changes
info.json
Line 8 change version to "0.16"
prototypes/styles.lua
Line 26 change to parent="frame",
Line 58 change to parent="label",
Line 106 change to parent="button",
Line 127 change to parent="checkbox",
prototypes/entities.lua -- these may not be exactly what's needed but it worked for now
Line 61 Insert icon_size = 32,
Line 105 Insert icon_size = 32,
Line 136 Insert icon_size = 32,
Line 148 Insert icon_size = 32,
Line 150 Change to max_health = 1,
Line 317 Insert sticky_text.icon_size = 32
after sticky_text.icon = "__StickyNotes__/graphics/sign-icon.png"
Line 166 Change to filename = "__base__/graphics/entity/combinator/activity-leds/constant-combinator-LED-N.png",
Line 174 Change to filename = "__base__/graphics/entity/combinator/activity-leds/constant-combinator-LED-E.png",
Line 182 Change to filename = "__base__/graphics/entity/combinator/activity-leds/constant-combinator-LED-S.png",
Line 190 Change to filename = "__base__/graphics/entity/combinator/activity-leds/constant-combinator-LED-W.png",
Add to end of file
default_gui.hflow_stknt_style =
{
type = "horizontal_flow_style",
control.lua
Line 649 change to script.on_event(defines.events.on_pre_player_mined_item, on_destruction )
Line 39 change to gui0 = player.gui.left.add({type = "flow", name = "flow_stknt", style = "achievements_vertical_flow", direction = "horizontal"})
Line 50 change to gui2 = gui1.add({type = "flow", name = "flw_stknt_colors", direction = "horizontal", style = "hflow_stknt_style"})
on the language file the spaces either side of the = needs to be removed