[SOLVED] Option slidebars and adjustment sliders. how to?
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.
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.
- ::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?
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.
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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Option slidebars and adjustment sliders. how to?
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.
- ::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?
Just to be clear. I must draw these graphics onto the consolefont picture instead of letters. And then convert the image to consolefont?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Option slidebars and adjustment sliders. how to?
You must replace the elements that make up the sliders, ZDoom uses the first 32 characters for special stuff.
- ::Bloodfury::
- Posts: 332
- Joined: Mon Aug 01, 2011 7:39 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Finland
- ::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?
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?
for the sliders and their bars. And the option menu selector. You know, the blinkin red triangle?
Re: Option slidebars and adjustment sliders. how to?
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.
- ::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?
Hmm.. Need to research this subject. For example. In the The Refinery, there is a different colored round selector. etc.
Re: Option slidebars and adjustment sliders. how to?
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.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.
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.
- ::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?
Well then. The design of my sliders and such must be in the limits of how they look in their default color. 
