PDA

View Full Version : AntTweakBar for Delphi



cairnswm
27-09-2006, 11:04 AM
I saw a nice set of UI components on GameDev.net a while ago - take a look at AntTweakBar

http://www.antisphere.com/Wiki/doku.php?id=tools:anttweakbar

How would you do something like this for delphi.

I could do something simple like this and then when adding a variable to the bar you could give the address of the var you want on the bar

Var
MyVar : Integer;

AddVar('MyVarName',@MyVar);

JernejL
27-09-2006, 11:18 AM
what about just pass some formatted structure with a pointer to actual record variable, which would automaticly create them all for you? something like delphi's data inspector (but data inspector is smarter)

say you have a packed record or an object with those structures, you could tell it pointer to first object, and describe the objects on that memory address, the tweak bar would then allow you to manipulate those objects, you could do this with a xml structure...