In my oxp in this.startUpComplete() i have
Code: Select all
this.$GNN._addExtImages([["ShrewsRights_GNN_11.png", "ShrewsRights_GNN_12.png", "ShrewsRights_GNN_13.png"], ["ShrewsRights_GNN_21.png", "ShrewsRights_GNN_22.png", "ShrewsRights_GNN_23.png"], ["ShrewsRights_GNN_31.png", "ShrewsRights_GNN_32.png", "ShrewsRights_GNN_33.png"], ["ShrewsRights_GNN_41.png", "ShrewsRights_GNN_42.png", "ShrewsRights_GNN_43.png"]], this.name);
In the debug console after running and while docked I can see them as being registered with:
Code: Select all
worldScripts.GNN.$doop.expImages
Code: Select all
worldScripts.GNN.$doop.expPrefixes
Code: Select all
["ShrewsRights"]
Code: Select all
>worldScripts.GNN._insertNews({ID: "ShrewsRights", Message: "Simple test text to keep it simple", Agency: 3, Priority: 1, Pic: {name: "ShrewsRights_GNN_32.png", height: 512,}, PicExt: "ShrewsRights"})
Code: Select all
let news.params = {ShrewsRights_what_was_attacked: "Some big thing I attacked"};
this.$GNN._insertNews({
ID: this.name,
Message: expandMissionText("ShrewsRights_news" + this.$missionNewsCount, news.params),
Agency: news.agency,
Priority: 1,
Pic: {name: "ShrewsRights_GNN_" + news.agency + ~~(Math.random() * 3 + 1) + ".png", height: 512},
PicExt: this.name, });