ui: eget faneikon (hvid streg: pin + tipvogn + traktor, gui/menuIcon.dds) (v1.11.3.0)
This commit is contained in:
@@ -834,10 +834,9 @@ local function loadGui()
|
||||
g_gui:loadProfiles(ADSmartPickup.dir .. "gui/guiProfiles.xml")
|
||||
local frame = SmartPickupFrame.new(g_i18n, getAutoDriveEnv)
|
||||
g_gui:loadGui(ADSmartPickup.dir .. "gui/SmartPickupFrame.xml", "smartPickupFrame", frame, true)
|
||||
local iconFile = Utils.getFilename("icon.dds", ADSmartPickup.dir)
|
||||
-- icon.dds er 512×512. Uden referencestørrelsen normaliserer getUVs mod 1024×1024,
|
||||
-- og fanen ville kun vise ikonets øverste venstre fjerdedel.
|
||||
local iconUVs = GuiUtils.getUVs({0, 0, 512, 512}, {512, 512})
|
||||
-- Eget faneikon i spillets stil (hvid streg på gennemsigtig baggrund, 1024×1024, DXT5).
|
||||
local iconFile = Utils.getFilename("gui/menuIcon.dds", ADSmartPickup.dir)
|
||||
local iconUVs = GuiUtils.getUVs({0, 0, 1024, 1024}, {1024, 1024})
|
||||
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")
|
||||
return
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.11.2.0</version>
|
||||
<version>1.11.3.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user