[Added] [USDF/ZSDF] More than 1 image per dialogue / offset graphic

Moderator: GZDoom Developers

[USDF/ZSDF] More than 1 image per dialogue / offset graphic

Postby Tormentor667 » Mon Oct 03, 2016 1:51 pm

As far as I can recall, I have suggested something similar already some months or years ago, but I just thought I try it again.

For Blade of Agony's dialogues, we have two problems:
  • 1st we can only display one graphic at once through the dialogue
  • 2nd we can't set the offsets for a graphic

Where the latter is only a small (but annoying) problem, the first one is a bit serious. We only have the choice to decide between a background graphic or the mugshot (in the INTERMAP for example) but we can't define a message background and a mugshot at the same time. The main problem here is that somethimes the text is very hard to read (when in the bar for example and talking to Shotglass).

Any chance of getting two additions, that make it possible to set the offset for graphics and also define more than one graphic per dialogue?

Thanks kindly,
Dan
Last edited by Tormentor667 on Sat Oct 29, 2016 9:07 am, edited 2 times in total.
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF] More than 1 image per dialogue / offset graphic

Postby Tormentor667 » Sun Oct 16, 2016 3:28 am

Sorry for pushing this, but this feature is so needed for Blade of Agony :(
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF] More than 1 image per dialogue / offset graphic

Postby Blzut3 » Sun Oct 16, 2016 1:45 pm

You can set an offset since it uses the offset of the graphic itself. You can also use TEXTURES to create compound graphics.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004
Github ID: Blzut3
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: [USDF] More than 1 image per dialogue / offset graphic

Postby Tormentor667 » Mon Oct 17, 2016 4:34 am

This is a clever idea Blzut3, thanks alot for that, I would have never thought of that myself.

Are compound graphics also possible to be animated? Are there any examples for compound graphics through TEXTURES?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF] More than 1 image per dialogue / offset graphic

Postby Gez » Mon Oct 17, 2016 4:50 am

Tormentor667 wrote:Are compound graphics also possible to be animated? Are there any examples for compound graphics through TEXTURES?

Of course they can be animated, with ANIMDEFS, same as everything else.

And you shouldn't need examples. Just use SLADE's texture editor.
Gez
 
 
 
Joined: 06 Jul 2007

Re: [USDF] More than 1 image per dialogue / offset graphic

Postby Tormentor667 » Fri Oct 28, 2016 1:29 pm

Thanks guys, I now figured out what to do but unfortunately ran into a different problem :(
viewtopic.php?f=2&t=53989
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Tormentor667 » Wed Nov 09, 2016 3:30 pm

Sorry for pushing this but unfortunately I have no idea how to solve this at all, same goes to the linked thread. Any recommendations? Any chance of getting an additional feature here?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Graf Zahl » Sun Feb 19, 2017 7:23 am

I think with today's scriptification of the conversation stuff this can be retired. You now have the ability to override the conversation menu class and in particular override the function to draw the background so feel free to do whatever you like.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Nash » Sun Feb 19, 2017 7:49 am

Thank you Graf... with every subsystem you scriptify, you are truly eliminating one more reason a modder needs to hack to achieve the customizability they require... one at a time. Thanks for doing this. :mrgreen:
User avatar
Nash
AKA Nash Muhandes! Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Tormentor667 » Sun Feb 19, 2017 10:16 am

Thanks - Oh - yes! Is there a wiki entry somewhere already? Or how do I actually do this?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Graf Zahl » Sun Feb 19, 2017 11:46 am

Have a look at conversationmenu.txt. The method you want to override is DrawBackdrop, if all you want to change is the background of the menu.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Tormentor667 » Mon Feb 20, 2017 5:16 am

Where can I find that file?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Xaser » Mon Feb 20, 2017 10:14 am

User avatar
Xaser
anarchivist
 
 
 
Joined: 20 Jul 2003

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Tormentor667 » Mon Feb 20, 2017 11:07 am

Thanks kindly, but that doesn't help me now on how to alter the things mod-wise ... :(
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [USDF/ZSDF] More than 1 image per dialogue / offset grap

Postby Major Cooke » Tue Feb 21, 2017 3:24 pm

Tormentor667 wrote:Thanks - Oh - yes! Is there a wiki entry somewhere already? Or how do I actually do this?

Do not rely on the wiki for a good long while to assist you. Because of these new terms, I am no longer going to document anything unless it stays in for at least two weeks -- if not outright wait until the release of the next GZDoom.

Let me give you the short of it: Graf is no longer going to respect that broken method of once-in-it-sticks. It will now only stick if it's with an official release. If you jump right in and at any point there happens to be a problem which may require breaking it (like the event system by ZZYZX) you can kiss your progress goodbye.

As for getting help with this, have you been learning ZScript in general? If not, that'd be the best place to start. Aside from Graf, who will most likely not do any documenting, you'll have to dig into the source code itself a bit.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Next

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest