User Tools

Site Tools


eb_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eb_guide [2019/03/06 14:12] – admineb_guide [2019/03/18 08:08] (current) – admin
Line 21: Line 21:
 * **Model and Appication**: use datapool to communicate. Model is the stuff made in EB guide. Application is something outside? so the datapool act as a API? * **Model and Appication**: use datapool to communicate. Model is the stuff made in EB guide. Application is something outside? so the datapool act as a API?
 * **Datapool**: Act as an API. But also used to store data which is only used in either EB guide model or applications. * **Datapool**: Act as an API. But also used to store data which is only used in either EB guide model or applications.
-* **Events**: a user operate event. e.g. ''%% ev:"turn_on"() %%''in the Touch released Widget feature properties.+* **Events**: a user operate event. e.g. ''%% ev:"turn_on"() %%''in the Touch released Widget feature properties. An event could contain parameters.
  
  
Line 41: Line 41:
 * Add image files to the $GUIDE_PROJECT_PATH/<project name>/resources directory * Add image files to the $GUIDE_PROJECT_PATH/<project name>/resources directory
 * Use image files the same way like shapes. * Use image files the same way like shapes.
 +
 +<wrap lo>EB guide supports 9-patch images (P65)</wrap>
 +
 +
 +## Display Overlay Window (Dynamic State Machine)
 +
 +* Q: What's the meaning of checkbox "Dynamic state machine list"? A: Checking it will make the object able to be stack dynamic machine on.
  
 ## 3D file ## 3D file
Line 78: Line 85:
 Sirui Sirui
 ++++ ++++
 +
 +
 +## Script Language
 +
 +When to use? to fire events when click image, etc. to write datapool items. to modify widget properties.
 +
 +### namespace
 +
 +- ev: events
 +- dp: datapool items
 +- f: user-defined actions (foreign functions)
 +- v: local variables
 +
 +### Access the properties of widget
 +If a script is part of a widget, it can access the properties of that widget. EB GUIDE Script creates a variable called ''v:this'' to access the properties using the dot notation
 +
 +[[EBguide Frequently used code]]
 +
 +````fire ev:mouseClick(10, 20); // "mouseClick" has two integer parameters (P78, there are more command like "cancel_file and match_event")
 +````
eb_guide.1551852740.txt.gz · Last modified: (external edit)