[NR-CORE] Fix map edit from not opening
First off, for some reason I can't figure out how to get the attribute "MapEditor" so I turned off that permission and made it so all people can access the editor which can simply be done by going to SavedCharactersList.as and changing
Code:
this.canMapEdit_ = _arg1.hasOwnProperty("MapEditor");
to
Code:
this.canMapEdit_ = true;
After that, the only problem with map editor is regions.. Go to RegionChooser.as and just replace it with this
Code:
package com.company.assembleegameclient.mapeditor {
import com.company.assembleegameclient.map.RegionLibrary;
public class RegionChooser extends Chooser {
public function RegionChooser() {
var _local_1:XML;
var _local_2:RegionElement;
super(Layer.REGION);
for each (_local_1 in RegionLibrary.xmlLibrary_) {
_local_2 = new RegionElement(_local_1);
addElement(_local_2);
}
}
}
}