This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Preferences
MJ edited this page Oct 8, 2016
·
4 revisions
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();
MJ 2016