_Gunnar wrote:hello,
1. i've noticed in some clients that you can see the solid box a boat takes up - would this be hard for me to add to enders?
2. a related question - is there any way that i can add objects to be hidden easily? e.g. village idols, etc
3. ...and add objects to the radar? I remember in salem there was a radar.xml file that i could edit - is there an equivalent here?
Thanks!
1 and 2. You can add all hidden objects in a function inside mapview.java line 1207. The same function does the hitboxes.
This function hides objects. I added it somewhere in my code so you can hide objects by giving it a object and it will hide all similar named objects. Issue is to unhide you need to remove hidden objects and give it the same object again.
- Code: Select all
void hideStuff(Gob gob){
String item = gob.resname();
if(Config.hideObjectList.contains(item)){
Config.remhide(item);
} else {
Config.addhide(item);
}
}
}[/code]
3. Config.java have the radar objects. The issue is that they also add a radar circkle around the object so Im not sure how to remove that. But you can add stuff to the list at line 211: private static void loadBeasts() {
You also need to add a res image to go along with it in your haven folder under the folder "res/mmap". Thats where the other animal reses are located. simply edit one of them and rename it then give the address of that res in your haven code.