where does the control's update(bReadOnly, bForceHide) end up?
I was clicking through the refdoc page trying to find where this call ends up. I looked up self in Lua docs but it was describing the syntactic sugar of implied arguments and some other uses - none of these seem to apply here.
So I suspect it is simply some global reference to the context, a this of sorts. Going by that, it is calling update() on the string_columnh which goes to basic_string etc.
But where do I find it? My trail ended at "stringcontrol" and the wiki does not refer to update on it or it's "parents", neither could I find it in the CoreRPG code.
I am not sure how to trace this... in C++/Java I'd run a blasted debugger ;)
I was just trying to verify what "self" means here (think I did - refers to the enclosing windowless and the lookup is to get at one of its controls - but now that think know that, can't find what update() does or even a comment on it.)
From npc_main.lua in 2E but is basically the same in 5E.
Code:
function updateControl(sControl, bReadOnly, bForceHide)
if not self[sControl] then
return false;
end
return self[sControl].update(bReadOnly, bForceHide);
end