Creating an update log with previous versions

Hi, I’ve been meaning to add an update log to my game for a while.
The basic idea is as follows:

Players will see the current update by default but can view previous updates if they wish with the buttons on the right. I currently have a module set up like this:

I want to show the data inside of each table when a button is pressed that matches the version. I’m not sure if this is the best way of doing it, so I’m seeking guidance. If I went forward with this method, how would I structure it? Or is there a better way of doing this? What is it?

Thank you in advance for the help!!

2 Likes

If you want them to display in a specific order, I would personally design it somewhat like this:

local updateLogs = {
	{
		version = "v021",
		entries = {
			"entry 1",
			"entry 2"
		}
	}, -- first update shown

	{
		version = "v010",
		entries = {
			"entry 1",
			"entry 2"
		}
	}, -- second update shown
}

It would allow you to easily get the latest update given that it’s at the top of the table, by doing updateLogs[1].
It would also make sure that the order of updates will be strictly the way you intended it to be.

1 Like

Thanks for the pointer. I’m still not sure if I can put all of it in one text label or if I need to make new ones for each string depending on the amount. I think it’s also worth mentioning that it’s only one scrolling frame. Would it be worth reformatting it to multiple scrolling frames? Or can I update that one dynamically?
image

I made something like this in the past, it would be more convenient to have more than one TextLabel if you want more complex formatting. I’m not quite sure which scrolling frame you’re talking about, but if you’re speaking of displaying the update logs - I would personally have a single ScrollingFrame that I clear & refill whenever the displayed update is switched.

Okay, I have a general idea now. I’ll try reformatting the thing and I’ll follow your advice on what to do with it. Thanks for the help

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.