Suggestions for the next version of AGS

Started by Pumaman, Sun 27/01/2008 00:59:41

Previous topic - Next topic

Dualnames

Quote from: subspark on Fri 29/01/2010 17:22:54
Loved your module SSH. Very resourceful!

I still strongly suggest that AGS 3.3x come with an internal solution to changing all the game's config variables via script calls.

Cheers,
Sparky.

Also the module causes some bugs. It's really good, but can end up teribly unstable at times. Perhaps it was me doing something wrong, but I wouldn't think so.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Jim Reed

A way to adjust properties for multiple GUIs/GUI objects at once. If you need to make eg. a dozen buttons/labels with the same size, you need to adjust each one by hand.

monkey0506

You could do that from the script:

Code: ags
void SetSizeForGUIs(GUI *guis[], int guiCount, int width, int height) {
  if ((guis == null) || (guiCount <= 0)) return;
  int i = 0;
  while (i < guiCount) {
    guis[i].SetSize(width, height);
    i++;
  }
}

// meanwhile...
GUI *guis[] = new GUI[5];
int i = 0;
while (i < 5) {
  guis[i] = gui[i + 10];
  i++;
}
SetSizeForGUIs(guis, 5, System.ViewportWidth, 20);


It's a bit more round-about than your suggestion, but given the current method of resizing these items it would be very wonky to try and allow resizing multiple items at once anyway...

Crimson Wizard

monkey, I believe Jim Reed means adjusting them in the GUI EDITOR.

BTW I remember suggesting adding COPY GUI OBJECT feature some time ago.

monkey0506

I know that CW, which is why I said:

Quote from: monkey_05_06 on Fri 29/01/2010 19:39:14It's a bit more round-about than your suggestion, but given the current method of resizing these items it would be very wonky to try and allow resizing multiple items at once anyway...

SMF spam blocked by CleanTalk