git clone https://github.com/scros18/vera-optimizer.git
cd vera-optimizer- Open
ModernOptimizer.csprojin Visual Studio 2022 - Or open the folder in VS Code with C# extension
dotnet restoredotnet builddotnet runOr press F5 in Visual Studio
vera-optimizer/
├── MainWindow.xaml # Main UI layout
├── MainWindow.xaml.cs # Main logic & event handlers
├── App.xaml # Application startup
├── AboutWindow.xaml # About dialog
├── ModernOptimizer.csproj # Project configuration
├── app.manifest # Admin privileges config
│
├── Helpers/
│ ├── AudioHelper.cs # Sound system
│ ├── ScriptRunner.cs # PowerShell script execution
│ ├── StartupManager.cs # Startup programs management
│ ├── SystemCleaner.cs # Disk cleanup functionality
│ ├── OptimizationHelper.cs # System optimizations
│ ├── Settings.cs # Settings model
│ └── SoundGenerator.cs # WAV audio generation
│
├── Models/
│ └── StartupItem.cs # Startup program data model
│
├── Themes/
│ └── GlassMorphismTheme.xaml # UI styling (buttons, cards)
│
├── Assets/
│ ├── background.jpg # Background image
│ ├── click.wav # UI sound effect
│ └── logo.svg # Branding
│
├── Published/ # Release build output
│ ├── Vera Optimizer.exe # Compiled executable
│ ├── Scripts/ # 100+ optimization scripts
│ └── GameConfigs/ # Game-specific configs
│
└── Scripts/ # Development scripts folder
├── 1 Check/ # System diagnostics
├── 2 Refresh/ # System refresh tools
├── 3 Setup/ # Initial setup scripts
├── 4 Installers/ # App installers
├── 5 Graphics/ # Graphics optimization
├── 6 Windows/ # Windows tweaks
├── 7 Hardware/ # Hardware optimization
└── 8 Advanced/ # Advanced tweaks
MainWindow.xaml.cs- All button clicks, tab navigation, script executionMainWindow.xaml- UI layout with 10 tabs
Helpers/ScriptRunner.cs- Handles PowerShell script executionRunScript_Click()method in MainWindow.xaml.cs - 1-click script runner
- Dynamically loads scripts in
LoadAdvancedScripts()method - Creates script cards with Run buttons
- Line 54-180 in MainWindow.xaml.cs
Themes/GlassMorphismTheme.xaml- Glass button style, card style, colors
- File:
MainWindow.xaml - Line: ~418
- Changed broken icon to 📊 emoji
- File:
MainWindow.xaml(lines 1471-1520) - Changed from folder buttons to dynamic script listing
- Added
ScriptsContainerStackPanel
- File:
MainWindow.xaml.cs - Method:
RunScript_Click()(lines 315-410) - Method:
LoadAdvancedScripts()(lines 67-180) - Scripts run silently with admin rights
- Output shows in Activity Log
- File:
ModernOptimizer.csproj - Self-contained, ReadyToRun, Single-file, Compressed
dotnet publish -c Release -o ".\Published".\RELEASE_BUILD.ps1Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser- Set breakpoints in
RunScript_Click()method - Check Activity Log tab for script output
- Scripts run as admin - may need to run VS as admin
- Edit
MainWindow.xaml - Add new
<TabItem>in the<TabControl> - Add navigation button in sidebar
- Add click handler in
MainWindow.xaml.cs
- Add toggle in Optimizations tab (MainWindow.xaml)
- Add property to
Settings.cs - Add logic in
OptimizationHelper.cs - Save setting in
SaveSettings()
- Edit
RunScript_Click()in MainWindow.xaml.cs - Modify PowerShell arguments
- Change output handling
- Edit
Themes/GlassMorphismTheme.xaml - Modify colors, gradients, effects
- Changes apply to all buttons/cards
- Check .NET 8 is installed:
dotnet --version - Run
dotnet restore - Clean build:
dotnet clean && dotnet build
- Check Scripts folder exists:
.\Scripts\ - Run VS as Administrator
- Check Activity Log for errors
- Check Dispatcher.Invoke() calls for UI updates from background threads
- Verify XAML names match code-behind (x:Name="...")
- DEVELOPMENT.md - Detailed development guide
- BUILD.md - Build and deployment instructions
- XAML_GUIDELINES.md - UI development standards
- CONTRIBUTING.md - Contribution guidelines
- GITHUB_SETUP.md - Git workflow
Main theme colors defined in GlassMorphismTheme.xaml:
- Primary:
#00FFF0(Cyan) - Secondary:
#4FACFE(Blue) - Accent:
#FF6B9D(Pink) - Background:
#0A0B0F(Dark)
- Open
Themes/GlassMorphismTheme.xaml - Copy existing button style
- Modify colors, borders, effects
- Reference in XAML:
Style="{StaticResource YourStyleName}"
- Make your changes
- Test locally:
dotnet run - Build release:
dotnet publish -c Release -o ".\Published" - Commit:
git add . && git commit -m "Your message" - Push:
git push
- Check existing code comments
- Look at similar implementations in the codebase
- Test frequently - scripts modify system settings!
- Use Activity Log tab to debug script execution
Some things you might want to work on:
- Add more script categories
- Implement script scheduling
- Add FPS monitoring overlay
- Create game profile presets
- Multi-language support
- Auto-update system
- Settings import/export
Happy Coding! 🎉
Built with ❤️ by Vera RP | verarp.co.uk