From 5874085f6235a74f33540a61d8eb9fbc59252ded Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 14 Jun 2019 20:33:43 +0100 Subject: [PATCH] Added doc comments --- expcore/gui.lua | 2 ++ expcore/gui/core.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/expcore/gui.lua b/expcore/gui.lua index a2da7e41..6da96bbb 100644 --- a/expcore/gui.lua +++ b/expcore/gui.lua @@ -18,6 +18,8 @@ local Gui = require 'expcore.gui.core' Gui.set_padding_style(style,up,down,left,right) --- Sets the padding for a gui style Gui.create_alignment(element,flow_name) --- Allows the creation of a right align flow to place elements into Gui.destory_if_valid(element) --- Destroies an element but tests for it being present and valid first + Gui.create_scroll_table(element,table_size,maximal_height,name) --- Creates a scroll area with a table inside, table can be any size + Gui.create_header(element,caption,tooltip,right_align,name) --- Creates a header section with a label and button area Prototype Constructor diff --git a/expcore/gui/core.lua b/expcore/gui/core.lua index 14d6104b..97719e96 100644 --- a/expcore/gui/core.lua +++ b/expcore/gui/core.lua @@ -126,6 +126,8 @@ Gui.set_padding_style(style,up,down,left,right) --- Sets the padding for a gui style Gui.create_alignment(element,flow_name) --- Allows the creation of a right align flow to place elements into Gui.destory_if_valid(element) --- Destroies an element but tests for it being present and valid first + Gui.create_scroll_table(element,table_size,maximal_height,name) --- Creates a scroll area with a table inside, table can be any size + Gui.create_header(element,caption,tooltip,right_align,name) --- Creates a header section with a label and button area ]] local Gui = require 'utils.gui' local Game = require 'utils.game'