home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
-
- #include "options.h"
- #include "swatmain.h"
- //---------------------------------------------------------------------
- #pragma resource "*.dfm"
- TOptionsDlg *OptionsDlg;
- //---------------------------------------------------------------------
- __fastcall TOptionsDlg::TOptionsDlg(TComponent* AOwner)
- : TForm(AOwner)
- {
- }
- //---------------------------------------------------------------------
- void __fastcall TOptionsDlg::FormShow(TObject *Sender)
- {
- SpeedSet->Position = SpeedSet->Max + 1 - SwatForm->LiveTime;
- PopulationSet->Position = SwatForm->Frequence;
- // bug in Pronto?
- // GameTimeSet->Text = IntToStr(SwatForm->GameTime);
- }
- //---------------------------------------------------------------------
- void __fastcall TOptionsDlg::OKBtnClick(TObject *Sender)
- {
- SwatForm->LiveTime = SpeedSet->Max + 1 - SpeedSet->Position;
- SwatForm->Frequence = PopulationSet->Position;
- // SwatForm->GameTime = StrToInt(GameTimeSet->Text);
- // need to add validation
- }
- //---------------------------------------------------------------------
-