[Hugor font color thing] Condidential to RealNC, Empire of Greece

Hugo programming discussion. http://www.generalcoffee.com/hugo
Hugo By Example: http://hugo.gerynarsabode.org/index.php?title=Main_Page
Roody Yogurt's Hugo Blog: http://notdeadhugo.blogspot.com

Moderators: Ice Cream Jonsey, AArdvark

User avatar
Ice Cream Jonsey
Posts: 21785
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

[Hugor font color thing] Condidential to RealNC, Empire of Greece

Post by Ice Cream Jonsey » Sun Sep 08, 2019 11:53 am

So, this is not a request for action, this is just two people talking. We're just talking here!

Hugor has the ability to change the text color, the inputting-of-commands color and the background color. Which is cool, and the interpreter doing that makes sense.

However, you can still have Hugo the programming language do it as well. The game I am entering into the 2019 competition has a routine that lets the player pick the colors between the 15 colors that Hugor supports. It SEEMS that Hugor allows for a full circular palette that you can pick from.

One thing I noticed is that Hugor will override the inputting-of-commands color. So if I issue this command in the .hex file:

color BLACK, BRIGHT_WHITE, BLACK (which is supposed to be black for the foreground (or game text) color, bright white for the background and then black again for the inputting of commands color, then Hugor will override the inputting of commands color, and I think it defaults to bright white.

So that means that in the above case, the input commands color and background will both be white and you can't see what you are typing in.

There's a dozen ways this could all go and this close to the comp I wouldn't want any changes to Hugor but maybe I should just direct people to use Hugor to change the colors? I dunno.

We're just talking here!!
the dark and gritty...Ice Cream Jonsey!

User avatar
Ice Cream Jonsey
Posts: 21785
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: [Hugor font color thing] Condidential to RealNC, Empire of Greece

Post by Ice Cream Jonsey » Sun Sep 08, 2019 11:53 am

Also, a video would probably be a million times easier for me to communicate all this.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1406
Joined: Wed Mar 07, 2012 4:32 am

Re: [Hugor font color thing] Condidential to RealNC, Empire of Greece

Post by RealNC » Mon Sep 09, 2019 10:41 am

Is this happening with the latest Hugor version? (2.2) I can't reproduce the bug with:

Code: Select all

#include "hugolib.h"

routine Main
{
    color BLACK, BRIGHT_WHITE, BLACK
}
This produces the correct result for me, black input text on white input background on window background. And this:

Code: Select all

#include "hugolib.h"

routine Main
{
    color BLACK, DEF_BACKGROUND, BLACK
}
produces black input text with the input background matching whatever the window background currently is.

Post Reply