FormExampleCode: Revision history

From Crumbled World Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 August 2025

6 July 2025

  • curprev 07:5807:58, 6 July 2025Anders talk contribs 857 bytes +857 Created page with "==Example Code== <syntaxhighlight lang="lua"> --this = SceneNode() function destroy() --clear form form:destroy() end function create() --Get the camera wich the form will be renderd to. local camera = this:getRootNode():findNodeByName("MainCamera") --Check if the camera exist. if camera then --create a form window of size 20% screen width and 20% screen height. form = Form(camera, PanelSize(Vec2(0.2,0.2))) --Set layout default is FlowLayout. form:setLayo..."