Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: monkey0506 on Tue 05/09/2006 17:26:36

Title: SUGGESTION: Set pixel gap between listbox items.
Post by: monkey0506 on Tue 05/09/2006 17:26:36
Okay, here I go again. :D

I've noticed that it seems the space between listbox items is fixed at 3 pixels*. I can't seem to change it at all even with all my efforts in modifying my fonts and whatnot.

The reason I need to change this is because I need my listbox to fit inside of a certain area, however there are several extra pixels at the bottom because the items are spaced incorrectly.

Please can we get this changed? :'(

:=

[EDIT:]

In all my n00bly glory I managed to look up the related tracker entry (http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=542), (after posting... :-[), but still, I would find this useful, and it's been nearly a year since the tracker entry.

*This is based off of one test with one font. I didn't actually attempt any other fonts, although I did try adding extra blank space at the bottom to no avail. It could be the case that this amount depends somewhat on the size of the font instead of just being 3 pixels as stated.
Title: Re: SUGGESTION: Set pixel gap between listbox items.
Post by: Dave Gilbert on Wed 06/09/2006 02:36:28
I second this!  I have a listbox in my game that acts like notes on a notepad, and it was difficult to get the lines on the notepad to match up with the words.  Then I wanted to try a different font and had to refutz with the lines again.  It would be much easier to be able to set a gap between the listbox lines.
Title: Re: SUGGESTION: Set pixel gap between listbox items.
Post by: Adamski on Wed 06/09/2006 13:14:05
I would also like to add my support to this request, as it would make my life much happier too!
Title: Re: SUGGESTION: Set pixel gap between listbox items.
Post by: abstauber on Mon 22/03/2010 09:10:54
Sorry to bump this. Has there been any progress on this?

I'm currently working on guis in the scumm template and try to detect a the height of a listbox item.

Right now I'm using GetTextHeight and manually add 2px. Is this still a fixed value?
Title: Re: SUGGESTION: Set pixel gap between listbox items.
Post by: Pumaman on Mon 22/03/2010 22:57:06
Correct, it is currently still hardcoded to GetTextHeight + 2px (or 4px in hi-res games).
Title: Re: SUGGESTION: Set pixel gap between listbox items.
Post by: abstauber on Thu 25/03/2010 11:27:18
Alright, thanks for the info.

So I'm now adding 2px if the resolution is below 640x480 and 4px if it's equal and above. Looking good so far :)
Title: Re: SUGGESTION: Set pixel gap between listbox items.
Post by: Shane 'ProgZmax' Stevens on Fri 26/03/2010 08:10:00
It would be nice if a sample of text in the chosen font was drawn inside the Listbox (ITEM 1, ITEM 2) in the editor for each entry to SHOW the spacing and alignment and then allow you to tweak it from the properties.  I'm sure this would save massive amounts of time and effort.