Geom("ParentWidth", "ParentHeight")

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Geom("ParentWidth", "ParentHeight")

Post by TheJamsh »

Okay, where on earth does BZ2's shell code get these values from, and where can I change it?
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: Geom("ParentWidth", "ParentHeight")

Post by Nielk1 »

From whatever holds the element. Unless that is on the parent most element, then I am at a loss and it might be hard-coded to 640 by 480 in shell, which might be your issue.
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Re: Geom("ParentWidth", "ParentHeight")

Post by TheJamsh »

I have a horrible feeling it gets its values as 640*480 until a world is loaded and then back out again... manually setting the shell size seems to be off a bit as well... at a loss at the moment as to where things are going wrong.

Anybody know what the VERY first shell file loaded by BZ2 is? I assume if i can do anything about the values, they would be in there...
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: Geom("ParentWidth", "ParentHeight")

Post by Nielk1 »

I am guessing "init" or something. It is what would have all the color groups in it.
If it turns out to be an issue of the default value being 640 and 480 when no other is found (parent most element with said setting) then I sugest opening a request that it instead return the shell's internal pre-scale resolution.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Geom("ParentWidth", "ParentHeight")

Post by General BlackDragon »

I think the first one is bzshell_init.cfg,
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Re: Geom("ParentWidth", "ParentHeight")

Post by TheJamsh »

It must be coded in then, thats a shame. It turns out that setting shellresy and shellresx don't always seem to line up with my screen very well. In fact something that should be on the left, is somewhere else. It gets very confusing.

Trouble is when i return from a game, all the shell components move again, even the stock ones this time (vehicle list is on far right of screen etc). Nightmare

EDIT: Okay, its (strangely) working now, but you have to get rid of the parentheight and parentwidth commands, and add this to the first window in each file. Not sure if this is a workaround or if its meant to work this way, but at least it does now :)

//Geometry("PARENTWIDTH", "PARENTHEIGHT");
Style("TRANSPARENT", "INERT");
Size(1440, 900);
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Geom("ParentWidth", "ParentHeight")

Post by General BlackDragon »

Yup yup yup, that works :)
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: Geom("ParentWidth", "ParentHeight")

Post by Ded10c »

What does it achieve? I'm no good with the shell.
Post Reply