mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
initial commit for new config program
This commit is contained in:
parent
015acfb92a
commit
74f83131cc
33
config/ConfigFormUnit.cpp
Normal file
33
config/ConfigFormUnit.cpp
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <vcl.h>
|
||||||
|
#pragma hdrstop
|
||||||
|
|
||||||
|
#include "ConfigFormUnit.h"
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#pragma package(smart_init)
|
||||||
|
#pragma resource "*.dfm"
|
||||||
|
TConfigForm *ConfigForm;
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
__fastcall TConfigForm::TConfigForm(TComponent* Owner)
|
||||||
|
: TForm(Owner)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void __fastcall TConfigForm::DisplayBtnClick(TObject *Sender)
|
||||||
|
{
|
||||||
|
DisplayPnl->Visible = true;
|
||||||
|
AdvDisplayPnl->Visible = false;
|
||||||
|
CompatibilityPnl->Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void __fastcall TConfigForm::AdvSettingsBtnClick(TObject *Sender)
|
||||||
|
{
|
||||||
|
AdvDisplayPnl->Visible = true;
|
||||||
|
DisplayPnl->Visible = false;
|
||||||
|
CompatibilityPnl->Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
3072
config/ConfigFormUnit.dfm
Normal file
3072
config/ConfigFormUnit.dfm
Normal file
File diff suppressed because it is too large
Load Diff
56
config/ConfigFormUnit.h
Normal file
56
config/ConfigFormUnit.h
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifndef ConfigFormUnitH
|
||||||
|
#define ConfigFormUnitH
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#include <System.Classes.hpp>
|
||||||
|
#include <Vcl.Controls.hpp>
|
||||||
|
#include <Vcl.StdCtrls.hpp>
|
||||||
|
#include <Vcl.Forms.hpp>
|
||||||
|
#include <Vcl.ComCtrls.hpp>
|
||||||
|
#include <Vcl.ExtCtrls.hpp>
|
||||||
|
#include <Vcl.WinXCtrls.hpp>
|
||||||
|
#include <Vcl.Buttons.hpp>
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
class TConfigForm : public TForm
|
||||||
|
{
|
||||||
|
__published: // Von der IDE verwaltete Komponenten
|
||||||
|
TPanel *MenuPnl;
|
||||||
|
TPanel *DisplayPnl;
|
||||||
|
TSpeedButton *DisplayBtn;
|
||||||
|
TSpeedButton *AdvSettingsBtn;
|
||||||
|
TSpeedButton *CompatibilityBtn;
|
||||||
|
TPanel *AdvDisplayPnl;
|
||||||
|
TPanel *CompatibilityPnl;
|
||||||
|
TComboBox *PresentationCbx;
|
||||||
|
TLabel *PresentationLbl;
|
||||||
|
TLabel *AspectRatioLbl;
|
||||||
|
TToggleSwitch *AspectRatioChk;
|
||||||
|
TLabel *VsyncLbl;
|
||||||
|
TToggleSwitch *VsyncChk;
|
||||||
|
TLabel *AdjmouseLbl;
|
||||||
|
TToggleSwitch *AdjmouseChk;
|
||||||
|
TLabel *DevmodeLbl;
|
||||||
|
TToggleSwitch *DevmodeChk;
|
||||||
|
TComboBox *RendererCbx;
|
||||||
|
TLabel *RendererLbl;
|
||||||
|
TLabel *BorderLbl;
|
||||||
|
TToggleSwitch *BorderChk;
|
||||||
|
TLabel *SavesettingsLbl;
|
||||||
|
TToggleSwitch *SavesettingsChk;
|
||||||
|
TComboBox *ShaderCbx;
|
||||||
|
TLabel *ShaderLbl;
|
||||||
|
TLabel *MaxfpsLbl;
|
||||||
|
TToggleSwitch *MaxfpsChk;
|
||||||
|
TLabel *BoxingLbl;
|
||||||
|
TToggleSwitch *BoxingChk;
|
||||||
|
void __fastcall DisplayBtnClick(TObject *Sender);
|
||||||
|
void __fastcall AdvSettingsBtnClick(TObject *Sender);
|
||||||
|
private: // Benutzer-Deklarationen
|
||||||
|
public: // Benutzer-Deklarationen
|
||||||
|
__fastcall TConfigForm(TComponent* Owner);
|
||||||
|
};
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
extern PACKAGE TConfigForm *ConfigForm;
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#endif
|
1080
config/cnc-ddraw config.cbproj
Normal file
1080
config/cnc-ddraw config.cbproj
Normal file
File diff suppressed because it is too large
Load Diff
38
config/cnc-ddraw config.cpp
Normal file
38
config/cnc-ddraw config.cpp
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <vcl.h>
|
||||||
|
#pragma hdrstop
|
||||||
|
#include <tchar.h>
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#include <Vcl.Styles.hpp>
|
||||||
|
#include <Vcl.Themes.hpp>
|
||||||
|
USEFORM("ConfigFormUnit.cpp", ConfigForm);
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Application->Initialize();
|
||||||
|
Application->MainFormOnTaskBar = true;
|
||||||
|
TStyleManager::TrySetStyle("Windows10 Blue");
|
||||||
|
Application->CreateForm(__classid(TConfigForm), &ConfigForm);
|
||||||
|
Application->Run();
|
||||||
|
}
|
||||||
|
catch (Exception &exception)
|
||||||
|
{
|
||||||
|
Application->ShowException(&exception);
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
throw Exception("");
|
||||||
|
}
|
||||||
|
catch (Exception &exception)
|
||||||
|
{
|
||||||
|
Application->ShowException(&exception);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
//---------------------------------------------------------------------------
|
3
config/cnc-ddraw configPCH1.h
Normal file
3
config/cnc-ddraw configPCH1.h
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#include <vcl.h>
|
||||||
|
#include <tchar.h>
|
||||||
|
|
BIN
config/cnc-ddraw.ico
Normal file
BIN
config/cnc-ddraw.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
Loading…
x
Reference in New Issue
Block a user