Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Preferences

MJ edited this page Oct 8, 2016 · 4 revisions

Preferences

Similarly to I18NBundle, Preferences objects can be also passed to LML templates. Preference values are accessible with # marker. For example:

#vSync
#sound.volume

The first line will look for "vSync" preference in the default registered Preferences object. The second will look for "volume" preference in Preferences mapped to "sound" key.

Registration:

Lml.parser().preferences(Gdx.app.getPreferences("myPreferences"))
    // TODO Other parser settings.
    .build();