-- If you are a common themer, DO NOT INCLUDE THIS FILE IN YOUR THEME.
-- This layer is purely for error reporting, so that you can see errors on screen easily while running stepmania.
-- If you include this file in your theme, you will not benefit from any improvements in error reporting.
-- If you want to adjust how long errors stay on screen for, call the "SetErrorMessageTime" function. (see usage notes in comments above that function)
localline_height=12-- A good line height for Common Normal at .5 zoom.
localmin_message_time={show=1,hide=.03125}
localdefault_message_time={show=4,hide=.125}
localmessage_time={}
fork,vinpairs(default_message_time)do
message_time[k]=v
end
-- Example usage:
-- "SetErrorMessageTime('show' 5)" sets errors to show for 5 seconds before beginning to hide.
-- "SetErrorMessageTime('hide' .5)" sets errors to hide one error every .5 seconds after the show time has passed.
functionSetErrorMessageTime(which,t)
ifnotmin_message_time[which]then
MESSAGEMAN:Broadcast(
"ScriptError",{
Message="Attempted to set invalid overlay message time field: "..
tostring(which)})
return
end
ift<min_message_time[which]then
MESSAGEMAN:Broadcast(
"ScriptError",{
Message="Attempted to set overlay message "..which..
" time to below minimum of "..min_message_time[which].."."})