Commit 802efc1
authored
Converted the pause menu to a singleton to reduce allocations (#6454)
* Switched the main menu to only create the Thriveopedia when necessary
to slightly cut on the time needed to create the main menu instance
* Fixed unhandled errors GUI eating mouse clicks in the top right
* Don't allow scroll escape from Thriveopedia
* Made Thriveopedia museum page only load content when shown
instead of immediately on Thriveopedia open
* Started converting the pause menu to a singleton
* Fixed some duplicate sound playing for Thriveopedia
* A few small changes related to singleton pause menu
with hooking up new ways things are reported to it
* Fixed multiple Thriveopedia world page adds
* Open help menu directly from tutorial
* Random change Godot wanted to do
* Singleton pause menu should now be working for all stages
but I didn't super comprehensively test that the menu suppressions between prototypes work sensibly1 parent ef01d52 commit 802efc1
File tree
41 files changed
+438
-357
lines changed- src
- engine
- general
- base_stage
- industrial_stage
- macroscopic_stage
- editor
- microbe_stage
- editor
- multicellular_stage/editor
- saving
- society_stage
- gui
- space_stage
- gui
- thriveopedia
- pages
- tutorial/microbe_stage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+438
-357
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
| 196 | + | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
389 | | - | |
| 395 | + | |
390 | 396 | | |
391 | 397 | | |
392 | 398 | | |
| |||
406 | 412 | | |
407 | 413 | | |
408 | 414 | | |
409 | | - | |
410 | 415 | | |
411 | 416 | | |
412 | 417 | | |
| |||
932 | 937 | | |
933 | 938 | | |
934 | 939 | | |
935 | | - | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
936 | 943 | | |
937 | 944 | | |
938 | 945 | | |
| |||
989 | 996 | | |
990 | 997 | | |
991 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
992 | 1014 | | |
993 | 1015 | | |
994 | 1016 | | |
| |||
1116 | 1138 | | |
1117 | 1139 | | |
1118 | 1140 | | |
1119 | | - | |
1120 | | - | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1121 | 1152 | | |
1122 | 1153 | | |
1123 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
846 | 847 | | |
847 | 848 | | |
848 | 849 | | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | 850 | | |
854 | 851 | | |
855 | 852 | | |
| |||
1029 | 1026 | | |
1030 | 1027 | | |
1031 | 1028 | | |
1032 | | - | |
1033 | 1029 | | |
1034 | 1030 | | |
1035 | 1031 | | |
| |||
0 commit comments