Edit: local storage does not persist through closing a window completely. What is the command to use BBLog storage, and why does using instance.t() only work up until the first space?
I saw this in CS:GO and I thought it was pretty neat. Here is a plugin that does the same(within battlelog only of course :( ) Spaces are allowed.
I do it like this in my plugins: instance: null,
init: function (instance) {
this.instance = instance
this.domchange()
},
domchange: function () {
this.weaponName()
},
you can refer to the instance using this: this.instance.storage("storagekey")
Topicstarter
GameFreakBoy
So something like that? Also, what do you do about remove the storage?
BrainFooLong
Administrator
Check out the example plugin that explains mostly all what you need.
Read carefully the code documentation in the example.
http://getbblog.com/plugins/example.js
kurtextrem
GameFreakBoy wrote:
So something like that? Also, what do you do about remove the storage?
this.instance.storage("storagekey") = null or undefined.