From 7b916f126b12101bedcfd38bb0e1088cb169575d Mon Sep 17 00:00:00 2001 From: Wichu Date: Tue, 24 Nov 2020 19:45:51 +0100 Subject: [PATCH] Update to be compatible with Factorio 1.1 --- calcui-styles.lua | 22 +++++++++++++++++++++- changelog.txt | 5 +++-- info.json | 6 +++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/calcui-styles.lua b/calcui-styles.lua index 226c0db..50db32e 100644 --- a/calcui-styles.lua +++ b/calcui-styles.lua @@ -2,9 +2,29 @@ local default_gui = data.raw["gui-style"].default +default_gui.calcui_icon_button = +{ + type = "button_style", + parent = "button", + default_font_color = {}, + size = 38, + top_padding = 1, + right_padding = 0, + bottom_padding = 1, + left_padding = 0, + left_click_sound = {{ filename = "__core__/sound/gui-square-button.ogg", volume = 1 }}, + default_graphical_set = + { + filename = "__core__/graphics/gui.png", + corner_size = 3, + position = {8, 0}, + scale = 1 + } +} + default_gui.calcui_button_style = { type = "button_style", - parent = "icon_button", + parent = "calcui_icon_button", top_padding = 0, right_padding = 0, bottom_padding = 0, diff --git a/changelog.txt b/changelog.txt index 562f313..5ea5662 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,7 +1,8 @@ --------------------------------------------------------------------------------------------------- -Version: 0.18.8 -Date: ???? +Version: 1.1.0 +Date: 2020-11-24 Changes: + - Updated the version for Factorio 1.1 Experimental Branch --------------------------------------------------------------------------------------------------- Version: 0.18.7 Date: 2020-06-25 diff --git a/info.json b/info.json index a20a2e6..1df3c2c 100644 --- a/info.json +++ b/info.json @@ -1,9 +1,9 @@ { "name": "calculator-ui", - "version": "0.18.8", + "version": "1.1.0", "title": "Calculator UI", "author": "Wichu", - "factorio_version": "0.18", - "dependencies": ["base >= 0.18.33"], + "factorio_version": "1.1", + "dependencies": ["base >= 1.1.0"], "description": "This mod adds a calculator with advanced controls to the UI." } \ No newline at end of file -- libgit2 0.22.2