Commit 7b916f126b12101bedcfd38bb0e1088cb169575d
1 parent
5b2870d3
Update to be compatible with Factorio 1.1
Showing
3 changed files
with
27 additions
and
6 deletions
calcui-styles.lua
| @@ -2,9 +2,29 @@ | @@ -2,9 +2,29 @@ | ||
| 2 | 2 | ||
| 3 | local default_gui = data.raw["gui-style"].default | 3 | local default_gui = data.raw["gui-style"].default |
| 4 | 4 | ||
| 5 | +default_gui.calcui_icon_button = | ||
| 6 | +{ | ||
| 7 | + type = "button_style", | ||
| 8 | + parent = "button", | ||
| 9 | + default_font_color = {}, | ||
| 10 | + size = 38, | ||
| 11 | + top_padding = 1, | ||
| 12 | + right_padding = 0, | ||
| 13 | + bottom_padding = 1, | ||
| 14 | + left_padding = 0, | ||
| 15 | + left_click_sound = {{ filename = "__core__/sound/gui-square-button.ogg", volume = 1 }}, | ||
| 16 | + default_graphical_set = | ||
| 17 | + { | ||
| 18 | + filename = "__core__/graphics/gui.png", | ||
| 19 | + corner_size = 3, | ||
| 20 | + position = {8, 0}, | ||
| 21 | + scale = 1 | ||
| 22 | + } | ||
| 23 | +} | ||
| 24 | + | ||
| 5 | default_gui.calcui_button_style = { | 25 | default_gui.calcui_button_style = { |
| 6 | type = "button_style", | 26 | type = "button_style", |
| 7 | - parent = "icon_button", | 27 | + parent = "calcui_icon_button", |
| 8 | top_padding = 0, | 28 | top_padding = 0, |
| 9 | right_padding = 0, | 29 | right_padding = 0, |
| 10 | bottom_padding = 0, | 30 | bottom_padding = 0, |
changelog.txt
| 1 | --------------------------------------------------------------------------------------------------- | 1 | --------------------------------------------------------------------------------------------------- |
| 2 | -Version: 0.18.8 | ||
| 3 | -Date: ???? | 2 | +Version: 1.1.0 |
| 3 | +Date: 2020-11-24 | ||
| 4 | Changes: | 4 | Changes: |
| 5 | + - Updated the version for Factorio 1.1 Experimental Branch | ||
| 5 | --------------------------------------------------------------------------------------------------- | 6 | --------------------------------------------------------------------------------------------------- |
| 6 | Version: 0.18.7 | 7 | Version: 0.18.7 |
| 7 | Date: 2020-06-25 | 8 | Date: 2020-06-25 |
info.json
| 1 | { | 1 | { |
| 2 | "name": "calculator-ui", | 2 | "name": "calculator-ui", |
| 3 | - "version": "0.18.8", | 3 | + "version": "1.1.0", |
| 4 | "title": "Calculator UI", | 4 | "title": "Calculator UI", |
| 5 | "author": "Wichu", | 5 | "author": "Wichu", |
| 6 | - "factorio_version": "0.18", | ||
| 7 | - "dependencies": ["base >= 0.18.33"], | 6 | + "factorio_version": "1.1", |
| 7 | + "dependencies": ["base >= 1.1.0"], | ||
| 8 | "description": "This mod adds a calculator with advanced controls to the UI." | 8 | "description": "This mod adds a calculator with advanced controls to the UI." |
| 9 | } | 9 | } |
| 10 | \ No newline at end of file | 10 | \ No newline at end of file |