loading...
Join the ludiloom Public Alpha Test and help us change the game-making game...
Ludiloom API
last updated on 2009, May 22nd
| Base Concepts | Scene Objects | Data Interface | Gui Overlays | |||
|
Arena Object ObjectTemplate Presence PresenceTemplate RuleBook System |
BillBoard Camera Effect HighlightDecal Light Material MeshDecal |
Model Plane River Road Sound StaticFlora Terrain |
HashTable InterModel Matrix MediaItem Vector |
Button Checkbox CodeEditbox ComboBox Editbox Listbox MenuBar MenuItem |
MenuPopup MultiColumn MultilineEditbox ProgressBar RadioButton ScrollBar ScrollPane SliderBar |
Spinner StaticImage StaticText TabPane ToggleButton Tree Window |
MediaItem
print
nil print ()
MediaItem is every item that is used to represent objects, either visual, audible, etc..
Examples of mediaitems: Meshes (3D models), videos, sounds, textures, images.
How to use it:
--This id can be retrieved in the script editor by selecting the Package Explorer in the tollbar and selecting the desirable mediaitem
local icon = MediaItem.newMI("id");
--An item will be added to the tree with an icon
tree:addItem("","backpack", "Great Backpack", 1, icon);
| Method Summary | |
string | getID () |
nil | print () |
| Function Summary | |
nil | newMI (string mediaitemkey) |
| Method Detail |
getID
string getID ()- Returns the Media Item ID.
- Returns:
string- Media Item ID.
- Prints the Media Item data and attributes to the console.
| Function Detail |
newMI
nil newMI (string mediaitemkey)- Creates an instance of a Media Item from its Media Item Key.
- Parameters:
string mediaitemkey- Media Item Key.

