So I've added a menu, I just can't figure out where or how to add an icon. How do I?
Also, I've got an element that I'd like to have produce another element when in contact with fire.
So i've used the regular for loops and an if to produce the r = sim->pmap[y+ry][x+rx] and rt = (r&0xFF).
Then i use if (rt==PT_FIRE) and say sim->part_change_type(i,x,y,PT_MGO).
But the element never responds to the fire. What am i doing wrong? All the tutorials and other elements i've seen do exactly this.
about #2: That was just a typo. I use the correct == in my code.
Also, i know that the menus are in SimulationData.cpp, but the code for their icon ("\xC1","\x99" etc), i don't understand where it comes from or what it references. They're not UTF-8 symbols, so they must be somewhere else in the code.
sorry, but i'd like a better answer. bump.
It would be very helpful to see the entire update function or element file, just put it on pastebin or something.
The icons are a bit harder to add, which are with the normal font (font.h) which is generated from the 'font' folder, which has its own editor you would need to compile.
Right. sorry.
Wow. thanks. One typo...
yes, i've seen the wiki article, i guess the last time i saw it was when the guide for the new source had not been added. I'll follow the new one.