Commit 9c94486
Collapse dead post-GumCommon platform #if branches in Forms header usings (#3541)
* Collapse dead post-GumCommon platform #if branches in Forms header usings
The Gum Forms control files physically live in MonoGameGum/Forms/ but are compiled exactly once — into GumCommon (net8.0), which defines none of XNALIKE/RAYLIB/SOKOL/SKIA/FRB. Every runtime (MonoGame/KNI/FNA/Raylib/Sokol) compile-Removes them and consumes them from the GumCommon reference; FRB is the one exception, compiling these same files separately with FRB defined.
So in each file's top-of-file using-selection block, the #elif XNALIKE / #elif RAYLIB / #elif SOKOL branches were dead code that nothing compiled — and actively misleading (they read as if MonoGame uses XNA Keys, which it no longer does after the shipped neutral-Keys migration). Collapsed each to just #if FRB / neutral #else. KeyCombo.cs rewritten from '#if !XNALIKE && !FRB' to the same '#if FRB / #else' shape (behavior-identical). Also deleted the dead '#if MONOGAME' block in FrameworkElementExt.cs (unused 'using Microsoft.Xna.Framework;' whose only consumer is a commented-out AddDebugOverlay), and corrected a KeyCombo comment made stale by the migration.
Content-only edits: no files added/renamed/deleted, so no projitems changes. FRB #if branches and body platform #if blocks (TextBoxBase caret/native-keyboard, RangeBase MONOGAME, ANDROID) left untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Document why TextBox caret fast-path stays #if XNALIKE, link #3542
The #if XNALIKE caret block in GetIndex is only compiled by FRB's XNA-family builds post-GumCommon migration; it gates an XNA bitmap-font capability (not FRB-ness), so it is intentionally not #if FRB. Tracks the IFormsText lift in #3542.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Document ListBox selection-modifier-key type change in May migration doc
The four public static ListBox multi-select modifier keys (ToggleSelectionModifierKey, AlternateToggleSelectionModifierKey, RangeSelectionModifierKey, AlternateRangeSelectionModifierKey) also flipped from XNA Keys to Gum.Forms.Input.Keys when Forms moved to GumCommon, but were missing from the migration doc's widened-input-types section. Adds the table row plus a short subsection.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b684e57 commit 9c94486
12 files changed
Lines changed: 36 additions & 61 deletions
File tree
- MonoGameGum
- Forms/Controls
- Primitives
- Input
- docs/gum-tool/upgrading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 35 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
53 | 42 | | |
54 | 43 | | |
55 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
771 | 766 | | |
772 | 767 | | |
773 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
774 | 778 | | |
775 | 779 | | |
776 | 780 | | |
| |||
0 commit comments