Hi guys!
I've figured it out. When I add a line of code, the search result will update the shown artwork on the fly, every time you change the search term. Before the change it seems that it is only done when the "fe.list.search_rule" is set with content for the first time. After that the artwork won't refresh. So what I did was clear the search_rule before adding another letter to the search term...
Look at the code snippet...
//update the current search rule
function update_rule()
{
try
{
local rule = "Title contains " + _massage(text)
print( "Rule: " + rule )
switch ( config.mode )
{
case "next_match":
print("jumping to: " + text)
if ( text.len() == 0 ) return
local s = fe.filters[fe.list.filter_index].size
for ( local i = 1; i < s; i++ )
{
local name = fe.game_info( Info.Title, i ).tolower()
if ( regexp( text ).capture(name) ) {
fe.list.index = (fe.list.index+i)%s
break
}
}
break
case "show_results":
default:
print("results for: " + text)
//fe.list.search_rule = "Title contains mario"
// the following line does the trick
fe.list.search_rule = ""
// -------------------------------------------------
fe.list.search_rule = ( text.len() > 0 ) ? rule : ""
break
}
} catch ( err ) { print( "Unable to apply filter: " + err ); }
}
I run attract mode on my vertical CRT cab. Have a look at how I have integrated the search module...
http://sendvid.com/thyu2zdhProbably not the best video hoster, but I have no idea how to show you guys a video here
Edit:
Ok! Just skip the video if you don't have an add blocker... it just showed me an ass.
ok, the ass was not bad, but who knows what comes along with it..
?