Author Topic: MODULE: CustomDialogGui 1.7 - AGS 3.4 Support  (Read 32370 times)

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
MODULE: CustomDialogGui 1.7 - AGS 3.4 Support
« on: 14 Dec 2008, 16:03 »
Abstract
Abstract: With this module you can add all sorts of dialog GUIs.
          Think of it as an easy to use interface to AGS' native DialogOptionsRendering

Dependencies 
AGS 3.1.2 SP-1 or later

Version
1.7

Downloads
The module: CustomDialogGui_17.zip

Sample game with lot's of GUIs: diaquest_17.zip (6,2 MB, AGS 3.4)
For the newest information, please go to the last page of this thread.

Screenshots
icon based:


text based:


high-res and bottom up sorting:



Revision History
1.0     initial release
1.1     customizable from roomscripts
1.2     Mousewheel support, fixed scrolling bugs, added optional space between lines,
          added optional line numbering
1.2.1  Bugs fixed: wrong text height with auto numbering, outline border in hires
1.2.2  Bug fix, translated options are now shown
1.3     Added auto-adjusting height and width
          Added GUI appearing at mouse position
          Added background scaling
1.4    Added support for icons as dialog options
         Icons can be sorted vertically or horizontally
         Added custom border decorations
         Added sorting two kinds of dialog options
         Added GUI stays centered on screen
         Bugfix: GUI borders sometimes not accurate 
1.5    Added: Anchor point for autosize
        Added: x/y-offset for scroll arrow images
        Added: Bottom-up sorting for text and vertical icons
        Bugfix: GUI borders and highlighting corrected
1.6  Fixed: Fullscreen Sideborders affecting position (Thanks to Genaral_Knox and Pumaman)
       Fixed: Wrong icon position with non-square icons in horizontal mode
       Added: scroll multiple rows per click
       Added: highlight and push images for scroll arrows (experimental)
       Added: semi-transparent backgrounds (Thanks to monkey_05_06)
1.6.1  Fixed: code cleanup, no need to manually import the CDG struct anymore
1.6.2  Added: 32-bit alpha channel support
1.6.3  Fixed: scrolling rooms with semi-transparent background

1.7    Added: AGS 3.4 support,
       Fixed: alpha-channel workaround for AGS >= 3.3 no longer needed

Enjoy :D
« Last Edit: 27 Jan 2017, 08:08 by abstauber »

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #1 on: 14 Dec 2008, 20:56 »
That sure looks cool.. nice sales pitch!!
No more military army stuff. I'm alive and back.

Shane 'ProgZmax' Stevens

  • Mittens Serf
  • GARBAAAAAGE DAAAAAAY!
    • I can help with animation
    • I can help with characters
    • Lifetime Achievement Award Winner
    • I can help with making music
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • Shane 'ProgZmax' Stevens worked on one or more games that won an AGS Award!
    •  
    • Shane 'ProgZmax' Stevens worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #2 on: 16 Dec 2008, 06:56 »
That's quite nice.  It looks like you have it allow as much vertical space as necessary for the text but the horizontal is locked to the limits of the gui?  Or is there some upper limit to the number of characters as well?

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #3 on: 16 Dec 2008, 07:29 »
I don't know if I get you right, but currently there's no horizontal scrolling as I'm using word wrap. So if you have a really long string, it might get wrapped three times, but is still shown.


Shane 'ProgZmax' Stevens

  • Mittens Serf
  • GARBAAAAAGE DAAAAAAY!
    • I can help with animation
    • I can help with characters
    • Lifetime Achievement Award Winner
    • I can help with making music
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • Shane 'ProgZmax' Stevens worked on one or more games that won an AGS Award!
    •  
    • Shane 'ProgZmax' Stevens worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #4 on: 16 Dec 2008, 09:53 »
