A chat box

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

A chat box

Postby Spaceman » Tue Sep 09, 2008 2:18 pm

Image
an alternative URL for the image

Diff's here http://217.16.115.15/~blub/nexfiles/?page=file&file=405ea323e6a71fdcebb7eeac3c78ab11

Use a keybind similar to bind F6 "menu_cmd directmenu chat_window" to display the chat box.

The diff also changes the appearance of the Player Name colour codes in the input box. Maybe a tickbox could be added to show/hide the colour codes.

The chat box currently has an issue when you move the cursor with your mouse, I suspect this can be fixed by modifying inputbox.c
Spaceman
Alien trapper
 
Posts: 264
Joined: Tue Aug 28, 2007 10:53 am

Postby esteel » Tue Sep 09, 2008 3:05 pm

Well, that color thing in the name editbox was done on purpose to help with editing. Granted it might look weird but i'm not sure ATM if there is enough space to add an other checkbox to enable/disable that highlighting. Personally i would not oppose to such an config thing. I can understand both parties that dis/like that highlighting.

An other thing is the chat window. I like it, some people find it way too huge, it has no history like when you are using the console with say/teamsay (up/down keys) and to make it a 'real' chat window it should maybe be moved to CSQC so it could (i hope it can) handle and display the text the others write.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby divVerent » Wed Sep 10, 2008 7:55 am

As for space, the checkbox could be below the Player name text called

[X] Preview
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Spaceman » Sun Sep 14, 2008 10:55 am

Change the Player Name label to a button

Code: Select all
// add to dialog_multiplayer_playersetup.c, line 14
+void PlayerNameColourToggle(entity btn, entity me);


// change dialog_multiplayer_playersetup.c, line 38 - 43
   entity e, pms, sl;
   float i, n;

   me.TR(me);
+      me.TD(me, 1, 1, me.playerNameLabel = makeNexuizButton("Player Name:", '0 0 0'));
+         me.playerNameLabel.onClick = PlayerNameColourToggle;
+         me.playerNameLabel.onClickEntity = e;
+         me.playerNameLabelAlpha = me.playerNameLabel.alpha;

      me.TD(me, 1, 2, e = makeNexuizInputBox(1, "_cl_name"));
         e.forbiddenCharacters = "\r\n\\\"$"; // don't care, isn't getting saved


// add near end of dialog_multiplayer_playersetup.c
+void PlayerNameColourToggle(entity btn, entity me)
+{
+   print("Toggle the display of the colour codes here\n");
+}
Spaceman
Alien trapper
 
Posts: 264
Joined: Tue Aug 28, 2007 10:53 am

Postby esteel » Sun Sep 14, 2008 12:41 pm

That seems like a bad UI idea. If there is enough space for a checkbox that would be much more consistend..
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Barfly » Sun Sep 14, 2008 4:47 pm

Way too much chat going on already, and ya want to make it better?

j/k

What we really need is to work on the voice plan a bit more.
Barfly
Alien
 
Posts: 131
Joined: Mon Jun 04, 2007 4:03 am
Location: Hell, AKA Indiana


Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron