next up previous contents
Next: Adding a new GUI Up: Adaptors Previous: Adaptors provided with VGUI

Using a particular GUI toolkit

If you write your code using the pattern provided in VGUI then it will run on any supported GUI toolkit. If you wish to run your application using a particular GUI toolkit, Foo say, then you will need to satisfy these conditions: If Foo satisfies these conditions then when vgui_Foo is compiled, Foo will be registered as available for use by your applications. If no preference given on the command line for a GUI toolkit then application will look for a suitable GUI toolkit that is registered. If more than one GUI toolkit is registered then one will be selected at random.

If you wish to specify a GUI toolkit (for example Foo) then you will need to add -factory=Foo to the end of the command line when you run your application.

Target Junior User