Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a 'news' board for my game using modulescripts and tables and uilistlayouts?

Asked by 3 years ago
Edited 3 years ago

Now going into this I want you to know that I don't have any idea about how to use tables except this bit of code I've wrote, I'm assuming this will work.

--[[
//
** This is the module for my 'news' board thing I guess you could call it that, it basically shows you a bunch of featured posts with a banner, 'article' title and a brief description.
\\
--]]

local module = {}
local table = {
    articlecount = 1, -->> The amount of articles, I don't know how UIlistlayouts work lol

    article1title = 'test',
    article1desc = 'lorem ipsum lmao',
    article1image = 'insertimageid'

    -->> in theory you could have up to 8 articles here but idk how to, I'll have to research more as that's too much for one question.
}

return module

So I'll debrief what I want to do in more detail, so I'm making the menu for a game and I wanna have featured 'articles' on the game's progress, etc. I'm assuming the best way is to make a modulescript and then require that from all the places instead of having to go into each one and manually editing the GUI's as I want it to be fairly automated, I also want to be able to add as many articles I want, up to 8 with UIlistlayouts however I'll either figure that out on my own with the help you will most likely have provided or ask another question as I usually always do. So basically I'm asking, how can I require the table and put each value into their respective textboxes/imagelabels?

Answer this question