Jump to content

Command UI ExecuteText Trap


Sol

Recommended Posts

Hello, I searched the source code, UI macross and I didn't find any UI Macro with empty execute cmd.

Generally I mean that it would be very usefull to create UI's custom cmds for LUA.

I want to create UI frame with string and I want to send string to server, and I can't do it, because I can send it only by callvotes.

This should be look like this

else if ( Q_stricmp( name, "customcmd" ) == 0 ) {
   trap_Cmd_ExecuteText( EXEC_APPEND, va( "%s\n", trap_Cvar_VariableValue( "ui_customcmd" ) ) );
  }

Then you can send everything by this and catch it by LUA.

It is very helpful in making many kinds of UI frames for clients.

Link to comment
Share on other sites

I get it, you want to have commands to send custom information, the frames are not that important in this case, just the ui cmd that is missing, right?

Yep, its not possible to send "easy" custom information via ui cmd to server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...