Tiny little suggestion - bulletpoints in listboxes

Started by Rui 'Trovatore' Pires, Sat 21/05/2005 06:42:22

Previous topic - Next topic

Rui 'Trovatore' Pires

I mean, it would be pretty nice also to have bulletpoints in listboxes. AGS doesn't automatically do it, and frankly I can't think of any workarounds to it. Which is a shame, because right around now a workaround'd be pretty much what I need. If anyone has any ideas, please share - but the suggestion remains-
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

monkey0506

You could possibly do some sort of graphical overlay (possibly a GUI with a greater Z, uh..., sheeze I'm tired, a z-thingy...).

Rui 'Trovatore' Pires

Hmmm, that is certainly an interesting idea. I can make one big GUI that has a lot of bulletpoints vertically stashed, and resive that GUI as needed. Thanks!
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Ashen

Another suggestion:
Depending on the font you use, one of the 'hidden' characters (ascii 1 - 30) might do as a bullet - or if you make your own font, you could sacrifice one of the more useless standard characters - and you can write a simple function to add it:

Code: ags

function ListBoxBulletAdd (int gui, int object, string text) {
  string temp;
  StrFormat (temp, "* %s", text); // '*' is just a placeholder
  StrSetCharAt (temp, 0, 7); // change '*' to your chosen bullet
  ListBoxAdd (gui, object, temp);
}
I know what you're thinking ... Don't think that.

Rui 'Trovatore' Pires

That had occurred to me, but in some cases - like in this particular one - the graphic has at least three colours, which can't be done in regular fonts.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

monkey0506

Quote from: Rui "Brisby" Pires on Sat 21/05/2005 07:33:04
Hmmm, that is certainly an interesting idea. I can make one big GUI that has a lot of bulletpoints vertically stashed, and resive that GUI as needed. Thanks!

You are very much welcome.  Ashen's idea would probably work better...except you said you needed multiple colors.  Good luck in any case.

SMF spam blocked by CleanTalk