So I was trying to add the screen references around the weapons (G, F, W, V) in weaponsdisplay... but I get kicked out of the game after some time, with something like this in the prompt: errorlog.txt: I might be doing something very wrong, I dunno...
void registerScreenLocationWithWeapon(char letter, WeaponDisplayInfo* wd, bool rightAlign, PrerenderParam* pp, int diplayY)
{
//Get width
Dimensions d;
g->getImageSize(wd->wf.getImageHandle(), &d);
Point pt(rightAlign ? pp->screen->w - d.w : d.w, wd->curY + diplayY);
sh->setScreenLocationConstant(letter, &pt);
} in the preRender callback...
//... at the end
registerScreenLocationWithWeapon('G', &weapons[left].front(), false, pp, displayY);
registerScreenLocationWithWeapon('F', &weapons[left].back() , false, pp, displayY);
registerScreenLocationWithWeapon('W', &weapons[right].front(),true, pp, displayY);
registerScreenLocationWithWeapon('V', &weapons[right].back() ,true, pp, displayY);
//...
Figured I'd do that in the preRender, since that's where it calculates coordinates, but I'm honestly not sure of what I'm doing The references seemed to appear mostly correctly... but they pop in only after getting in a ship, and stay there when you move back in spec. I'll have to check what Continuum does though... I think it just shifts them on the edge at the same height when in spec... though you can still have xradar... Also, it doesn't seem to like it when screenobjects linked to these screen locations expire...