From 7a6c9480f8e98899e93b9370af69e8bb841a4cb1 Mon Sep 17 00:00:00 2001 From: Sabine Lim Date: Tue, 16 May 2023 02:23:28 +1000 Subject: [PATCH] Update Flexbox --- Basalt/objects/Flexbox.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Basalt/objects/Flexbox.lua b/Basalt/objects/Flexbox.lua index f7a97a8..c7f0b95 100644 --- a/Basalt/objects/Flexbox.lua +++ b/Basalt/objects/Flexbox.lua @@ -76,6 +76,10 @@ return function(name, basalt) return spacing end, + getFlexDirection = function(self) + return flexDirection + end, + setFlexDirection = function(self, direction) if direction == "row" or direction == "column" then flexDirection = direction @@ -84,6 +88,10 @@ return function(name, basalt) return self end, + getJustifyContent = function(self) + return justifyContent + end, + setJustifyContent = function(self, alignment) if alignment == "flex-start" or alignment == "flex-end" or alignment == "center" or alignment == "space-between" or alignment == "space-around" then justifyContent = alignment @@ -92,6 +100,10 @@ return function(name, basalt) return self end, + getAlignItems = function(self) + return alignItems + end, + setAlignItems = function(self, alignment) if alignment == "flex-start" or alignment == "flex-end" or alignment == "center" or alignment == "space-between" or alignment == "space-around" then alignItems = alignment