Several Custom Inventory GUI Questions

Started by Aquilo, Wed 01/02/2006 23:07:53

Previous topic - Next topic

Aquilo

1) Is there a simple way to script a left-to-right scrollable inventory instead of top-to-bottom? For only up-and-down scrolling functions are found in the script.

2) Is there some global variable to change the speed of GUI's greying out? To make it appear and disappear more slowly while popping up, there's hardly any difference between "GUIs grey out" and "GUIs turn off" concerning the speed of GUIs disappearance. Or it is affected by general speed setting of the game? (I do not want to use the GUI Transparency property if there is some other, more resource-efficient way).

3) Does AGS handle mouse double-clicks? If yes, then what are the corresponding script commands? The manual refers to single-click events only, or am I mistaken?

Ashen

1) Not AFAIK, unless you only have one row of items (in which case ScrollUp/Down looks like scrolling left/right). You can probably script it with some work, however.

2) 'GUIs grey out' / 'GUIs turn off' and the other options in that list refer to how GUIs appear when the interface is disabled (e.g. by a blocking command), not how they turn on/off. If you want the GUIs to do anything other than 'switch' on and off, GUI.Transparency is the way to go.

3) Not natively, although it's possible to add them with a little scripting. See this thread, for example - although it needs a little alteration to use new-style scripting.
I know what you're thinking ... Don't think that.

Aquilo

1) A one-row inventory is a good idea... for a character like Digger or Pacman, with only one item to carry ;D but that's another sort of game. Will have to find a way. There must be a way. It may be a worthwhile idea for a future version of AGS to add left-right inventory scrolling in the script natively...

2) Just as I thought. The major difference cleared, then.

3) A good practical solution. With some minor adjustments it should work nicely with AGS 2.71 I am using now.

Thanks a lot for help!

Ashen

QuoteA one-row inventory is a good idea... for a character like Digger or Pacman, with only one item to carry  ;D

Well, it wouldn't have to be one ITEM, just one row - you could have as many items on that row as will fit the width of the screen. There've been games (AGS and commercial) that have had one row inventories. I can't name any off hand, but I know they're out there.

One possibility might be to split the player's inventory between two (or three, or however many rows you want) dummy characters, and give each of them a one row InvWindow on the same GUI, controlled by the same scroll buttons.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk