Wow, I'd totally forgotten I'd asked about this before...!
6 years ago!
I understand these hooks slightly better now. It was clever of you to allow the text to be added to, rather than obliterated by a custom function
But back to the issue of adding a button to the inventory. Lets check my understanding: If I want a new button in my inventory that, for example, pops up a full screen renderer, then I think I need these various moving parts:
1) A new user defined system message, eg,
SYS_MYSCREEN = 32
2) Within the new inventory hook, add a message zone for this message (should the third number be 0?)
Code: Select all
function h_custom_inventory(bmp, who, name_draw_type, final)
if (final == true) then
dsb_msgzone(bmp, SYSTEM, 0, x, y, w, h, SYS_MYSCREEN)
end
return false
end
3) A new system function for
SYS_MYSCREEN to do the full screen renderer.
^^ This is the bit I've no idea about ^^^
In that old thread you said "Then, write
sys_system_message, which by default does nothing, to handle your message." I don't follow this bit, please could you elaborate in the context of my example? How should this be named, and what parameters will it accept?
I think I'm more or less getting there, but need a bit more help. Thank you