Widgets/Thumbnails??

About advanced scenes, and the Thyme scripting language used in Algodoo.

Widgets/Thumbnails??

Postby niffirg1 » Thu Jan 21, 2010 6:12 am

What are Widgets and what are thumbnails? I know about scene.addwidget but does not do anything for me when I type it into the console.
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Widgets/Thumbnails??

Postby Paradigm 29 » Thu Jan 21, 2010 6:21 am

Widgets are like your the sim-info box and geometry settings box. They're basically all of the parts of the GUI. You can move around the Toolbar and other parts of the GUI by messing with the positioning of your widgets in the config. When you select the option to minimize them up top they'l return to their original positions.
Image
User avatar
Paradigm 29
 
Posts: 284
Joined: Tue Sep 01, 2009 12:06 am
Location: Houston, Tx

Re: Widgets/Thumbnails??

Postby niffirg1 » Thu Jan 21, 2010 6:35 am

How Would you create a custom wigdet through thyme? Like this?
Code: Select all
scene.addwidget{pos := e.pos; title := "Widget Example"; size := [1,1]}

BTW that code i know does not work.
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Widgets/Thumbnails??

Postby Paradigm 29 » Thu Jan 21, 2010 6:38 am

You can't really make a widget that doesn't already exist in the game (No "custom" widgets). If you could, then Grady would've already discovered it.
Image
User avatar
Paradigm 29
 
Posts: 284
Joined: Tue Sep 01, 2009 12:06 am
Location: Houston, Tx

Re: Widgets/Thumbnails??

Postby niffirg1 » Thu Jan 21, 2010 6:41 am

Oh well then Link you can close this topic :lol:
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Widgets/Thumbnails??

Postby blahblah200 » Sun Jan 31, 2010 8:14 pm

You can change the e.pos to something like [1,1] and then it will work, but it won't have a title and it will just be a box, but I'm not really sure that is what you want.
Image<-- Made with GIMP
User avatar
blahblah200
 
Posts: 61
Joined: Tue Sep 01, 2009 11:33 am
Location: Somewhere over the rainbow...


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 22 guests