Evita
02-11-2003, 03:04 AM
What is the function for moving default huds around via console or script?
I thought it was control::setPosition("compassHud", x, y);
But its not.
Slips my mind....
vortex
02-11-2003, 03:10 AM
i know that you can resize with ::setextent, but that's all :o...cyc will know
cyclonite
02-11-2003, 03:50 AM
You're right Evtita.
A while back I tried to make a script which moved the chat hud. It seems that you can't move the default huds via scripts. :(
R@ND0M
02-11-2003, 07:15 AM
setposition doesn't seem to work for any huds
you've gotta delete and re-create with newObject
SuperSlug
02-11-2003, 11:55 AM
Control::setPosition("ChatDisplayHud", %chatposx, %screenY - %height);
This is from AO's AOChatHud.cs which makes the chathud wider or shorter in width. That's how he changes the position.
Evita
02-11-2003, 02:07 PM
Yea random, thats how I would normally do it. But I could have swore there was a default function that would do it.
bear in mind that setposition wont work with a commander mode chathud :f