* add forgotten pictures

* the cross-button in SearchWindow now closes the Window
This commit is contained in:
ardi@ist-einmalig.de 2009-09-27 19:04:36 +00:00
parent 0b9f15319f
commit ec01eba085
3 changed files with 30 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1128,20 +1128,46 @@ int MenuDiscList() {
__Menu_GetEntries(0, newFilter);
menu = MENU_DISCLIST;
break;
}
else if(searchChar == 7) // Clear
else if(searchChar == 7) // Close
{
__Menu_GetEntries(0, L"");
show_searchwindow=false;
HaltGui();
if(searchBar)
{
mainWindow->Remove(searchBar);
delete searchBar;
searchBar = NULL;
}
if(gameFilter && *gameFilter)
{
searchBtn.SetEffect(EFFECT_PULSE, 10, 105);
searchBtn.SetImage(&searchBtnImg);
searchBtn.SetImageOver(&searchBtnImg);
searchBtn.SetAlpha(255);
}
else
{
searchBtn.StopEffect();
searchBtn.SetEffectGrow();
searchBtn.SetImage(&searchBtnImg_g);
searchBtn.SetImageOver(&searchBtnImg_g);
searchBtn.SetAlpha(180);
}
ResumeGui();
}
else if(searchChar == 8) // Backspace
{
__Menu_GetEntries(0, gameFilterPrev);
}
menu = MENU_DISCLIST;
break;
}
}
else if (abcBtn.GetState() == STATE_CLICKED) {
if (Settings.sort != all) {
Settings.sort=all;