Author Topic: [Solved] Swatch Control Size Problem [Thanks Ephialtes! :D]  (Read 2866 times)

So I set the size of a Swatch Control to 1025 575 and that is the size of the blockhead's screen but it only appears as this:
« Last Edit: November 12, 2011, 09:10:30 PM by jes00 »

of the blockhead's screen

What do you mean by this?
If you mean size of the Blockland window, use getWords( getRes(), 0, 2 )
« Last Edit: November 12, 2011, 08:39:57 AM by Port »

What do you mean by this?
It is the size of the playGui.

It is the size of the playGui.

If you mean size of the Blockland window, use getWords( getRes(), 0, 2 )

If you mean size of the Blockland window, use getWords( getRes(), 0, 2 )
How?

yourSwatchCtrl.extent = getWords( getRes(), 0, 2 );

yourSwatchCtrl.extent = getWords( getRes(), 0, 2 );
So NightVision.extent = getWords( getRes(); 0, 2 ); at the end of NightVisionGui.gui?

EDIT: Nope didin't work.
« Last Edit: November 12, 2011, 08:50:58 AM by jes00 »

Two things:
1. Making the screen green does not create a night-vision effect.
2. Make sure it's not positioned in such a way it would be partially obfuscated by the edge of the screen.

Change the horizSizing and vertSizing of hte night vision swatch to width and height respectively. That'll resize the control to the width and height of it's container.

Two things:
1. Making the screen green does not create a night-vision effect.
Thats kinda the hole point of making a night vision mod.
Change the horizSizing and vertSizing of the night vision swatch to width and height respectively. That'll resize the control to the width and height of it's container.
It's still the same size ):

Thats kinda the hole point of making a night vision mod.
If you're trying to recreate the night vision from the svh client mod why don't you just use the method it uses (which actually does brighten everything)?

So NightVision.extent = getWords( getRes(); 0, 2 ); at the end of NightVisionGui.gui?

EDIT: Nope didin't work.

Make sure you correctly use people's solutions.
NightVision.extent = getWords(getRes(), 0, 2 );

It's still the same size ):

Then you're doing it wrong. Ignore the nightvision.extent bullstuff - that's a stupid hack which won't even work very well. You should learn to make guis properly. Paste the gui code.

He's probably adding it to the wrong GUI.

manually set the extent to the maximum possible resolution you can play on, like 1920x1080, and make sure it doesnt change.
then set the position to 0,0 and it will always cover the entire sreen.