The problem is that the dropdown box I want to change is part of the original tracking window and I'm not sure how exactly it ties in to the game. It appears that it uses a placeholder which the game then replaces with the choices. When a new selection is made, it changes what is shown in the tracking list. (e.g. if you select All, it shows everything in range, if you select PC only it shows only PCs in range, etc.)
I don't actually have code in the OnSelect event. I was hoping that triggering the OnSelect manually would trigger something in the game to let it know that that it was changed and should re-apply the filtering. Since that doesn't seem to be working maybe it uses a completely different method to detect when it is changed, though.
The XML for the dropdown and its data source looks like so:
Code:
<DataSource Name="FilterDS">
<Data Name="Placeholder1" text="&amp;lt;Filters&amp;gt;"/>
</DataSource>
<Dropdownbox DataSource="FilterDS" Location="20,38" Name="FilterDropdown" RowTemplate="/Templates.dropdowntemplate" ScrollExtent="141,19" Size="141,19" Style="/dropdownlist.dropdown_default"/>
I considered finding a way to use that data source directly in a new radio button type control, or somehow changing the style of the Dropdown to behave more like a radio button, but haven't figured out any way to do that yet. (Although I did change the dropdown style a bit based on looking at a couple of other tracking window mods.)
For one of my other features, the "/who" button, I looked to see if there was any dynamic data that I could use to get the name of someone you are already tracking. It doesn't appear that there is, though, so I'm beginning to think that what I want to do isn't really possible with the current system.