Share My Creation Bal2Bjl (with source)

Hi,

it is not my creation, I have only the convertor "Bal2Bil" modified. :)

Bal2Bjl.JPG
 

Attachments

  • Bal2Bjl_v0.01.zip
    7.6 KB · Views: 451

giannimaione

Well-Known Member
Licensed User
Longtime User
finalmente! bravo Filippo!
 

giannimaione

Well-Known Member
Licensed User
Longtime User
... e allora datti da fare!!! qui non c'è tempo da perdere :)
 

ilan

Expert
Licensed User
Longtime User
bjl are B4J layout files

Here he says bal2bil

it is not my creation, I have only the convertor "Bal2Bil" modified. :)

So i thought he means bal2bil but its nice to know that there is also a bal2bjl convertor.

I know it was already asked but if you will have a little bit time free it would be nice to have bil2bal.

I have a b4i game that has 50 levels (50 bil layouts) that i would like to port to b4a but creating those 50 layouts again is holding me from that project :(
 

Mashiane

Expert
Licensed User
Longtime User
Hi

This is very good work, I have checked the code here and in some instances its prefixed with B4I, for example the method below, that's not for concern isnt it?

B4X:
Private Sub JavaType(jt As String) As String
    If javaTypes.IsInitialized = False Then
        javaTypes = CreateMap(".ActivityWrapper": "B4IPanelWrapper", _
            ".PanelWrapper": "B4IPanelWrapper", _
            ".ButtonWrapper": "B4IButtonWrapper", _
            ".CompoundButtonWrapper$CheckBoxWrapper": "B4ISwitchWrapper", _
            ".AutoCompleteEditTextWrapper": "B4ITextFieldWrapper", _
            ".ImageViewWrapper": "B4IImageViewWrapper", _
            ".HorizontalScrollViewWrapper": "B4IScrollView", _
            ".ScrollViewWrapper": "B4IScrollView", _
            ".LabelWrapper": "B4ILabelWrapper", _
            ".SeekBarWrapper": "B4ISliderWrapper", _
            ".SpinnerWrapper": "B4IButtonWrapper", _
            ".CompoundButtonWrapper$ToggleButtonWrapper": "B4ISwitchWrapper", _
            ".EditTextWrapper": "B4ITextFieldWrapper", _
            ".WebViewWrapper": "B4IWebViewWrapper")
    End If
    Return javaTypes.GetDefault(jt, "")
End Sub
 

dieterp

Active Member
Licensed User
Longtime User
Thanks for this! I have been able to successfully convert many files from bal to bjl. I am however getting the following error when converting a specific file. Does anyone perhaps know what the offending object is in this instance?

upload_2017-11-10_10-9-9.png
 

dieterp

Active Member
Licensed User
Longtime User
Hi Steve. That is correct. I am using the converter in that link that you posted above. Here is the file I am trying to convert:
 

Attachments

  • teams.bal
    6.3 KB · Views: 346
Top