-
Notifications
You must be signed in to change notification settings - Fork 50
Add new theme support and improve localization handling #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dimon222
wants to merge
7
commits into
WFCD:master
Choose a base branch
from
dimon222:feature/more_theme_support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4c703c2
Minor stability improvements
dimon222 248e7ad
Patches for blueprint wording, escaping, forma
dimon222 aafd325
Various patches
dimon222 0507093
Add simple AGENTS.md to simplify debugging
dimon222 5e70e2b
Adjust scaling formulas to avoid duplication + compensation for Spars…
dimon222 fe511e7
Fix counting
dimon222 e03ac45
Derive size of weights dynamically from theme count
dimon222 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # WFInfo — Agent Guide | ||
|
|
||
| WPF (.NET Framework 4.8) desktop app for Warframe. OCR + market prices. | ||
|
|
||
| ## Build & Run | ||
| - `dotnet build -c Release` (output: `bin/Release/net48/WFInfo.exe`) | ||
| - Launch with no args for normal UI mode | ||
| - Startup object is `WFInfo.CustomEntrypoint.Main()` (not `App.Main()`) | ||
|
|
||
| ## Test Framework (headless OCR regression) | ||
| - Triggered automatically when any `.json` arg is passed: `WFInfo.exe map.json [output.json]` | ||
| - `cd tests && run_tests.bat` — locates built `WFInfo.exe` automatically | ||
| - Test data: `tests/data/<name>.json` + `<name>.png` pairs, listed in `tests/map.json` | ||
| - Exit codes: 0=all pass, 1=partial fail, 2=fatal error | ||
| - Real OCR pipeline (no mocks) — first run downloads market data from warframestat.us API | ||
|
|
||
| ## Architecture | ||
| - **Entry** → `CustomEntrypoint.Main()` → Tesseract DLL bootstrap → `App.Main()` (WPF) | ||
| - **Dependency Injection** via `Microsoft.Extensions.DependencyInjection` in `Main.cs` | ||
| - **OCR** → `Ocr.cs`: screenshot → `ExtractPartBoxAutomatically` → Tesseract → Levenshtein `GetPartName()` | ||
| - **Data** → `Data.cs`: JSON from `api.warframestat.us/wfinfo/prices`, JWT auth, WebSocket for warframe.market | ||
| - **Auto-mode** → `LogCapture.cs`: reads Warframe `EE.log` via memory-mapped file, triggers on `"Got rewards"` | ||
| - **Screenshots** → dual backend: GDI (fallback) + Windows.Graphics.Capture (Win10+ 2004+) | ||
| - **Languages** → `LanguageProcessing/`: 11 processors (CJK, Cyrillic, Latin, Thai, Turkish, Polish) | ||
|
|
||
| ## Key Tech Stack | ||
| - .NET Framework 4.8, WPF, WinForms interop | ||
| - Tesseract 5.2.0 (native DLLs via Costura.Fody bundling) | ||
| - Newtonsoft.Json, SharpDX.Direct3D11, AutoUpdater.NET | ||
|
|
||
| ## Quirks & Gotchas | ||
| - `AllowUnsafeBlocks=true` — Tesseract interop | ||
| - Costura merges `Tesseract50.dll`, `leptonica-1.82.0.dll` into the exe | ||
| - Tesseract DLLs downloaded from GitHub `WFCD/WFinfo/libs` branch on first run to `%APPDATA%\WFInfo\tesseract5\` | ||
| - Release build auto-generates `update.xml` + `WFInfo.zip` via MSBuild targets | ||
| - Debug logs at `%APPDATA%\WFInfo\debug.log` (async queue, flushed every 250ms) | ||
| - DPI awareness: PerMonitorV2 (app.manifest) | ||
| - No CI workflows present | ||
| - Dependabot: NuGet weekly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.