NCDS
2011-01-15 20:06:45
I feel it would be beneficial to have a SearchBox attribute added to the TObject records.
My reason for this is for instances like DB bank. The 'fake booths' off to the right side are the same colors etc. as the real booths on the left side. By adding a SearchBox attribute, we could have it only search the left side of the screen when searching for the bank.
I'm sure there are many other instances where this would be useful as well.
This is already supported in MSI_FindObjectsTPA, which is the base function for all our current object finding. We would simply need to change SearchBox.x1, SearchBox.y1 etc. to MSI_Objects[objID].Box.x1, MSI_Objects[objID].Box.y1 etc.
Would be implemented to the object record as simple as:
Also, if there is no need to have a specific search box for something, we can have it set with the rest of the defaults to MSBox.
Any objections?
My reason for this is for instances like DB bank. The 'fake booths' off to the right side are the same colors etc. as the real booths on the left side. By adding a SearchBox attribute, we could have it only search the left side of the screen when searching for the bank.
I'm sure there are many other instances where this would be useful as well.
This is already supported in MSI_FindObjectsTPA, which is the base function for all our current object finding. We would simply need to change SearchBox.x1, SearchBox.y1 etc. to MSI_Objects[objID].Box.x1, MSI_Objects[objID].Box.y1 etc.
Would be implemented to the object record as simple as:
Box := IntToBox(x1, y1, x2, y2);
Also, if there is no need to have a specific search box for something, we can have it set with the rest of the defaults to MSBox.
Any objections?