Skip to content

Add New Formatting option to Creation script#55

Merged
mkafrin merged 4 commits intomkafrin:masterfrom
Mkeefeus:master
Apr 24, 2022
Merged

Add New Formatting option to Creation script#55
mkafrin merged 4 commits intomkafrin:masterfrom
Mkeefeus:master

Conversation

@Mkeefeus
Copy link
Contributor

I added a new formatting option to the creation script that parses the data to a format for use in a config table, rather then individual create function calls. I also added a config to select if you want the new or standard formatting

Mkeefeus added 2 commits April 13, 2022 18:29
Added a new formating option for the creation script that formats for use in a config table rather then individual function calls
Added examples in config and updated formatting
@mkafrin
Copy link
Owner

mkafrin commented Apr 15, 2022

Thanks for the contribution! Been busy today, but will take a look at this tomorrow.

Copy link
Owner

@mkafrin mkafrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very sorry, this somehow slipped my mind. I had a few small suggestions, but otherwise looks good!

Changed config variable to ConfigFormatEnabled, Added spaces around '=', removed a a blank line, added newline t end of file
@Mkeefeus
Copy link
Contributor Author

No worries, I made this for our own server and figured someone else might find it useful. I made the requested edits.

printout = printout .. " vector2(" .. tostring(zone.points[i].x) .. ", " .. tostring(zone.points[i].y) .."),\n"
else
printout = printout .. " vector2(" .. tostring(zone.points[i].x) .. ", " .. tostring(zone.points[i].y) ..")\n"
if Config.ConfigFormat then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to ConfigFormatEnabled as well (in parseCircle and parseBox too).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, moved to fast for my own good. Should be good now

ConfigFormat refactored to ConfigFormatEnabled
@mkafrin mkafrin merged commit 4416db9 into mkafrin:master Apr 24, 2022
@mkafrin
Copy link
Owner

mkafrin commented Apr 24, 2022

Just merged in. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants