Commit 4938ec9
authored
feature: ability to highlight selected NPC with declared spawn (AscensionGameDev#2223)
* feature: ability to highlight selected NPC with declared spawn
(Editor feature and QoL update)
- Adds the ability to highlight selected NPC with declared spawn within the map grid
- Adds configurable pulsating color for selected NPC spawns
- QoL enhancements and fixes for declared/random spawns:
- Differently colored text as visual aid
- Pressing the random checkbox for spawn location updates the grid preview
- QoL enhancements on forms organization within the NPCs map layers tab
- Adds a spawn counter under the NPC list
(day's review)
- Cached repeated global calls
- Simplified code, less nesting
- Adjusted Color Pulse calculation to use Intersect's Timing system
- HotPink is easier to read with dark background for random location label
(chore: UI changes and fixes)
- prevents an ArgumentOutOfRangeException at Graphics.cs L:1007 with a check to ensure that selectedNpcIndex is less than the size of tmpMap.Spawns before using it to access an element in the list.
- Reorganizes things a bit, added border style to the spawn counter.1 parent 8b9cecf commit 4938ec9
File tree
5 files changed
+202
-74
lines changed- Intersect.Editor
- Core
- Forms
- DockingElements
- Helpers
- Localization
5 files changed
+202
-74
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| |||
982 | 987 | | |
983 | 988 | | |
984 | 989 | | |
985 | | - | |
| 990 | + | |
986 | 991 | | |
987 | | - | |
988 | | - | |
989 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
990 | 998 | | |
991 | | - | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
992 | 1013 | | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1001 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
1002 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1003 | 1033 | | |
1004 | 1034 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | 1035 | | |
1009 | 1036 | | |
1010 | 1037 | | |
| |||
Lines changed: 77 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments