User:JulienDethurens/Draft

From Legacy Roblox Wiki
Revision as of 05:42, 19 January 2012 by >JulienDethurens (Created page with "{| class="wikitable" |+CreatePropertyDropDownMenu |- !Arguments |Instance instance, string propertyName, Enum enumType |- ! Returns |[[RB...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
CreatePropertyDropDownMenu
Arguments Instance instance, string propertyName, Enum enumType
Returns Instance container
Description returns a container with a drop-down-box that is linked to the 'property' field of 'instance' which is of type 'enumType'
CreateDropDownMenu
Arguments table items, function onItemSelected
Returns Instance container, function updateSelection
Description First argument should be a table full of strings that will populate menu. Second argument should be a function that takes one argument, and is called when a user selects a new object in the drop down menu. Returns 2 results, a gui container to the gui object and a 'updateSelection' function for external updating. The container is a drop-down-box created around a list of items.
CreateMessageDialog
Arguments string title, string message, table buttons
Returns Instance dialog
Description Returns a gui object of a message box with 'title' and 'message' as passed in. 'buttons' input is an array of Tables contains a 'Text' and 'Function' field for the text/callback of each button.