fix(ui): redigeringsvinduet i menuens mørke tone (lineær farve 0.016) og så bredt som rækkerne (v1.59.5.0)
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
SmartPickupFrame.EDIT_PANEL_KINDS = SmartPickupFrame.EDIT_PANEL_KINDS or {}
|
SmartPickupFrame.EDIT_PANEL_KINDS = SmartPickupFrame.EDIT_PANEL_KINDS or {}
|
||||||
SmartPickupFrame.EDIT_PANEL_WIDTH, SmartPickupFrame.EDIT_PANEL_HEIGHT = 0.80, 0.90 -- andel af listens flade
|
SmartPickupFrame.EDIT_PANEL_WIDTH, SmartPickupFrame.EDIT_PANEL_HEIGHT = 0.80, 0.90 -- andel af listens flade
|
||||||
SmartPickupFrame.EDIT_PANEL_HEADER_PX = 80
|
SmartPickupFrame.EDIT_PANEL_HEADER_PX = 80
|
||||||
|
SmartPickupFrame.EDIT_PANEL_ROW_PX = 860 -- rækkerne er ~835 px brede
|
||||||
|
|
||||||
function SmartPickupFrame:initEditPanelButtons(i18n)
|
function SmartPickupFrame:initEditPanelButtons(i18n)
|
||||||
self.panelCloseButtonInfo = {inputAction = InputAction.MENU_BACK, text = i18n:getText("spu_panel_close"), callback = function() self:onClickPanelClose() end}
|
self.panelCloseButtonInfo = {inputAction = InputAction.MENU_BACK, text = i18n:getText("spu_panel_close"), callback = function() self:onClickPanelClose() end}
|
||||||
@@ -59,7 +60,9 @@ function SmartPickupFrame:layoutEditPanel()
|
|||||||
if box == nil or box.absPosition == nil or box.absSize == nil then return end
|
if box == nil or box.absPosition == nil or box.absSize == nil then return end
|
||||||
local x, y, w, h = box.absPosition[1], box.absPosition[2], box.absSize[1], box.absSize[2]
|
local x, y, w, h = box.absPosition[1], box.absPosition[2], box.absSize[1], box.absSize[2]
|
||||||
place(self.editBackdrop, x, y, w, h)
|
place(self.editBackdrop, x, y, w, h)
|
||||||
local pw, ph = w * SmartPickupFrame.EDIT_PANEL_WIDTH, h * SmartPickupFrame.EDIT_PANEL_HEIGHT
|
-- så bredt som rækkerne (~835 px) + margen, ikke bredere end listen
|
||||||
|
local pw = math.min(w * SmartPickupFrame.EDIT_PANEL_WIDTH, SmartPickupFrame.EDIT_PANEL_ROW_PX * g_pixelSizeScaledX)
|
||||||
|
local ph = h * SmartPickupFrame.EDIT_PANEL_HEIGHT
|
||||||
local px, py = x + (w - pw) / 2, y + (h - ph) / 2
|
local px, py = x + (w - pw) / 2, y + (h - ph) / 2
|
||||||
place(self.editPanel, px, py, pw, ph)
|
place(self.editPanel, px, py, pw, ph)
|
||||||
local header = SmartPickupFrame.EDIT_PANEL_HEADER_PX * g_pixelSizeScaledY
|
local header = SmartPickupFrame.EDIT_PANEL_HEADER_PX * g_pixelSizeScaledY
|
||||||
|
|||||||
@@ -61,8 +61,9 @@
|
|||||||
<imageColor value="0 0 0 0.65"/>
|
<imageColor value="0 0 0 0.65"/>
|
||||||
<size value="100px 100px"/>
|
<size value="100px 100px"/>
|
||||||
</Profile>
|
</Profile>
|
||||||
|
<!-- farver er lineære: 0.016 ≈ menuens egen mørke baggrund (0.09 blev lysegrå, in-game 29/9) -->
|
||||||
<Profile name="spuOverlayPanel" extends="spuOverlayBackdrop">
|
<Profile name="spuOverlayPanel" extends="spuOverlayBackdrop">
|
||||||
<imageColor value="0.09 0.09 0.09 0.97"/>
|
<imageColor value="0.016 0.016 0.016 1"/>
|
||||||
</Profile>
|
</Profile>
|
||||||
<Profile name="spuPanelTitle" extends="spuCellBold">
|
<Profile name="spuPanelTitle" extends="spuCellBold">
|
||||||
<textSize value="20px"/>
|
<textSize value="20px"/>
|
||||||
|
|||||||
@@ -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.59.4.0</version>
|
<version>1.59.5.0</version>
|
||||||
<title>
|
<title>
|
||||||
<en>AD Smart Pickup</en>
|
<en>AD Smart Pickup</en>
|
||||||
</title>
|
</title>
|
||||||
|
|||||||
Reference in New Issue
Block a user