User Tools

Site Tools


Differences

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

Link to this comparison view

Next revision
Previous revision
modeleditor:gui_fixtures [2012-03-22 11:18]
Carsten created
modeleditor:gui_fixtures [2016-03-04 10:46]
Carsten Fix link to model editor image
Line 1: Line 1:
 ====== GUI Fixtures ====== ====== GUI Fixtures ======
 +
 +GUI fixtures are used to attach GUIs to models.
 +<​clear>​
 +
 +{{ http://​www.cafu.de/​images/​gallery/​cawe-model-editor/​model-editor-3.png?​252}}
 +GUIs are virtual computer desktops that the player can interact with to unlock doors, call lifts, obtain information,​ and much more.
 +
 +They are created in the Cafu Engine Gui Editor and use scripts for their implementation and for handling events when interacting with the player.
 +<​clear>​
 +
  
 ===== The GUI fixtures list ===== ===== The GUI fixtures list =====
  
 {{ :​modeleditor:​gui-fixtures-list.png?​|}} {{ :​modeleditor:​gui-fixtures-list.png?​|}}
 +The **GUI Fixtures** pane lists all GUI fixtures in the model.
 +
 +For each GUI fixture,
 +  * its name and
 +  * the GUI fixture number
 +is shown.
 +
 +A single click on a GUI fixture selects it, a double click opens the **GUI Fixture Inspector** pane as well.
 +
 +Pressing the **F2** key or a single-click on an already selected GUI fixture allows you to rename the GUI fixture in place.
 +
 +The “**+**” button creates a new GUI fixture and adds it to the list.
 +The “**-**” button deletes the currently selected GUI fixtures.
 <​clear>​ <​clear>​
  
Line 10: Line 33:
  
 {{ :​modeleditor:​gui-fixtures-list-context-menu.png?​|}} {{ :​modeleditor:​gui-fixtures-list-context-menu.png?​|}}
 +An RMB click in the **GUI Fixtures** pane opens the context menu:
 +  * **Inspect/​Edit** opens the **Gui Fixture Inspector** pane.
 +  * **Rename** allows to rename the GUI fixture.
 +  * **Add/​create new**, like the "​**+**"​ button, creates a new GUI fixture and adds it to the list.
 <​clear>​ <​clear>​
  
Line 16: Line 43:
  
 {{ :​modeleditor:​gui-fixture-inspector.png?​|}} {{ :​modeleditor:​gui-fixture-inspector.png?​|}}
 +The **GUI Fixture Inspector** pane shows the details of the currently selected GUI fixture.
 +
 +==== Name====
 +Shows the name of the currently selected GUI fixture.
 +The  name can be edited in order to rename the GUI fixture.
 +
 +==== Origin and endpoints ====
 +
 +The origin and the endpoints of the x- and y-axes determine the position and orientation of the GUI.
 +
 +You can enter and edit the mesh and vertex numbers manually, but it is much easier and faster to right-click directly on the model in the 3D view:
 +
 +{{ :​modeleditor:​3d-view-context-menu.png |}}
 +
 +Selecting one of the three **GUI fixture** menu items will fill in the related numbers in the **GUI Fixture Inspector** automatically.
 +
 +
 +==== Translation and scale ====
 +
 +Normally, the GUI rectangle is exactly aligned to the origin and the endpoints of the axes.
 +Using the translation and scale, you can move the GUI rectangle from its original position and adjust its overall size:
 +  * The **Scale** values set the relative lengths of the axes.
 +  * The **Translation** values move the origin in multiples of the scaled axes.
 <​clear>​ <​clear>​
 +
 +
 +===== Example video =====
 +
 +This example video shows a GUI that is attached to an animated model and uses custom translation and scale settings:
 +<​HTML>​
 +<div style="​text-align:​ center; clear: both;">​
 +
 +<object style="​height:​ 385px; width: 400px">​
 +<param name="​movie"​ value="​http://​www.youtube.com/​v/​dNCf82E90TA?​version=3&​feature=player_detailpage"></​param>​
 +<param name="​allowFullScreen"​ value="​true"></​param>​
 +<param name="​allowScriptAccess"​ value="​always"></​param>​
 +<embed src="​http://​www.youtube.com/​v/​dNCf82E90TA?​version=3&​feature=player_detailpage"​ type="​application/​x-shockwave-flash"​ allowfullscreen="​true"​ allowScriptAccess="​always"​ width="​400"​ height="​385"></​embed>​
 +</​object>​
 +
 +</​div>​
 +</​HTML>​
  
modeleditor/gui_fixtures.txt · Last modified: 2016-03-04 10:46 by Carsten