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

Informatix

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

Example of use:
B4X:
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
Next
To see a concrete example of how to use it, download the AngryBirds example on the first post of the Scene Editor thread.
 

Attachments

Last edited:
Top