Chat gui options - SFSIsland Demo
Posted: 23 Jun 2009, 15:58
Is it possible to change the chat background color etc? I can't find the images used if they are images.
Is it possible to make the chat window moveable/sizable by the player? If so how?
Is there any code around that allows us to change the way chat works? I would like the player to click in the window to chat and be able to keep chatting until they click the game screen again. No enter/type/enter/type action. If so, a link would be appreciated.
I've spent an hour or more trying to size and move the chat screen to the Bottom/Left of the game screen using this code in the chatController script...
void Start() {
chatWindow = new Rect(Screen.width - 1235, Screen.height - 200, 1235, 200);
}
The first number seems to set the horizontal position of the screen rather than the width. The third number seems to adjust the actual width. the second number seems to position the window vertically and the 4th number seems to determine the actual height of the window...is that right?
Is there a way to make it 100% width? It seems like there must be an easier way to position it and make it work in all resolutions.
Any help with these questions would be greatly appreciated!
Is it possible to make the chat window moveable/sizable by the player? If so how?
Is there any code around that allows us to change the way chat works? I would like the player to click in the window to chat and be able to keep chatting until they click the game screen again. No enter/type/enter/type action. If so, a link would be appreciated.
I've spent an hour or more trying to size and move the chat screen to the Bottom/Left of the game screen using this code in the chatController script...
void Start() {
chatWindow = new Rect(Screen.width - 1235, Screen.height - 200, 1235, 200);
}
The first number seems to set the horizontal position of the screen rather than the width. The third number seems to adjust the actual width. the second number seems to position the window vertically and the 4th number seems to determine the actual height of the window...is that right?
Is there a way to make it 100% width? It seems like there must be an easier way to position it and make it work in all resolutions.
Any help with these questions would be greatly appreciated!