Added toolbar button color for open flows

* Added top flow button style `Gui.top_flow_button_visible_style`
* Added function to style toolbar buttons `Gui.left_toolbar_button_style`
* Modified code to call the toolbar button style function
This commit is contained in:
badgamernl
2020-02-26 01:36:40 +01:00
parent 2d90d1dcdd
commit 76f86b7a97
2 changed files with 54 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ Gui.top_elements = {}
-- @field Gui.top_flow_button_style
Gui.top_flow_button_style = mod_gui.button_style
--- The style that should be used for buttons on the top flow where the flow it opens is visible
-- @field Gui.top_flow_button_visible_style
Gui.top_flow_button_visible_style = 'menu_button_continue'
--[[-- Gets the flow which contains the elements for the top flow
@function Gui.get_top_flow(player)
@tparam LuaPlayer player the player that you want to get the flow for