From bca70cb2356ecee3f2597eef33ba172e74866dc9 Mon Sep 17 00:00:00 2001 From: MadisonianX Date: Mon, 2 Dec 2024 07:57:27 -0600 Subject: [PATCH 01/17] Feat(code): Add HUD display for Solar Power and Solar Wind Adds an attribute for `"solar scan"` and `"ramscoop scan"` to determine the total solar power or solar wind of a system and display it on the HUD. --- data/_ui/interfaces.txt | 19 +++++++++++++++++++ data/human/outfits.txt | 13 +++++++++++++ data/human/sales.txt | 3 ++- images/outfit/astronomical scanner.png | Bin 0 -> 21040 bytes images/ui/tactical/wind.png | Bin 0 -> 1912 bytes source/Engine.cpp | 14 ++++++++++++++ source/Ship.cpp | 16 ++++++++++++++++ source/Ship.h | 2 ++ 8 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 images/outfit/astronomical scanner.png create mode 100644 images/ui/tactical/wind.png diff --git a/data/_ui/interfaces.txt b/data/_ui/interfaces.txt index da9e58f3e768..ad0f0868f127 100644 --- a/data/_ui/interfaces.txt +++ b/data/_ui/interfaces.txt @@ -769,6 +769,25 @@ interface "hud" color "medium" align left + # System Solar Power and Solar Wind display + visible if "system solar display" + sprite "ui/tactical/solar" + from -2205 70 + align top left + string "system solar" + from -2188 79 + color "medium" + align left + + visible if "system wind display" + sprite "ui/tactical/wind" + from -2200 90 + align top left + string "system wind" + from -2183 99 + color "medium" + align left + string "incoming" from -70 320 color "medium" diff --git a/data/human/outfits.txt b/data/human/outfits.txt index bf903f42bb03..5e153ff4459c 100644 --- a/data/human/outfits.txt +++ b/data/human/outfits.txt @@ -290,6 +290,19 @@ outfit "Thermal Scanner" "thermal scan power" 35 description "While thermal signatures have always been useful as a means of identifying and tracking ships, determining a ship's effective average thermal load was functionally useless until recently. With the development of the plasma cannon and then the flamethrower, attempting to overheat a ship has become a viable combat technique. As such, engineers with the Free World have begun assembling these sensor packages to support the daring captains who choose to use this tactic." + +outfit "Astronomical Scanner" + category "Systems" + cost 18000 + thumbnail "outfit/astronomical scanner" + "mass" 2 + "outfit space" -2 + "energy consumption" .1 + "solar scan" 1 + "ramscoop scan" 1 + description " An astronomical scanner provides data on the system's total solar power and wind output, allowing captains to see which systems are best for solar collection or ramscoop usage." + + outfit "Surveillance Pod" category "Systems" cost 122500 diff --git a/data/human/sales.txt b/data/human/sales.txt index 3c2d8676fc3c..6e5e35cac7bf 100644 --- a/data/human/sales.txt +++ b/data/human/sales.txt @@ -258,7 +258,8 @@ outfitter "Common Outfits" "Pilot's License" "Laser Rifle" "Fuel Bar Fixed Display" - + "Astronomical Scanner" + outfitter "Ammo North" "Meteor Missile" "Torpedo" diff --git a/images/outfit/astronomical scanner.png b/images/outfit/astronomical scanner.png new file mode 100644 index 0000000000000000000000000000000000000000..d84e7db30584cdff827294f280d13f46fc969a2a GIT binary patch literal 21040 zcmbTd1z40{*Dj7UNH<7>lr%$^bPh2L(jwhGbP3WRAkEM)!EtI%>aCXfpBv zo>n$4b}(jZI|nCsS=Ph0PF7|oTUk~kQLrG`Q_0TJNj=Eh&LBt!Y7^vQBWcSjFUKqs zAO#fQW(Tuk4sdgI_mK*aW&KyVQo!{;Ukk7@|4RhsBFn1qPle3JU_E9f4{tkWNq!+d z8$m%~W^qY=YjGPfkd2MKBrmhDpfE^4P+UMrj88~dN<>mh5XAiNKUSbZZ(DmQh_dRx zs{`(2Ssh_8PbmQbe}8{|e-VBUZwCP(Nl8foL16)5VLm{D&nM6wW);Ba?!)%qB`DkZ z*myg6!kj$Zng1!#%G$#hCd&#m_P=`J=J}su-F^N&QoxuA1Xy_r2=NR4)2n|8+S>d_ z&ePZ1^lRgZ;JlU&;LsW!03X(|Ec4D+ZH#s z|5V`vQ}F}3@$Uio-%9&H13m2oAa*_;zTP%=Dtp$}b%ov}bFjP=f3it;}@Ck}Z2@3v~ zDA>c+$v*IZD=H=>B>umM0(xU>1+)5p6}GjJviIoefs|76 zaP{y8Dh667@~>8a!BQITJ}@hH8#@hUSyrIe{7z1`Que~a)`DU}c6>r&fVO}n?IrlE zt!!-hKtiH+!orev*23aK|NXq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s6uT*u2yKM|9(lmqfXk~Y@F1MTK`4XI^S&pKe6zd>aPH^x7W5?46fgpRVZmx5@-}-qb*q}pd@B-T8kb_1(!q$#$X&Orh%|b7OO>6 zQ#B&$16*f6-xC0(HxS6i7?(>to(*A`zE&h7ose>L4$~fz=arpBAAj*m*V!>S|&wPLEi&KjUxdQ{4ZD%g^;Sp0g^1oK^Rh+5+?9$B85sdrs^m# zV#lRe1OkFzF-)L{(C_sSNVQFtC4u9hn{@&g$vBu0Y3H0g3B-^Ssi8%VcDgvm0WER)@T_k40V6aQs3?x zLm4=lZPqe7SkXgvG(!cs*3sY{%D?>#hUKjBdni zIdai={<+7e#rEY_6yG`1*IKl3^VH@&JM)S<@`$dY1%K)N?{&U0ymsd4Lr1m3Y25IQ z(t*)eF1Safw)cP8bXizZk??&ybu_urC_ORnuy&pX^Jh}LI6Lxj`wGp*D zy8d*5?a;R2kux)2npARfj`LjiMb~M5_RzC)z*FuEJ)4RzF^VnJw5NnhkJ!Z zx1yeJg73y@Z2sVibw$zSz?xv!K-c7+TVJm8?XRg^c%#EE?l1rI$EtmK2Xl{>wER}r yT=U1S@6UcbcpULB!&K)kl)7yEa>eG;`adz(8DisplaySystemSolar() * 100); // Combined system Solar Power multiplied to not display decimal stats + if(displaySystemPower >= 0.01 && flagship->Attributes().Get("solar scan")) // Requires solar scan to display + { + info.SetCondition("system solar display"); + info.SetString("system solar", to_string(displaySystemPower)); + } + // Display combined Sold Wind for system + int displaySystemWind = (flagship->DisplaySystemWind() * 100); // Combined system Solar Wind multiplied to not display decimal stats + if(displaySystemWind >= 0.01 && flagship->Attributes().Get("ramscoop scan")) // Requires ramscoop scan to display + { + info.SetCondition("system wind display"); + info.SetString("system wind", to_string(displaySystemWind)); + } // These check for the attribute to determine if the pilot has installed // outfits that give a live display of ship mass and jump fuel costs. bool flagshipMassDisplay = flagship->DisplayMass(); diff --git a/source/Ship.cpp b/source/Ship.cpp index 2db8a947ff9b..7758dc0f904d 100644 --- a/source/Ship.cpp +++ b/source/Ship.cpp @@ -2907,6 +2907,22 @@ double Ship::DisplayRamScoop() const +// Display combined solar power for the system. +double Ship::DisplaySystemSolar() const +{ + return currentSystem->SolarPower(); +} + + + +// Display combined solar wind for the system. +double Ship::DisplaySystemWind() const +{ + return currentSystem->SolarWind(); +} + + + // These are for the thruster activity bars double Ship::DisplayThrust() const { diff --git a/source/Ship.h b/source/Ship.h index 5426aad093ac..2c19d437f26b 100644 --- a/source/Ship.h +++ b/source/Ship.h @@ -345,6 +345,8 @@ class Ship : public Body, public std::enable_shared_from_this { bool DisplayJumpFuelCost() const; double DisplaySolar() const; double DisplayRamScoop() const; + double DisplaySystemSolar() const; + double DisplaySystemWind() const; // These are for the thruster activity bars double DisplayThrust() const; double DisplayTurn() const; From 1a7205fb58df61eabdff954a4ff2ea64fa027cc3 Mon Sep 17 00:00:00 2001 From: Madisonian Date: Mon, 2 Dec 2024 09:12:42 -0600 Subject: [PATCH 02/17] Update source/Engine.cpp Co-authored-by: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> --- source/Engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Engine.cpp b/source/Engine.cpp index 68724a7a7e72..c961061a86d6 100644 --- a/source/Engine.cpp +++ b/source/Engine.cpp @@ -797,7 +797,7 @@ void Engine::Step(bool isActive) info.SetCondition("system solar display"); info.SetString("system solar", to_string(displaySystemPower)); } - // Display combined Sold Wind for system + // Display combined Solar Wind for system int displaySystemWind = (flagship->DisplaySystemWind() * 100); // Combined system Solar Wind multiplied to not display decimal stats if(displaySystemWind >= 0.01 && flagship->Attributes().Get("ramscoop scan")) // Requires ramscoop scan to display { From 058ea580972569faffb1224723ebfcd3be296efc Mon Sep 17 00:00:00 2001 From: Madisonian Date: Mon, 2 Dec 2024 09:12:59 -0600 Subject: [PATCH 03/17] Update data/human/outfits.txt Co-authored-by: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> --- data/human/outfits.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/human/outfits.txt b/data/human/outfits.txt index 5e153ff4459c..9795f1da8659 100644 --- a/data/human/outfits.txt +++ b/data/human/outfits.txt @@ -300,7 +300,7 @@ outfit "Astronomical Scanner" "energy consumption" .1 "solar scan" 1 "ramscoop scan" 1 - description " An astronomical scanner provides data on the system's total solar power and wind output, allowing captains to see which systems are best for solar collection or ramscoop usage." + description "An astronomical scanner provides data on the system's total solar power and wind output, allowing captains to see which systems are best for solar collection or ramscoop usage." outfit "Surveillance Pod" From 17268d1366f77afb477a67c0b4f17087a6f358c4 Mon Sep 17 00:00:00 2001 From: MadisonianX Date: Mon, 2 Dec 2024 09:46:54 -0600 Subject: [PATCH 04/17] Feat(code): Add HUD display for Solar Power and Solar Wind --- data/_ui/tooltips.txt | 6 ++++++ data/human/sales.txt | 1 + source/Engine.cpp | 8 ++++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/data/_ui/tooltips.txt b/data/_ui/tooltips.txt index b73dfd6b7b1e..7fe6ccee7ebf 100644 --- a/data/_ui/tooltips.txt +++ b/data/_ui/tooltips.txt @@ -84,6 +84,12 @@ tip "asteroid scan power:" tip "atmosphere scan:" `This type of scanning cannot be performed by your ship, but this outfit might be useful for certain missions.` +tip "solar scan:" + `Allows scanning of stellar objects to determine their precise power output for display on the HUD.` + +tip "ramscoop scan:" + `Allows scanning of stellar objects to determine their precise wind output for display on the HUD.` + tip "bunks:" `The number of people (passengers or crew) your ship can hold.` diff --git a/data/human/sales.txt b/data/human/sales.txt index 6e5e35cac7bf..d59c5931067f 100644 --- a/data/human/sales.txt +++ b/data/human/sales.txt @@ -350,6 +350,7 @@ outfitter "Deep Sky Advanced" "In-flight Mass Display" "Hyperjump Fuel Display" "Fuel Bar Hyperjump Display" + "Astronomical Scanner" outfitter "Lovelace Basics" "Anti-Missile Turret" diff --git a/source/Engine.cpp b/source/Engine.cpp index c961061a86d6..935223585560 100644 --- a/source/Engine.cpp +++ b/source/Engine.cpp @@ -791,15 +791,15 @@ void Engine::Step(bool isActive) info.SetString("flagship solar", to_string(flagshipSolar)); } // Display combined Solar Power for system - int displaySystemPower = (flagship->DisplaySystemSolar() * 100); // Combined system Solar Power multiplied to not display decimal stats - if(displaySystemPower >= 0.01 && flagship->Attributes().Get("solar scan")) // Requires solar scan to display + int displaySystemPower = (flagship->DisplaySystemSolar() * 100); // Multiplied to better display decimal inputs + if(displaySystemPower >= 0.01 && flagship->Attributes().Get("solar scan")) { info.SetCondition("system solar display"); info.SetString("system solar", to_string(displaySystemPower)); } // Display combined Solar Wind for system - int displaySystemWind = (flagship->DisplaySystemWind() * 100); // Combined system Solar Wind multiplied to not display decimal stats - if(displaySystemWind >= 0.01 && flagship->Attributes().Get("ramscoop scan")) // Requires ramscoop scan to display + int displaySystemWind = (flagship->DisplaySystemWind() * 100); // Multiplied to better display decimal inputs + if(displaySystemWind >= 0.01 && flagship->Attributes().Get("ramscoop scan")) { info.SetCondition("system wind display"); info.SetString("system wind", to_string(displaySystemWind)); From 11bb06fbc9a100bf7f6c5b71f386bc316e255230 Mon Sep 17 00:00:00 2001 From: MadisonianX Date: Mon, 2 Dec 2024 09:49:10 -0600 Subject: [PATCH 05/17] Update sales.txt --- data/human/sales.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/human/sales.txt b/data/human/sales.txt index d59c5931067f..530170df7330 100644 --- a/data/human/sales.txt +++ b/data/human/sales.txt @@ -308,7 +308,8 @@ outfitter "Deep Sky Basics" "A370 Atomic Thruster" "A375 Atomic Steering" "AR120 Reverse Thruster" - + "Astronomical Scanner" + outfitter "Deep Sky Advanced" "Ramscoop" "LP144a Battery Pack" From c82cfd7c7db1735fdaed8c56246a2ebb3b7455b3 Mon Sep 17 00:00:00 2001 From: MadisonianX Date: Tue, 3 Dec 2024 03:24:00 -0600 Subject: [PATCH 06/17] update interface data to child of top left anchor also update tooltips --- data/_ui/interfaces.txt | 40 ++++++++++++++++++++-------------------- data/_ui/tooltips.txt | 4 ++-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/data/_ui/interfaces.txt b/data/_ui/interfaces.txt index ad0f0868f127..513be5d0039d 100644 --- a/data/_ui/interfaces.txt +++ b/data/_ui/interfaces.txt @@ -769,25 +769,6 @@ interface "hud" color "medium" align left - # System Solar Power and Solar Wind display - visible if "system solar display" - sprite "ui/tactical/solar" - from -2205 70 - align top left - string "system solar" - from -2188 79 - color "medium" - align left - - visible if "system wind display" - sprite "ui/tactical/wind" - from -2200 90 - align top left - string "system wind" - from -2183 99 - color "medium" - align left - string "incoming" from -70 320 color "medium" @@ -795,7 +776,7 @@ interface "hud" - # Targets. + # System / Radar anchor top left visible if "red alert" sprite "ui/red alert" @@ -823,7 +804,26 @@ interface "hud" color "medium" width 135 truncate back + + visible if "system solar display" + sprite "ui/tactical/solar" + from 252 67 + align top left + string "system solar" + from 269 76 + color "medium" + align left + + visible if "system wind display" + sprite "ui/tactical/wind" + from 258 90 + align top left + string "system wind" + from 275 99 + color "medium" + align left + # Targets sprite "ui/target" from 0 240 align top left diff --git a/data/_ui/tooltips.txt b/data/_ui/tooltips.txt index 7fe6ccee7ebf..c310e16616d1 100644 --- a/data/_ui/tooltips.txt +++ b/data/_ui/tooltips.txt @@ -85,10 +85,10 @@ tip "atmosphere scan:" `This type of scanning cannot be performed by your ship, but this outfit might be useful for certain missions.` tip "solar scan:" - `Allows scanning of stellar objects to determine their precise power output for display on the HUD.` + `Allows scanning of stellar objects to determine their precise solar power output for display on the HUD.` tip "ramscoop scan:" - `Allows scanning of stellar objects to determine their precise wind output for display on the HUD.` + `Allows scanning of stellar objects to determine their precise solar wind output for display on the HUD.` tip "bunks:" `The number of people (passengers or crew) your ship can hold.` From 5386f2d7133ebf755291fe7b8c04239a4152bdbc Mon Sep 17 00:00:00 2001 From: Madisonian Date: Sat, 14 Dec 2024 11:51:28 -0600 Subject: [PATCH 07/17] Update data/human/sales.txt Co-authored-by: Zitchas <32169904+Zitchas@users.noreply.github.com> --- data/human/sales.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/data/human/sales.txt b/data/human/sales.txt index 530170df7330..9ce1a8fdbca4 100644 --- a/data/human/sales.txt +++ b/data/human/sales.txt @@ -258,7 +258,6 @@ outfitter "Common Outfits" "Pilot's License" "Laser Rifle" "Fuel Bar Fixed Display" - "Astronomical Scanner" outfitter "Ammo North" "Meteor Missile" From 057bbe1af56709105f6e15dedfc38447cf0da590 Mon Sep 17 00:00:00 2001 From: Madisonian Date: Sat, 14 Dec 2024 11:53:00 -0600 Subject: [PATCH 08/17] Update Engine.cpp --- source/Engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Engine.cpp b/source/Engine.cpp index b2de013c9820..28a02644067b 100644 --- a/source/Engine.cpp +++ b/source/Engine.cpp @@ -797,14 +797,14 @@ void Engine::Step(bool isActive) } // Display combined Solar Power for system int displaySystemPower = (flagship->DisplaySystemSolar() * 100); // Multiplied to better display decimal inputs - if(displaySystemPower >= 0.01 && flagship->Attributes().Get("solar scan")) + if(displaySystemPower >= 0.01 && flagship->Attributes().Get("solar power sensor")) { info.SetCondition("system solar display"); info.SetString("system solar", to_string(displaySystemPower)); } // Display combined Solar Wind for system int displaySystemWind = (flagship->DisplaySystemWind() * 100); // Multiplied to better display decimal inputs - if(displaySystemWind >= 0.01 && flagship->Attributes().Get("ramscoop scan")) + if(displaySystemWind >= 0.01 && flagship->Attributes().Get("solar wind sensor")) { info.SetCondition("system wind display"); info.SetString("system wind", to_string(displaySystemWind)); From 8778f8a5750f76db52d1a14f74191fc38c86fdb8 Mon Sep 17 00:00:00 2001 From: Madisonian Date: Sat, 14 Dec 2024 11:53:43 -0600 Subject: [PATCH 09/17] Update outfits.txt --- data/human/outfits.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/human/outfits.txt b/data/human/outfits.txt index 9795f1da8659..825ed95163e1 100644 --- a/data/human/outfits.txt +++ b/data/human/outfits.txt @@ -298,8 +298,8 @@ outfit "Astronomical Scanner" "mass" 2 "outfit space" -2 "energy consumption" .1 - "solar scan" 1 - "ramscoop scan" 1 + "solar power sensor" 1 + "solar wind sensor" 1 description "An astronomical scanner provides data on the system's total solar power and wind output, allowing captains to see which systems are best for solar collection or ramscoop usage." From fc98542566eb8b26f54534f66193f0458f91c85c Mon Sep 17 00:00:00 2001 From: Madisonian Date: Sat, 14 Dec 2024 11:58:33 -0600 Subject: [PATCH 10/17] Update tooltips.txt --- data/_ui/tooltips.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/_ui/tooltips.txt b/data/_ui/tooltips.txt index 789c7d4d8035..cef70e30e0db 100644 --- a/data/_ui/tooltips.txt +++ b/data/_ui/tooltips.txt @@ -84,11 +84,11 @@ tip "asteroid scan power:" tip "atmosphere scan:" `This type of scanning cannot be performed by your ship, but this outfit might be useful for certain missions.` -tip "solar scan:" - `Allows scanning of stellar objects to determine their precise solar power output for display on the HUD.` +tip "solar power sensor:" + `Automatically analyzes stellar objects to determine their precise solar power for display on the HUD, with combined output for multi-star systems.` -tip "ramscoop scan:" - `Allows scanning of stellar objects to determine their precise solar wind output for display on the HUD.` +tip "solar wind sensor:" + `Automatically analyzes stellar objects to determine their precise solar wind for display on the HUD, with combined output for multi-star systems.` tip "bunks:" `The number of people (passengers or crew) your ship can hold.` From 4aeb0a8f858ad23aa4346aba244ddaea36b795b4 Mon Sep 17 00:00:00 2001 From: Madisonian Date: Sat, 14 Dec 2024 11:59:02 -0600 Subject: [PATCH 11/17] Update sales.txt --- data/human/sales.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/human/sales.txt b/data/human/sales.txt index 9ce1a8fdbca4..851d03f1921d 100644 --- a/data/human/sales.txt +++ b/data/human/sales.txt @@ -258,7 +258,7 @@ outfitter "Common Outfits" "Pilot's License" "Laser Rifle" "Fuel Bar Fixed Display" - + outfitter "Ammo North" "Meteor Missile" "Torpedo" From db6e58aa2ff8db897ff61f1f8ada0b67bb3e48de Mon Sep 17 00:00:00 2001 From: MadisonianX Date: Sat, 14 Dec 2024 12:34:13 -0600 Subject: [PATCH 12/17] Update interfaces.txt --- data/_ui/interfaces.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/data/_ui/interfaces.txt b/data/_ui/interfaces.txt index ab8f7cec30d5..882c3238b7eb 100644 --- a/data/_ui/interfaces.txt +++ b/data/_ui/interfaces.txt @@ -775,10 +775,8 @@ interface "hud" from -70 320 color "medium" align right - - - - # System / Radar + + # Radar anchor top left visible if "red alert" sprite "ui/red alert" @@ -794,7 +792,6 @@ interface "hud" value "radar radius" 110 value "radar pointer radius" 130 - # Current system. sprite "ui/current system" from 43 0 align top left @@ -809,7 +806,6 @@ interface "hud" sprite "ui/navigation" from 195 0 align top left - string "navigation mode" from 215 20 align left @@ -840,6 +836,7 @@ interface "hud" align left # Targets + visible sprite "ui/target" from 0 275 align top left From b9d08c95e7c31c782e7ca5b668aa24fb5c39190b Mon Sep 17 00:00:00 2001 From: Madisonian Date: Tue, 24 Dec 2024 12:04:52 -0600 Subject: [PATCH 13/17] Update data/_ui/interfaces.txt Co-authored-by: Zitchas <32169904+Zitchas@users.noreply.github.com> --- data/_ui/interfaces.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/_ui/interfaces.txt b/data/_ui/interfaces.txt index 7036243bc88d..e6a53fdc7c8d 100644 --- a/data/_ui/interfaces.txt +++ b/data/_ui/interfaces.txt @@ -821,7 +821,7 @@ interface "hud" visible if "system solar display" sprite "ui/tactical/solar" - from 252 67 + from 251 67 align top left string "system solar" from 269 76 From d2685d78966d1e99a6423ec43bbe21b33a53eb91 Mon Sep 17 00:00:00 2001 From: Madisonian Date: Tue, 24 Dec 2024 12:05:00 -0600 Subject: [PATCH 14/17] Update data/_ui/interfaces.txt Co-authored-by: Zitchas <32169904+Zitchas@users.noreply.github.com> --- data/_ui/interfaces.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/_ui/interfaces.txt b/data/_ui/interfaces.txt index e6a53fdc7c8d..ab7aaea66687 100644 --- a/data/_ui/interfaces.txt +++ b/data/_ui/interfaces.txt @@ -830,7 +830,7 @@ interface "hud" visible if "system wind display" sprite "ui/tactical/wind" - from 258 90 + from 256 90 align top left string "system wind" from 275 99 From 415079ebc31d101b3b3f1564ce50af53687901ba Mon Sep 17 00:00:00 2001 From: Madisonian Date: Tue, 24 Dec 2024 12:05:08 -0600 Subject: [PATCH 15/17] Update data/_ui/interfaces.txt Co-authored-by: Zitchas <32169904+Zitchas@users.noreply.github.com> --- data/_ui/interfaces.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/_ui/interfaces.txt b/data/_ui/interfaces.txt index ab7aaea66687..17be0f3a3259 100644 --- a/data/_ui/interfaces.txt +++ b/data/_ui/interfaces.txt @@ -777,8 +777,10 @@ interface "hud" from -70 320 color "medium" align right - - # Radar + + + + # RADAR anchor top left visible if "red alert" sprite "ui/red alert" From 7e1ab27f35e648413d2d79fc898ed4f84a6984d6 Mon Sep 17 00:00:00 2001 From: Zitchas <32169904+Zitchas@users.noreply.github.com> Date: Thu, 2 Jan 2025 05:52:29 -0500 Subject: [PATCH 16/17] Adding a template copyright Please correct as necessary. All the stuff in the comments should be removed if you entirely created both, or with a "derived from works by X" if that is the case. --- copyright | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/copyright b/copyright index e81d58995b62..e12abfd06663 100644 --- a/copyright +++ b/copyright @@ -3928,6 +3928,15 @@ Copyright: None (placed in public domain by an anonymous author) License: CC0 Comment: Uses public domain textures from texture.ninja. Meshes were made by an anonymous author in 2023-2024. +Files: + images/outfit/astronomical?scanner* + images/ui/tactical/wind.png +Copyright: MadisonianX (https://github.com/MadisonianX) +License: CC-BY-SA-4.0 +Comment: Unclear if these are derived from anything or entirely original. If one is derived and the other original, + then this copyright entry can be split to have one for the one, and a second for the other. + (If unclear, derived means a pre-existing image was modified to get this) + License: Depends Taken from unsplash.com. Until June 2017, this was a collection of photographs that had been donated and placed in the public domain. In June 2017, Unsplash modified their terms and conditions to make all images From 702ba448f572deae5fe8219bc2415f2a49be2127 Mon Sep 17 00:00:00 2001 From: Zitchas <32169904+Zitchas@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:48:42 -0500 Subject: [PATCH 17/17] Update copyright --- copyright | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/copyright b/copyright index e12abfd06663..863684f03dc1 100644 --- a/copyright +++ b/copyright @@ -3933,9 +3933,7 @@ Files: images/ui/tactical/wind.png Copyright: MadisonianX (https://github.com/MadisonianX) License: CC-BY-SA-4.0 -Comment: Unclear if these are derived from anything or entirely original. If one is derived and the other original, - then this copyright entry can be split to have one for the one, and a second for the other. - (If unclear, derived means a pre-existing image was modified to get this) +Comment: wind icon is acquired from flaticon via paid subscription and, as per site instructions, does not need to be credited. As such all rights pertain to MadisonianX. License: Depends Taken from unsplash.com. Until June 2017, this was a collection of photographs that had been donated and