GetBlipSize: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
blips = getElementsByType ( "blip" ) | blips = getElementsByType ( "blip" ) | ||
-- Loop through the list, storing the blip from the table in the variable blipValue | -- Loop through the list, storing the blip from the table in the variable blipValue | ||
for blipKey, blipValue in blips do | for blipKey, blipValue in ipairs(blips) do | ||
-- Retrieve the blip's size into the variable 'blipSize' | -- Retrieve the blip's size into the variable 'blipSize' | ||
blipSize = getBlipSize ( blipValue ) | blipSize = getBlipSize ( blipValue ) |
Revision as of 22:23, 6 May 2007
This function gets the size of a blip.
Syntax
int getBlipSize ( blip theBlip )
Required Arguments
- theBlip: The blip you wish to get the size of.
Returns
Returns an int indicating the size of the blip. The default value is 2.
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 ipairs(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