Questions for Kent
Posted: Mon Aug 16, 2004 1:14 am
Hello,
I have several questions. I hope you can help me.
Q1
With HUGO it's possible to recognize the key pressed through the system(read_key) command which returns a number associated to the key pressed. In hugolib.h the value related to some keys are given (11 for UP ARROW, 27 for ESCAPE, ...) but I found nowhere the complete list of the keys... In particular I'm looking for the values for the PAGE DOWN et PAGE UP keys.
Where can I find them?
Q2
The player can change the font used in the interface.
I'm making a graphic oriented game with a relatively complex interface and it's designed to run best with a specific font size. I wonder if there's a way to impose a font in a program?
Q3
The pictures are stored in the ressource files. Is it possible to know in the program the dimensions of a picture (in number of characters, the unit used by HUGO)? That way it would be possible to create a window to hold the picture with exact dimensions. I know HUGO resizes the pictures in the window so they are entirely displayed, but the ratio height/width can change a lot from a picture to another. Ideally the program should change the screen interface depending that ratio.
Thanks for helping
I have several questions. I hope you can help me.
Q1
With HUGO it's possible to recognize the key pressed through the system(read_key) command which returns a number associated to the key pressed. In hugolib.h the value related to some keys are given (11 for UP ARROW, 27 for ESCAPE, ...) but I found nowhere the complete list of the keys... In particular I'm looking for the values for the PAGE DOWN et PAGE UP keys.
Where can I find them?
Q2
The player can change the font used in the interface.
I'm making a graphic oriented game with a relatively complex interface and it's designed to run best with a specific font size. I wonder if there's a way to impose a font in a program?
Q3
The pictures are stored in the ressource files. Is it possible to know in the program the dimensions of a picture (in number of characters, the unit used by HUGO)? That way it would be possible to create a window to hold the picture with exact dimensions. I know HUGO resizes the pictures in the window so they are entirely displayed, but the ratio height/width can change a lot from a picture to another. Ideally the program should change the screen interface depending that ratio.
Thanks for helping