From 0f8d956a3032302a1286c305ecdbf304e9ef067e Mon Sep 17 00:00:00 2001 From: dem0nd Date: Sat, 25 Apr 2026 21:58:15 +0300 Subject: [PATCH 1/4] fix: missing this --- source/actionscript/Common/skyui/components/list/ListLayout.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/actionscript/Common/skyui/components/list/ListLayout.as b/source/actionscript/Common/skyui/components/list/ListLayout.as index 18a87015..a1db7bb6 100644 --- a/source/actionscript/Common/skyui/components/list/ListLayout.as +++ b/source/actionscript/Common/skyui/components/list/ListLayout.as @@ -464,7 +464,7 @@ class skyui.components.list.ListLayout var xPos = 0; c = 0; for (var i = 0; i < this._columnList.length; i++) { - var col = _columnList[i]; + var col = this._columnList[i]; // Skip if (col.hidden == true) continue; From bc0880a79f97ac6e7961285e7daddadeaa5f5c5d Mon Sep 17 00:00:00 2001 From: dem0nd Date: Sat, 25 Apr 2026 22:00:16 +0300 Subject: [PATCH 2/4] feat: add spacing between columns in the inventory list --- data/interface/skyui/config.txt | 1 + .../skyui/components/list/ListLayout.as | 32 ++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/data/interface/skyui/config.txt b/data/interface/skyui/config.txt index 0e81f432..fb623e67 100644 --- a/data/interface/skyui/config.txt +++ b/data/interface/skyui/config.txt @@ -56,6 +56,7 @@ vars.a_textBorder.value = <0, 0, 1.1, 0> ; left right top bottom vars.n_iconSize.value = 18 defaults.entryWidth = 530 +defaults.columnMargin = 0 ; Global indentation between columns in the inventory list ; Default text format defaults ------------------------------------------------------- defaults.entry.textFormat.font = '$EverywhereMediumFont' diff --git a/source/actionscript/Common/skyui/components/list/ListLayout.as b/source/actionscript/Common/skyui/components/list/ListLayout.as index a1db7bb6..75ad8252 100644 --- a/source/actionscript/Common/skyui/components/list/ListLayout.as +++ b/source/actionscript/Common/skyui/components/list/ListLayout.as @@ -133,6 +133,18 @@ class skyui.components.list.ListLayout return this._sortAttributes; } + private var _columnMargin: Number; + + public function get columnMargin() + { + return this._columnMargin; + } + + public function set columnMargin(a_margin: Number) + { + this._columnMargin = a_margin; + } + /* INITIALIZATION */ @@ -157,6 +169,9 @@ class skyui.components.list.ListLayout if (this._entryWidth == undefined) this._entryWidth = this._defaultsData.entryWidth; + + if (this._columnMargin == undefined) + this._columnMargin = this._defaultsData.columnMargin; this.updateViewList(); this.updateColumnList(); @@ -460,6 +475,8 @@ class skyui.components.list.ListLayout } } + var visibleColumnCount = this._columnLayoutData.length; + // Set x positions based on calculated widths, and set label data var xPos = 0; c = 0; @@ -469,22 +486,29 @@ class skyui.components.list.ListLayout if (col.hidden == true) continue; + var currentVisibleIdx = c; var columnLayoutData = this._columnLayoutData[c++]; if (col.indent != undefined) xPos += col.indent; - columnLayoutData.labelX = xPos; + var offset = 0; + if (columnLayoutData.type == skyui.components.list.ListLayout.COL_TYPE_TEXT) { + var multiplier = (visibleColumnCount - 1) - currentVisibleIdx; + offset = this.columnMargin * multiplier; + } + + columnLayoutData.labelX = xPos - offset; if (col.border != undefined) { columnLayoutData.labelWidth = columnLayoutData.width + col.border[skyui.components.list.ListLayout.LEFT] + col.border[skyui.components.list.ListLayout.RIGHT]; - columnLayoutData.x = xPos; + columnLayoutData.x = xPos - offset; xPos += col.border[skyui.components.list.ListLayout.LEFT]; - columnLayoutData.x = xPos; + columnLayoutData.x = xPos - offset; xPos += col.border[skyui.components.list.ListLayout.RIGHT] + columnLayoutData.width; } else { columnLayoutData.labelWidth = columnLayoutData.width; - columnLayoutData.x = xPos; + columnLayoutData.x = xPos - offset; xPos += columnLayoutData.width; } } From 301095047f08f58b69e587fa44f57cdc6c0668be Mon Sep 17 00:00:00 2001 From: dem0nd Date: Sat, 25 Apr 2026 22:06:48 +0300 Subject: [PATCH 3/4] chore: import ListLayout.as --- source/swfsources.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/swfsources.cmake b/source/swfsources.cmake index 699c9fb0..7be3529d 100644 --- a/source/swfsources.cmake +++ b/source/swfsources.cmake @@ -122,6 +122,7 @@ Add_SWF(craftingmenu Common/skyui/filter/NameFilter.as Common/skyui/filter/SortFilter.as Common/skyui/components/list/BasicListEntry.as + Common/skyui/components/list/ListLayout.as Common/skyui/components/list/TabularListEntry.as CraftingMenu/CraftingDataSetter.as CraftingMenu/CraftingIconSetter.as @@ -481,6 +482,7 @@ Add_SWF(skyui_inventorylists Common/skyui/filter/NameFilter.as Common/skyui/filter/SortFilter.as Common/skyui/components/list/BasicListEntry.as + Common/skyui/components/list/ListLayout.as Common/skyui/components/list/TabularListEntry.as Common/skyui/components/list/ScrollingList.as ItemMenus/CategoryList.as From 9459d5e0cf4c7c17177895481d79eec32b7a796e Mon Sep 17 00:00:00 2001 From: dem0nd Date: Sat, 25 Apr 2026 22:08:48 +0300 Subject: [PATCH 4/4] docs: change description defaults.columnMargin --- data/interface/skyui/config.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/interface/skyui/config.txt b/data/interface/skyui/config.txt index fb623e67..7d66f59e 100644 --- a/data/interface/skyui/config.txt +++ b/data/interface/skyui/config.txt @@ -56,7 +56,7 @@ vars.a_textBorder.value = <0, 0, 1.1, 0> ; left right top bottom vars.n_iconSize.value = 18 defaults.entryWidth = 530 -defaults.columnMargin = 0 ; Global indentation between columns in the inventory list +defaults.columnMargin = 0 ; global spacing between columns of the right block ; Default text format defaults ------------------------------------------------------- defaults.entry.textFormat.font = '$EverywhereMediumFont'