ui: eget faneikon (hvid streg: pin + tipvogn + traktor, gui/menuIcon.dds) (v1.11.3.0)

This commit is contained in:
2026-09-23 02:10:05 +02:00
parent 83e46f94ff
commit 03adf05b83
3 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -834,10 +834,9 @@ local function loadGui()
g_gui:loadProfiles(ADSmartPickup.dir .. "gui/guiProfiles.xml") g_gui:loadProfiles(ADSmartPickup.dir .. "gui/guiProfiles.xml")
local frame = SmartPickupFrame.new(g_i18n, getAutoDriveEnv) local frame = SmartPickupFrame.new(g_i18n, getAutoDriveEnv)
g_gui:loadGui(ADSmartPickup.dir .. "gui/SmartPickupFrame.xml", "smartPickupFrame", frame, true) g_gui:loadGui(ADSmartPickup.dir .. "gui/SmartPickupFrame.xml", "smartPickupFrame", frame, true)
local iconFile = Utils.getFilename("icon.dds", ADSmartPickup.dir) -- Eget faneikon i spillets stil (hvid streg på gennemsigtig baggrund, 1024×1024, DXT5).
-- icon.dds er 512×512. Uden referencestørrelsen normaliserer getUVs mod 1024×1024, local iconFile = Utils.getFilename("gui/menuIcon.dds", ADSmartPickup.dir)
-- og fanen ville kun vise ikonets øverste venstre fjerdedel. local iconUVs = GuiUtils.getUVs({0, 0, 1024, 1024}, {1024, 1024})
local iconUVs = GuiUtils.getUVs({0, 0, 512, 512}, {512, 512})
if not insertInGameMenuPage(frame, "smartPickupFrame", iconFile, iconUVs, function() return g_currentMission ~= nil end) then if not insertInGameMenuPage(frame, "smartPickupFrame", iconFile, iconUVs, function() return g_currentMission ~= nil end) then
Logging.warning(ADSmartPickup.LOG_PREFIX .. "kunne ikke indsætte fanen i ESC-menuen") Logging.warning(ADSmartPickup.LOG_PREFIX .. "kunne ikke indsætte fanen i ESC-menuen")
return return
Binary file not shown.
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="107"> <modDesc descVersion="107">
<author>masterdraco</author> <author>masterdraco</author>
<version>1.11.2.0</version> <version>1.11.3.0</version>
<title> <title>
<en>AD Smart Pickup</en> <en>AD Smart Pickup</en>
</title> </title>