enum -> txtnm

This commit is contained in:
p.kosyh 2010-01-17 08:27:15 +00:00
parent 37a8f6f822
commit 8e823636ee

View file

@ -145,7 +145,7 @@ function txtu(v)
return iface:under(v) return iface:under(v)
end end
function enum(n, v) function txtnm(n, v)
if type(v) ~= 'string' or not tonumber(n) then return nil; end if type(v) ~= 'string' or not tonumber(n) then return nil; end
return iface:enum(n, v); return iface:enum(n, v);
end end
@ -748,9 +748,9 @@ function dialog_look(self)
ph = ref(ph); ph = ref(ph);
if isPhrase(ph) and not isDisabled(ph) then if isPhrase(ph) and not isDisabled(ph) then
if game.hinting then if game.hinting then
v = par('^', v, enum(n, xref(call(ph,'dsc'),ph))); v = par('^', v, txtnm(n, xref(call(ph,'dsc'),ph)));
else else
v = par('^', v, enum(n, stead.string.gsub(call(ph,'dsc'),'[{}]',''))); v = par('^', v, txtnm(n, stead.string.gsub(call(ph,'dsc'),'[{}]','')));
end end
n = n + 1 n = n + 1
end end