Code: Select all
row[2]:createText(stationname .. "\n" .. secondline, { font = font, mouseOverText = mouseover })
And check results...
Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Code: Select all
row[2]:createText(stationname .. "\n" .. secondline, { font = font, mouseOverText = mouseover })




Code: Select all
menu.createPropertyRow = L.createPropertyRow
Code: Select all
-- ffi setup
local ffi = require("ffi")
local C = ffi.C
local L = {
egoCreatePropertyOwnedRow = nil,
}
local Lib = require("extensions.sn_mod_support_apis.ui.Library")
local menu = nil
local function init()
menu = Lib.Get_Egosoft_Menu("MapMenu")
if not menu then
DebugError("Thin columns - Could not find MapMenu, aborting UI modifications.")
return
end
-- Functions that creates the Property Owned table row
L.egoCreatePropertyOwnedRow = menu.createPropertyRow
menu.createPropertyOwned = L.createPropertyRow
DebugError("Thin columns - MapMenu modifications applied.")
end
--
-- place for code from map_menu.lua - begin
--
local config = {
...
}
function L.createPropertyRow(instance, ftable, component, iteration, commanderlocation, showmodules, hidesubordinates, numdisplayed, sorter)
...
end
--
-- place for code from map_menu.lua - end
--
init()


Code: Select all
menu.createPropertyOwned = L.createPropertyRow
Code: Select all
menu.createPropertyRow = L.createPropertyRow
Code: Select all
-- ffi setup
local ffi = require("ffi")
local C = ffi.C
local L = {
egoCreatePropertyRow = nil,
}
local Lib = require("extensions.sn_mod_support_apis.ui.Library")
local menu = nil
local function init()
menu = Lib.Get_Egosoft_Menu("MapMenu")
if not menu then
DebugError("Thin columns - Could not find MapMenu, aborting UI modifications.")
return
end
-- Functions that creates the Property Owned table row
L.egoCreatePropertyRow = menu.createPropertyRow
menu.createPropertyRow = L.createPropertyRow
DebugError("Thin columns - MapMenu modifications applied.")
end
--
-- place for code from map_menu.lua - begin
--
local config = {
...
}
function L.createPropertyRow(instance, ftable, component, iteration, commanderlocation, showmodules, hidesubordinates, numdisplayed, sorter)
...
end
--
-- place for code from map_menu.lua - end
--
init()


Good to know!RondoX4 wrote: ↑Sun, 14. Dec 25, 01:49 Tested your change out.
Used an older save file and functioning OK
Expand, Rightclick and sort functioning OK
Any other testing needed. Congratulations on you efforts.
only mention in the debug log was:
[FileIO ] 19.18 File I/O: Failed to verify the file signature for file '.\extensions\thin_columns\ui.xml' (error: 14)
Code: Select all
[FileIO ] 19.18 File I/O: Failed to verify the file signature for file '.\extensions\thin_columns\ui.xml' (error: 14)