Sounds good.

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #5 on: 16 Dec 2008, 16:02 »
Abs? Is this compatible with 640x480 reso?
No more military army stuff. I'm alive and back.

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #6 on: 16 Dec 2008, 16:30 »
I haven't used high res coordinates, so if not pixel perfect. But apart from that it works fine.
If you're using it in high res you might want to turn off the outer border line though. Edit: That should work now too.
« Last Edit: 17 Dec 2008, 10:04 by abstauber »

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #7 on: 16 Dec 2008, 16:46 »
I haven't used high res coordinates, so if not pixel perfect. But apart from that it works fine.
If you're using it in high res you might want to turn off the outer border line though.

It works apart from the arrows. The clickable area is weird and doesn't work properly.
No more military army stuff. I'm alive and back.

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #8 on: 16 Dec 2008, 16:55 »
You still have the mousewheel ;D
But thanks for the hint, i'll look into that.

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #9 on: 16 Dec 2008, 17:40 »
I 've implemented it into my game and will still use it, but I just made all the dialog non clickable.
No more military army stuff. I'm alive and back.

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #10 on: 16 Dec 2008, 18:10 »
Could it be, that you're not using the current version?
I just re-checked 640x480, it works great. The issues you're having sound like v1.1 ;)

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #11 on: 16 Dec 2008, 18:13 »
I'm using 1.1 so I just got unlucky..thanks abs.
No more military army stuff. I'm alive and back.

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #12 on: 17 Dec 2008, 10:03 »
very welcome. Thanks to you I could iron out two more bugs. So if you're using line numbering, you should upgrade again ;)

Re: MODULE: CustomDialogGui
« Reply #13 on: 24 Dec 2008, 01:14 »
Absolutely great and useful module Abstauber! ... makes custom dialog options look so easy  :D

However, I'm having trouble when translating the game.
Dialog options that have 'show' and 'say' enabled in the dialog editor only appear once in the translation file - which is the normal behaviour. So I enter the translation for that line, compile the game and this is what happens:
- The dialog box still shows the option in the original English version
- When I click on the option the character says the translated version.

I'm not sure if you can change this behaviour or whether it is a problem with an internal function of AGS.

abstauber

  • Cavefish
  • still mowing the lawn
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #14 on: 24 Dec 2008, 12:35 »
We should also thank kaputtnik for demanding that module :)
To be honest, I totally forgot about translations, but now it should work.

Pumaman

  • Creator of AGS
  • I sense danger.
    • Lifetime Achievement Award Winner
    • Pumaman worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #15 on: 24 Dec 2008, 15:35 »
Great work with this :)

I think that the translation thing is actually a bug in the AGS Dialog.GetOptionText command, which should return the translated text. I'll get that fixed for 3.1.2, but your workaround of using GetTranslation should continue to work fine :)

kaputtnik

  • AGS Baker
  • good moon rising?
    • I can help with making music
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
    • kaputtnik worked on one or more games that won an AGS Award!
    •  
    • kaputtnik worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #16 on: 31 Dec 2008, 13:09 »
We should also thank kaputtnik for demanding that module :)

It has been a pleasure. Demanding things and getting credit for is so top notch, I think I'll make this my professional goal. I will now go and become a film producer, see you soon.
I, object.

Galen

  • Ancient Greek Physician™
Re: MODULE: CustomDialogGui
« Reply #17 on: 19 Jan 2009, 16:40 »
Excellent mate, just what I wanted (since the default dialog window is a bit dull).

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #18 on: 31 Jan 2009, 19:56 »
Thing's were fine with this module, but for a reason I don't know now it's bugging my game. I'm using AGS 3.1.1 and everything was fine, but now I start a dialog I get this error.



This was tracked down by Leon, but after playing my game I got it as well.

EDIT: I want to use that module in my game..
« Last Edit: 31 Jan 2009, 20:10 by Dualnames »
No more military army stuff. I'm alive and back.

Pumaman

  • Creator of AGS
  • I sense danger.
    • Lifetime Achievement Award Winner
    • Pumaman worked on one or more games that was nominated for an AGS Award!
Re: MODULE: CustomDialogGui
« Reply #19 on: 01 Feb 2009, 00:44 »
Can you upload the crash dump file for me to check it out?