Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Command UI ExecuteText Trap

- - - - -

  • Please log in to reply
6 replies to this topic

#1
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland
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.

#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
What do you mean with UI frames?

#3
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland

What do you mean with UI frames?

I mean UI's window

#4
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland

I mean UI's window

It doesn't explain much :)

#5
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland
Posted Image
I can't explain it better.

#6
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3099 posts
216
On the road to fame
  • LocationPoland
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?

#7
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users