HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some improvements to the Dialog engine

11-07-2002, 02:35 AM#1
Targash
Atleast I think so
Hope you don't mind superIKI
Ive made some improvements to the dialog engine by superIKI at the cost of global variables. It know supports 12 buttons and much easier initiation for MakeDialog:D

function MakeDialog takes integer pid, integer diaNameIndex, integer ButtonNameStart ,integer ButtonNameEnd returns nothing

ButtonNameEnd: which index to get the dialog name from
ButtonNameStart: where to start reading for ButtonNames
End:Where to stop reading for ButtonNames

i think you guys get the idea.
Im using 3 globals for this construction but it can easily be changed to use just 2 or even one. But i like it with three.
One globalarray for DialogNames
One for ButtonNames
And one for Triggers
The button and trigger arrays r the ones easiest to combine.

There is no support for Hotkey in this engine cos i took it away
cant say why don't remember.
But it can easily be implemented again.
I want to end with :D to superIKI for the great engine
Post Script I've attached the map containing the dialogs stuff