Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: General BlackDragon on September 08, 2008, 10:03:17 PM

Title: Shell Listbox Questions
Post by: General BlackDragon on September 08, 2008, 10:03:17 PM
Yes, I'm asking a question about .cfgs ...somebody take a picture  :roll:

anyway, I need to know if there's a way to tie in a listbox to open another listbox depending on wich item in the list you click on. And in the 2nd list, u click on something and it brings up a XSI / DES files in respective fields.

Is there a good way to do this without creating dozens of buttons?
Title: Re: Shell Listbox Questions
Post by: Nielk1 on September 08, 2008, 10:08:01 PM
IDK. You ask me shell questions all the time, its not new.
Title: Re: Shell Listbox Questions
Post by: General BlackDragon on September 08, 2008, 10:46:12 PM
true, but most things I already know...

But here's one. How do I make a listbox fill both an XSI preview AND a description file?
Title: Re: Shell Listbox Questions
Post by: General BlackDragon on September 25, 2008, 11:01:49 PM
Okay, I'm going with a new method, and of course have a new problem.

I have the following setup: Window full of buttons > Each button opens a new window ...oh, wait...nope it doesnt work?

Yeah... I dont know why, but for some reason I am having difficulty making a button in a window open another window. The setup is supposed to be this: Window full of buttons looking like a listbox. These would be catagories. Each button in turn opens another window full of buttons. These would be items. Each button in the 2nd window of buttons opens an xsi viewer and des window.

I had a similar issue trying to make a modding tutorial ingame, can anyone help me fix this?

EDIT:

Found something. A combination of things kept interfearing. 1: the onevent was not where it needed to be, aparently it needed to be in a parrelell higherarcy to the button, and it cant be a radio button with a var marking wich item you have selected. :(

EDIT 2:

New problem, How do I make an xsiviewer section come with an xsi in it by default? Not using a var.

   CreateControl("XsiView", "VIEWER")
   {
      ColorGroup("LISTBOX");

      Geometry("LEFT", "TOP");
      Position(0, 0);
      Size(110, 115);
      BorderSize(5);
      BevelSize(3);

      SetAmbientColor(1.0, 1.0, 1.0);
      SetDiffuseColor(1.0, 1.0, 1.0);
      SetDiffuseDir(2.0, -5.0, 1.0);
      SetModelDistance(50.0);
      SetModelInclination(-30.0);
      SetModelRotation(60.0);

      ItemConfig()
      {
         Style("TRANSPARENT");
      }
      FillFromFile("abbarr00.xsi");
   }

Didn't work.

EDIT 3:

Nvm I got it.
Title: Re: Shell Listbox Questions
Post by: TheJamsh on September 26, 2008, 02:35:41 PM
abbarr00.xsi

question... what is that exactly?
Title: Re: Shell Listbox Questions
Post by: General BlackDragon on September 26, 2008, 04:54:16 PM
lol

NSDF Barracks.
Title: Re: Shell Listbox Questions
Post by: TheJamsh on September 27, 2008, 09:27:23 AM
oh its for BZC... thats okay lol.
Title: Re: Shell Listbox Questions
Post by: General BlackDragon on September 27, 2008, 03:48:20 PM
And now the easter egg is complete :)