Jump to content

[SOLVED] engine.gui.saveDictionary questions


photo

Recommended Posts

Hello !

 

I have some questions about the dictionaries system if you could enlighten me :

 

- Is there a way to unload a previously loaded dictionary ?

- Save dictionary only saves the last loaded dictionary, so what is the main purpose for that function ?

- Is there a way to dynamically add entries to a dictionary ? (if yes, the previous question is useless :()

 

Thanks for your time ;)

 

Have a nice day

Link to comment

Hi!

 

1. You can load another dictionary via engine.gui.loadDictionary(). You can also create empty dictionary, save it to file and load it. This should clear previously loaded dictionary.

2. You're right. There is one use case for save at least: you can save your dictionary to another path.

3. You can just only load and save dictionaries, no modifying at runtime.

 

If you want to modify your dictionary, you should modify dictionary file by using Xml class and then load it.

 

Hope this help. ;)

Link to comment
×
×
  • Create New...