SetBlipSize: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
==See Also== | ==See Also== | ||
{{ | {{Blip_functions}} |
Revision as of 20:54, 20 May 2006
This function sets the size of a blip's icon.
Syntax
bool setBlipSize ( blip theBlip, int iconSize )
Required Arguments
- theBlip: The blip you wish to get the size of.
- iconSize: The size you wish the icon to be. 2 is the default value.
Returns
Returns an true if the blip's size was set sucessfully. Returns false if the element passed was not a blip or if the icon size passed was invalid.
Example
This example will reset the size of all blips to the default.
-- Retrieve a table containing all the blips that exist blips = getElementsByType ( "blip" ) -- Loop through the list, storing the blip from the table in the variable blipValue for blipKey, blipValue in blips do -- Retrieve the blip's size into the variable 'blipSize' blipSize = getBlipSize ( blipValue ) -- If the blip's size wasn't 2 (the default size) already if ( blipSize ~= 2 ) then -- Set the blip's icon to the default setBlipSize ( blipValue, 2 ) end end
See Also
- createBlip
- createBlipAttachedTo
- getBlipColor
- getBlipIcon
- getBlipOrdering
- getBlipSize
- getBlipVisibleDistance
- setBlipColor
- setBlipIcon
- setBlipOrdering
- setBlipSize
- setBlipVisibleDistance