[SOLVED] Option slidebars and adjustment sliders. how to?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
::Bloodfury::
Posts: 332
Joined: Mon Aug 01, 2011 7:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland

[SOLVED] Option slidebars and adjustment sliders. how to?

Post by ::Bloodfury:: »

As the title suggest.

How do you change the graphics of these objects?
I would like to have custom sliders, selectors and stuff in my mod. Not the regular Zdoom menu sliders.
As an example, mod: The Refinery has customized sliders and selcetors.
Last edited by ::Bloodfury:: on Tue May 09, 2017 4:48 am, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Option slidebars and adjustment sliders. how to?

Post by Graf Zahl »

The slider graphics are part of the console font. So there's two options: If you want to replace all sliders, you have to create a new ConFont, if you just want to use different sliders in one menu, you have to create a new menu item that uses different graphics.
User avatar
::Bloodfury::
Posts: 332
Joined: Mon Aug 01, 2011 7:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland

Re: Option slidebars and adjustment sliders. how to?

Post by ::Bloodfury:: »

Just to be clear. I must draw these graphics onto the consolefont picture instead of letters. And then convert the image to consolefont?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Option slidebars and adjustment sliders. how to?

Post by Graf Zahl »

You must replace the elements that make up the sliders, ZDoom uses the first 32 characters for special stuff.
User avatar
::Bloodfury::
Posts: 332
Joined: Mon Aug 01, 2011 7:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland

Re: Option slidebars and adjustment sliders. how to?

Post by ::Bloodfury:: »

Thanks.
User avatar
::Bloodfury::
Posts: 332
Joined: Mon Aug 01, 2011 7:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland

Re: Option slidebars and adjustment sliders. how to?

Post by ::Bloodfury:: »

But how do you define their colors? You use 255 colors in confont. So can I make every element with color. Or does them have to be greyscale. And if so. How are the colors defined
for the sliders and their bars. And the option menu selector. You know, the blinkin red triangle?
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Option slidebars and adjustment sliders. how to?

Post by Enjay »

I have made a few CONFONTs but they have always been greyscale. The colours seem to be handled automatically by the engine or perhaps the menu definitions in zscript these days.
User avatar
::Bloodfury::
Posts: 332
Joined: Mon Aug 01, 2011 7:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland

Re: Option slidebars and adjustment sliders. how to?

Post by ::Bloodfury:: »

Hmm.. Need to research this subject. For example. In the The Refinery, there is a different colored round selector. etc.
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Option slidebars and adjustment sliders. how to?

Post by AFADoomer »

Enjay wrote:I have made a few CONFONTs but they have always been greyscale. The colours seem to be handled automatically by the engine or perhaps the menu definitions in zscript these days.
The colors are handled in the ZScript definitions now (e.g., here), but are still hard-coded, unfortunately - so there's no easy way to set or replace them without duplicating the entire menu structure in a not-future-friendly manner.

I'm pretty sure that The Refinery's sliders are the same color as the default (Orange), they are just much brighter than the default slider... From what I can tell, CONFONT replacements have to be all greyscale (or are converted to all greyscale internally), then are recolored from there. I've never been able to make one work properly with color elements - the code expects a palette that is essentially a greyscale gradient.
User avatar
::Bloodfury::
Posts: 332
Joined: Mon Aug 01, 2011 7:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland

Re: Option slidebars and adjustment sliders. how to?

Post by ::Bloodfury:: »

Well then. The design of my sliders and such must be in the limits of how they look in their default color. :)
Locked

Return to “Editing (Archive)”