Page 1 of 2
Easy Facing
Posted: 09 Aug 2009, 22:47
by very_bad_soldier
Lets you rotate buildings with mouse and shows current facing by a big green arrow.
- Hold left mouse button and move mouse in the direction you want to face the building
- If you are placing a factory, it shows a green arrow representing the buildings facing
- To rotate buildings without actually placing them (for queuing or building rows with Shift for example) press META-key (Space)
Updates in 1.3:
-you can now rotate building by pressing META (Space) before placing/clicking
-bugfix: wrong arrow size
-bugfix: wrong arrow position
Updates in 1.2:
-bugfix: shifting arrow bug when building rows
Updates in 1.1 (by Pako):
-you can move the mouse in the direction you want to face the building
-you can use it even when building rows with shift (press META then)
-the arrow gets scaled to better fit the current building
-set drawForAll to "true" if you want the green arrow for all buildings (not just factories)
Thanks to the #lua-guys as always
Download via SpringDownloader or at http://www.springinfo.info/index.php?page_id=690#138
Re: Easy Facing
Posted: 09 Aug 2009, 23:32
by Argh
Yay! I'll take a look at this.
Re: Easy Facing
Posted: 09 Aug 2009, 23:41
by SkyStar
Nice, this makes me wonder where you guys get your ideas :)
Re: Easy Facing
Posted: 09 Aug 2009, 23:57
by hoijui
nice one!

Re: Easy Facing
Posted: 10 Aug 2009, 00:36
by REVENGE
Did I mention that you're one of my favorite widget writers?

Re: Easy Facing
Posted: 10 Aug 2009, 08:01
by manolo_
nice
Re: Easy Facing
Posted: 10 Aug 2009, 09:03
by Pendrokar
SkyStar wrote:Nice, this makes me wonder where you guys get your ideas :)
Probably Emperor:Battle For Dune or Black & White?
Re: Easy Facing
Posted: 10 Aug 2009, 09:34
by SinbadEV
Black & White's "Spin the building until you click" thing was weird and kinda cool...
All in all, black and white was an awesome game if you just took out the "morality" thing and the Avatar/Pet
Oh, man, I wonder how close we could get to duplicating the other awesome parts without getting sued?
Re: Easy Facing
Posted: 10 Aug 2009, 09:35
by Niobium
If you changed it to face to where your mouse is relative to the building, that would be perfect, and faster to get to the direction you want (Only 1 move)
Re: Easy Facing
Posted: 10 Aug 2009, 10:52
by Pako
This widget is most needed when making a build queue because the rotate key is too far from the left shift, but that wasnt working so I improved the widget.
Re: Easy Facing
Posted: 10 Aug 2009, 10:56
by Jazcash
YES! I've been waiting for exactly this for ages having written a few topics requesting it over the years :D
MANY THANKINGLINESS TO YOU AND YOUR FAMILY VBS <3
Re: Easy Facing
Posted: 10 Aug 2009, 11:17
by Pendrokar
JAZCASH wrote:YES! I've been waiting for exactly this for ages having written a few topics requesting it over the years :D
Search->name:"facing"->author:JAZCASH->LUA, Feature forums
No really suitable matches were found.
[edit]
If you changed it to face to where your mouse is relative to the building, that would be perfect, and faster to get to the direction you want (Only 1 move)
Ah so it's not like Emperor: Battle For Dune

Re: Easy Facing
Posted: 10 Aug 2009, 13:19
by Jazcash
Pendrokar wrote:JAZCASH wrote:YES! I've been waiting for exactly this for ages having written a few topics requesting it over the years :D
Search->name:"facing"->author:JAZCASH->LUA, Feature forums
No really suitable matches were found.
http://springrts.com/phpbb/viewtopic.php?f=21&t=18743
Do not question my supremacy.
Re: Easy Facing
Posted: 10 Aug 2009, 18:08
by manolo_
pako whats the difference between urs and vbss widget?
Re: Easy Facing
Posted: 10 Aug 2009, 19:00
by very_bad_soldier
Thanks for all the nice comments
@Pako: I like nearly all your chances. I hope you don't mind if I put them in the "official" version too (I just put drawForAll to "false" as default). Thanks!
@Niobium: Yes, thats better. Pako already changed it.
Re: Easy Facing
Posted: 11 Aug 2009, 08:14
by Pendrokar
JAZCASH wrote:Pendrokar wrote:JAZCASH wrote:written a few topics requesting it over the years :D
Search->name:"facing"->author:JAZCASH->LUA, Feature forums
No really suitable matches were found.
http://springrts.com/phpbb/viewtopic.php?f=21&t=18743
Do not question my supremacy.
I forgot how a few looks like...

Re: Easy Facing
Posted: 11 Aug 2009, 11:59
by Jazcash
Pendrokar wrote:
I forgot how a few looks like...

I COULDN'T BE BOTHERED TO GO DIGGING OKAY D:
Re: Easy Facing
Posted: 12 Aug 2009, 17:17
by smoth
may I have permission to include this in gundam?
Re: Easy Facing
Posted: 12 Aug 2009, 17:23
by Regret
smoth wrote:may I have permission to include this in gundam?
Re: Easy Facing
Posted: 12 Aug 2009, 17:30
by smoth
Doesn't mean fuck all, just that if I modify it or use it with another widget I have to use a gpl compatible license. That means my PD lua scripts are fien

.