Skip to content

Instantly share code, notes, and snippets.

@warmist
Created December 8, 2015 20:03
Show Gist options
  • Save warmist/fe674d7df5b4344b449d to your computer and use it in GitHub Desktop.
Save warmist/fe674d7df5b4344b449d to your computer and use it in GitHub Desktop.
A requested change for ragundo
index 2afca8f..fe7139d 100644
--- "a/Temp\\TortoiseGit\\gm-26AD.tmp\\gm-editor-b58ccc9-left.lua"
+++ "b/DFHack\\scripts\\gui\\gm-editor.lua"
@@ -324,6 +324,11 @@ function getStringValue(trg,field)
local text=tostring(obj[field])
pcall(function()
+ if require'utils'.is_container(obj[field]) then
+ if #obj[field]==0 then
+ text="<empty> "..text
+ end
+ end
if obj._field ~= nil then
local enum=obj:_field(field)._type
if enum._kind=="enum-type" then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment