B4J Code Snippet What you need to read the SEL file of SceneEditor

Here is a useful piece of code to read the SEL files produced by Scene Editor. It requires the RandomAccessFile library.

Example of use:
Dim L As List = codLayoutFile.ReadCompressedLayout(MyDir, MyFileName)
For Each Line As Object In L
        If Line Is String Then
            'Section header
        Else If Line Is Map Then
            'Section contents
            Dim M As Map = Line
        End If

To see a concrete example of how to use it, download the AngryBirds example on the first post of the Scene Editor thread.


  • codLayoutFile.zip
    767 bytes · Views: 201
Last edited: