About Store Forum Documentation Contact



Post Reply 
Breaks with property
Author Message
Dynad Offline
Member

Post: #1
Breaks with property
Hey,

is there a way to create spaces between the properties?

e.g
PHP Code:
Gui+=window.create(Rect_C(0,0,0.8,0.6),"Properties"); // create window

   // setup properties
   
props.New().create(MEMBER(SampleClass,  bool_member),  "bool_member");                                       // set property for '   bool_member'
   
props.New().create(MEMBER(SampleClass,   int_member),   "int_member");                                       // set property for '    int_member'
   
props.New().create(MEMBER(SampleClass,   flt_member),   "flt_member").range   (0,1);                         // set property for '    flt_member' and optionally clamp the values range
   
props.New().create(MEMBER(SampleClass,  enum_member),  "enum_member").setEnum (enum_names,ELMS(enum_names)); // set property for '   enum_member'
   
props.New().create(MEMBER(SampleClasscolor_member), "color_member").setColor();                            // set property for '  color_member'
   
props.New().create(DataDesc(DATA_INT).setFunc(PrivateMember,PrivateMember),"private_member");                // set property for 'private_member'

   // add properties to the window
   
static TextDS text_dstext_ds=Gui.tds_texttext_ds.align.set(-1,0); // set text draw settings
   
AddProperties(props,window,Vec2(0.04,-0.04),&text_ds,0.3); 

Now it will put it all under each other... but i like to have some breaks/space between them per e.g 4 properties.

Thnx,
~Dynad

There is always evil somewhere, you just have to look for it properly.
10-28-2010 03:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Breaks with property
props.New().crea...
props++;
props.New().crea

if ++ doesnt work, use only "New();" without create
10-28-2010 03:48 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #3
RE: Breaks with property
props.New(); works just great! thnx ^^

There is always evil somewhere, you just have to look for it properly.
10-28-2010 03:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply