Is there a reason you are using a separate window to draw the xparams? Modifying the original window to just extend to the bottom as pictured in your proof of concept and drawing everything there seems like the cleaner choice (both code wise and visual wise).
Script 'script_no' line (line_no) NoMethodErrorundefined method "xparam" for nil (NilClass)This is an important distinction because the problem is not with the method but with the receiver being nil when it was not expected to be nil. Which means the method is either being run at a time you are not expecting it to run, or the variable is not being set correctly when you think it is.Direct edits are not advisable. If you simply copy the entire script you are editing to a new page lower on the list, any methods you happen to define there will overwrite the ones defined earlier, and if you delete or comment out methods from the copied script, the original versions will be used. This makes it a bit easier to debug and revert changes.
That is not a complete error message. You should get in the habit of posting complete error messagesIt probably said
Script 'script_no' line (line_no) NoMethodErrorundefined method "xparam" for nil (NilClass)This is an important distinction because the problem is not with the method but with the receiver being nil when it was not expected to be nil. Which means the method is either being run at a time you are not expecting it to run, or the variable is not being set correctly when you think it is.Direct edits are not advisable. If you simply copy the entire script you are editing to a new page lower on the list, any methods you happen to define there will overwrite the ones defined earlier, and if you delete or comment out methods from the copied script, the original versions will be used. This makes it a bit easier to debug and revert changes.