Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 08:41:51 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Search Box
Pages: [1]
Author Topic: Search Box  (Read 3005 times)
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« on: February 09, 2011, 07:15:12 PM »

How would i make a search box appear within the Search menu, Like Armor, appear for a custom item i have created?

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #1 on: February 09, 2011, 09:09:31 PM »

How would i make a search box appear within the Search menu, Like Armor, appear for a custom item i have created?

-snip-

I facepalmed when I realized.
« Last Edit: February 09, 2011, 10:07:49 PM by Mr. Gash »
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #2 on: February 09, 2011, 09:43:14 PM »

In cl_search.lua, look at how body armor is handled. Start in ReceiveRagdollSearch. You'll note how a table called "search" is constructed there using the info received from the server when searching a body. This table is processed into displayable data (text, icon) in the PreprocSearch function.

It is not trivial code, as a whole pile of data is turned into a different pile of data.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Search Box « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.007 seconds with 17 queries.