The underlying problem has to do with the CBuildFactoryHelper class and how the creation of VGUI elements are handled. Right now the macros DECLARE_BUILD_FACTORY, DECLARE_BUILD_FACTORY_DEFAULT_TEXT, DECLARE_BUILD_FACTORY_CUSTOM, and DECLARE_BUILD_FACTORY_CUSTOM_ALIAS are used to declare a static instance of a CBuildFactoryHelper. CBuildFactoryHelper then has static references to a linked list of "available" VGUI elements that can be created. The problem is, not all constructors for CBuildFactoryHelper are being called (ImagePanel's being one of them). I've been trying to hunt down the root cause of this and fix it, but no luck as of yet.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Skillet Sent: Sunday, September 03, 2006 12:57 PM To: [email protected] Subject: Re: [hlcoders] VGUI togglebuttons / checkboxes missing in new SDK? -- [ Picked text/plain from multipart/alternative ] I noticed that ToggleButtons and (more painfully) ImagePanels don't work after applying the SDK update. You can still use IsDepressed(), ForceDepressed() and RecalculateDepressedState() with buttons, which I was already doing with my ToggleButtons because they got out of sync otherwise IIRC. So, any way to continue using the controls that have been removed? It seems that they're just ignored in the .res files now. :\ On 8/8/06, Steve Rabouin <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > Am I missing something, or those functionalities have been removed in the > new SDK? When creating a vgui panel those options are not available > anymore. > am I the only one who used those? :o > > I haven't had time to verify the vgui code much, so excuse me if this is > something simple, but it seems they are missing. > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

