Scrolling Dialog Options

Started by The Creator, Tue 29/01/2013 15:59:41

Previous topic - Next topic

The Creator

I want to have many dialogue options, so i need to be able to scroll through those options. I've searched a little bit and found than most threads recommend using abstauber's module. I checked it out, but it's way too complex for what i want to do. I just need to put some arrow buttons, and scroll through the differents text options. No icons, no extra pop-up window, no special nothing. Just being able to print and hide dialogue options at will. I tried looking for the code that actually prints the options when you call a Dialog, i only found a function (part of the custom dialog set) called "dialog_options_render".

It seems kind of complex for what i want to do. Is there a simplier function that could allow me to do what i want?

Slasher

It does seem a shame, unless i'm mistaken, that you can't have a button with the dialog options (on a custom gui) so that you could program the button to scroll options  up / down. Any button used with a dialog does not show.

I'm intrigued for an answer.

8-)



The Creator

Sorry i was on vacation.

Nobody can give me any tips? I just need to show more dialogue options, i could make the font smaller but it kind of sucks =S

monkey0506

You would have to use the custom dialog option rendering methods, at which point it may just be easier to use abstauber's module. Of course, being the prick I am, I'll note that his module is coded rather sloppily IMO.

Custom rendering isn't difficult, the manual includes some basic but perfectly functional code to get you started. As for the actual scrolling part, there's a method such as dialog_options_on_click (or some such) that is called when you click on the dialog area when there is no active option. Then you just check the mouse coordinates to see if it is over an arrow, and set the option state appropriately.

SMF spam blocked by CleanTalk