~ares-developers/ares/gd03

« back to all changes in this revision

Viewing changes to src/Misc/Interface.cpp

  • Committer: Zimmermann Gyula
  • Date: 2012-09-22 13:23:15 UTC
  • mfrom: (825.1.41)
  • Revision ID: git-v1:28613a17bb384e20bb2b95b5fbb0d9dfb903eaab
Merge remote-tracking branch 'origin/v02' into gd03

Show diffs side-by-side

added added

removed removed

Lines of Context:
589
589
DEFINE_HOOK(6041F5, DialogFunc_CampaignMenu_CampaignIconB, 5) {
590
590
        return 0x6041FA;
591
591
}
 
592
 
 
593
// disable the loading button in the single player menu
 
594
DEFINE_HOOK(52D6C2, Singleplayer_hDlg_DisableSaves, A)
 
595
{
 
596
        R->ECX(FALSE);
 
597
        return 0x52D6CC;
 
598
}
 
599
 
 
600
// disable load, save and delete buttons on the ingame menu
 
601
DEFINE_HOOK(4F17F6, sub_4F1720_DisableSaves, 6)
 
602
{
 
603
        GET(HWND, hDlg, EBP);
 
604
 
 
605
        for(int item=1310; item<=1312; ++item) {
 
606
                if(HWND hItem = GetDlgItem(hDlg, item)) {
 
607
                        EnableWindow(hItem, FALSE);
 
608
                }
 
609
        }
 
610
 
 
611
        return 0x4F1834;
 
612
}