Changes between Version 6 and Version 7 of documentation/tutorials/Dragging
- Timestamp:
- 02/13/08 23:03:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/tutorials/Dragging
v6 v7 13 13 Compile the drag tutorial (at ''/samples/tutorials/drag/'') and run the program; it should end up looking like this: 14 14 15 [[Image(tutorial_drag_1. gif,nolink)]]15 [[Image(tutorial_drag_1.jpg nolink)]] 16 16 17 17 Take a look at the source code. As you can see, the application creates two ''Inventory'' objects, each of which loads a document from the 'inventory.rml' file. The application then creates four inventory objects in one of the inventories; each of these objects is a libRocket element with a tag of 'icon'. At the bottom of the 'tutorial.rcss' file you can see the properties applied to 'icon'. It is sized to 100px x 100px with a margin to separate it from its neighbour icons and a decorator for its background image. It is floated left so icons will stack from left to right in the inventory windows.