Scorpio.UI - a new ui & skin system
View Single Post
10-15-20, 02:10 AM
A Flamescale Wyrmkin
Join Date: Aug 2011
Just finished the new Cube, it's browser is using the SimpleHtml to show the contents, the main problem is how to simply generate the contents, since we need a complex string concat to generate the html.
I used a trick from my web framework called template string, so the Lua code can be embed into the string, and used to generate the html.
For the example in the pic, the template string is:
And the code that use it to generate the result is :
Just like build a tiny website in the game.
The template string's doc is on
if it interesting you.
View Public Profile
Send a private message to kurapica.igas
Find More Posts by kurapica.igas