A client script needs to be created that will require the ASCIIEditor API and call the Build function. At the same time, it will pass in all the custom properties that are required.
Create a new script called EditorClient and place it inside the Client folder.
Add Custom Properties
The EditorClient script will need to have quite a few custom properties added so that the buttons, grid, and text are dynamically created when playing the game.
From the Editor folder under My Scripts in Project Content, add the ASCIIEditor script as a custom property called ASCIIEditor.
In the Hierarchy find the Map panel and add it as a custom property called Map.
In the Hierarchy find the UI Scroll Panel inside the Map panel and add it as a custom property called MapScrollPanel.
In the Hierarchy find the Right Controls panel and add it as custom property called Controls.
In the Hierarchy find the UI Scroll Panel inside the Right Controls panel and add it as a custom property called ControlsScrollPanel.
In the Hierarchy find the Increase Width button and add it as a custom property called IncreaseWidth.
In the Hierarchy find the Decrease Width button and add it as a custom property called DecreaseWidth.
In the Hierarchy find the Increase Height button and add it as a custom property called IncreaseHeight.
In the Hierarchy find the Decrease Height button and add it as a custom property called DecreaseHeight.
In the Hierarchy find the Width text and add it as a custom property called WidthText.
In the Hierarchy find the Height text and add it as a custom property called HeightText.
In the Hierarchy find the Export ASCII button and add it as a custom property called ExportASCII.
Edit EditorClient Script
Open up the EditorClient script and require the ASCIIEditor API script.
local ASCIIEditor = require(script:GetCustomProperty("ASCIIEditor"))
Code language:Lua(lua)
Call Build Function
The final set is to call the Build function and pass in all the options.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
3rd Party Cookies
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!