Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
The zooming command and GUI object size changing.
« previous
next »
Print
Pages: [
1
]
Author
Topic: The zooming command and GUI object size changing. (Read 967 times)
Quantum
February 05, 2009, 09:09:33 PM
I'm planning making a togglable 'scope'.
How would I:
>Set a value to something. "zewm = 1"?.
>Sen an object in the HUD to a certain size.
>Make function work so it does one action if a value equals 1 and a different action if it is 0?
Also, what is the command that makes the zoom control work?
«
Last Edit: February 05, 2009, 10:04:31 PM by Quantum
»
Ad Bot
Advertisement
Quantum
February 05, 2009, 10:04:07 PM
Anyone? Don't be shy.
Destiny/Zack0Wack0
February 06, 2009, 06:47:16 AM
2.HUDOBJECTWEITSNAMEIS.extent = x y;
3.
function toggleScope(%v)
{
if(%v)
{
//do stuff
}
else
{
//do stuff
}
}
dunno zoom commands
Space Guy
February 06, 2009, 11:21:55 AM
Destiny, setting the extent variable directly only works if you restart the GUI.
object.resize(x,y,w,h);
Quantum
February 06, 2009, 04:32:01 PM
Thanks.
Does anyone know the zoom command, though?
Chrono
February 06, 2009, 08:01:22 PM
Package/parent toggleScope(%val)
Quantum
February 06, 2009, 10:26:11 PM
function toggleScope(%v)
{
if(%v == 1)
{
object.resize(x,y,w,h);
Package/parent toggleScope(%1); <??
%v == 0;
}
else
{
object.resize(x,y,w,h);
Package/parent toggleScope(%1)<??
%v == 1;
}
}
Would work(rough idea, of course)?
Burger
February 06, 2009, 11:53:20 PM
Test it, really, people these days.
Chrono
February 07, 2009, 01:58:07 AM
I really don't want to see that again.
http://forum.blockland.us/index.php?topic=21811.0
Quantum
February 07, 2009, 01:39:31 PM
I was just showing where it would be placed, it was just an outline.
One more question:
How would I change the crosshair's position without restarting the GUI?
Quantum
February 08, 2009, 08:08:31 PM
Bump.
Space Guy
February 09, 2009, 02:27:36 PM
object.resize(x,y,w,h);
allows you to set a position and an extent for the object.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
The zooming command and GUI object size changing.