Skip to content

Commit

Permalink
Changed input text responsive
Browse files Browse the repository at this point in the history
  Features:
    - Added fuel choose for burner factory
  Changes:
    - Changed input text responsive
    - Changed product edition (formula)
  Bugfixes:
    - Fixed tooltip in all locale
  • Loading branch information
Helfima committed Aug 25, 2019
1 parent 4a47c72 commit 46735c7
Show file tree
Hide file tree
Showing 19 changed files with 316 additions and 442 deletions.
10 changes: 10 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---------------------------------------------------------------------------------------------------
Version: 0.9.1
Date: 25. 08. 2019
Features:
- Added fuel choose for burner factory
Changes:
- Changed input text responsive
- Changed product edition (formula)
Bugfixes:
- Fixed tooltip in all locale
---------------------------------------------------------------------------------------------------
Version: 0.9.0
Date: 23. 08. 2019
Changes:
Expand Down
1 change: 1 addition & 0 deletions core/ElementGui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ function ElementGui.addGuiButtonSpriteStyled(parent, style, action, type, key, c
end
options.style = style
if type ~= nil and key ~= nil then
if type == "resource" then type = "item" end
options.sprite = type.."/"..key
end

Expand Down
9 changes: 7 additions & 2 deletions core/Form.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Form.methods:init(parent)
self.panelClose = true
self.help_button = true
self.auto_clear = true

self.content_verticaly = true
self:onInit(parent)
end

Expand Down Expand Up @@ -107,7 +107,12 @@ function Form.methods:getPanel()
--menu_panel.style.horizontal_spacing = 10
menu_panel.style.horizontal_align = "right"

local content_panel = ElementGui.addGuiFlowV(flow_panel, "content_panel")
local content_panel
if self.content_verticaly then
content_panel = ElementGui.addGuiFlowV(flow_panel, "content_panel")
else
content_panel = ElementGui.addGuiFlowH(flow_panel, "content_panel")
end
title_panel.drag_target = flow_panel
--Logging:debug(self:classname(), "children",panel.children_names)
return flow_panel, content_panel, menu_panel
Expand Down
Loading

0 comments on commit 46735c7

Please sign in to comment.