Deprecated: Assigning the return value of new by reference is deprecated in /var/www/psdevWiki/inc/parserutils.php on line 161

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/psdevWiki/inc/parserutils.php on line 164

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/psdevWiki/inc/parserutils.php on line 294

Deprecated: Function split() is deprecated in /var/www/psdevWiki/inc/auth.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /var/www/psdevWiki/inc/parserutils.php:161) in /var/www/psdevWiki/inc/auth.php on line 180

Deprecated: Function split() is deprecated in /var/www/psdevWiki/inc/common.php on line 552

Warning: Cannot modify header information - headers already sent by (output started at /var/www/psdevWiki/inc/parserutils.php:161) in /var/www/psdevWiki/inc/actions.php on line 71
psp:lua_player:library:romero126:draw:horizontalscrollbar [psDevWiki]
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /var/www/psdevWiki/inc/template.php on line 154
 

This function draws a HorizontalScrollbar

nil Draw:HorizontalScrollBar(x, y, w, h, percent, offsetpercent, _color, _barcolor, _bgcolor)
function Draw:HorizontalScrollBar(x, y, w, h, percent, offsetpercent, _color, _barcolor, _bgcolor)
	local _color = _color or Color.new(0,0,0)
	local _barcolor = _barcolor or Color.new(100,100,255)
	screen:drawLine(x, y, x, y+h-1, _color)
	screen:drawLine(x+w, y, x+w, y+h-1, _color)
	screen:drawLine(x, y, x+w, y, _color)
	screen:drawLine(x, y+h-1, x+w, y+h-1, _color)
	if _bgcolor ~= nil then
		screen:fillRect(x+1, y+1, w-2, h-2, _bgcolor)
	end
	local barsize = math.floor( (w-2) * percent )
	local offset = math.floor( ((w-2) - barsize) * offsetpercent )
	screen:fillRect(x+1+offset, y+1,barsize, h-2, _barcolor)
end
 

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /var/www/psdevWiki/inc/template.php on line 523
psp/lua_player/library/romero126/draw/horizontalscrollbar.txt · Last modified: 2008/05/15 00:07
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki