How can I make it so that I take one hud object of an unknown location and move it to another location based on its current location? (i.e. move it 3 spaces north)
I tried "O.screen_loc += "3,0"" but that doesn't work with text :P The DM Referance doesnt' seem to help me this time :'(
P.S. Maybe I should have asked this instead, but I can do this right? :P
ID:168967
![]() Aug 8 2005, 5:42 pm
|
|
![]() Aug 8 2005, 5:43 pm
|
|
Make vars recording the sx and sy.
|
_>Sorry, I was in a hurry. Make vars record the current screen_x and screen_y, and change them accordingly. |
obj/hud/hudobj1 Like this? :D Took me 5-10 minutes to figure out what he mean >_> I feel stupid again. :( Anyway, what I'm using this is to try and put chat on the map as HUD because I'm trying to see how much of the text box I can avoid using ("Who" is in browser, for example) |
Just an idea you might not have thought of. You can easily make a chat system that uses statpanels. They're actually really good for it.
You can do all sorts of neat stuff (like a statpanel per chat channel, one for battle output, etc). I wrote a demo doing this once, but I can't seem to find it. I might write up a new version of it and put it up later. Basically here's what to do: var/global/list/chatChannels[0] Of course there are downsides. -You can't format the statpanel as well as the text area. -After a certian amount of messages you'll need to start triming the list when adding new messages. -You'll have to reverse the order of the lists so that new messages go to the top of the list. All in all I find this is a really good technique. If in v4.0 you can customize the statpanels more, it'll definantly be my technique of choice. |