LockCamera v2.91 - Page 2

LockCamera v2.91

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
Sabutai
Posts: 413
Joined: 18 Dec 2005, 05:55

Re: LockCamera v2.7

Post by Sabutai »

Brilliant widget. Together with Ally Cursors you can see exactly how people play.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: LockCamera v2.7

Post by manolo_ »

bug: it shows "ockCamera" instead of "LockCamera" ;)
YHCIR
Posts: 190
Joined: 12 Aug 2006, 23:06

Re: LockCamera v2.7

Post by YHCIR »

manolo_ wrote:bug: it shows "ockCamera" instead of "LockCamera" ;)
I think it has an oversized 'L' all the way down the left edge.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: LockCamera v2.7

Post by manolo_ »

YHCIR wrote:
manolo_ wrote:bug: it shows "ockCamera" instead of "LockCamera" ;)
I think it has an oversized 'L' all the way down the left edge.
i thought so too, but then i searched within the lua and he forgot the L :)
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: LockCamera v2.7

Post by Acidd_UK »

It would be super amazing if it followed unit selection - so you could see when ppl queue stuff, issue orders to tanks etc...
BaNa
Posts: 1562
Joined: 09 Sep 2007, 21:05

Re: LockCamera v2.7

Post by BaNa »

i think there was a widget for that, but in the absence of one, control a and shift does the job.
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: LockCamera v2.7

Post by Evil4Zerggin »

I might do something like that in the far future, although I think it belongs better as a separate widget or as part of AllyCursors.
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

Re: LockCamera v2.7

Post by bashar »

Need an explanation on how the gui works :mrgreen:
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: LockCamera v2.7

Post by manolo_ »

request/suggestion:

could the widget start with closed menu?
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: LockCamera v2.91

Post by jamerlan »

<LockCamera>: Sorry for the camera switch spam, but this is the only reliable way to list camera states other than hardcoding them
looks like it is possible to get rid of this code
because:

Code: Select all

function GetModeFromName(name)
  local camNames = Spring.GetCameraNames()
  return camNames[name]
end
update: looks like I am wrong and GetCameraState returns a lot of other parameters
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: LockCamera v2.91

Post by hokomoko »

I very much recommend to take a look at:
https://github.com/spring1944/spring194 ... adcast.lua
https://github.com/spring1944/spring194 ... camera.lua
https://github.com/spring1944/spring194 ... camera.lua
https://github.com/spring1944/spring194 ... etwork.lua


lockcamera split into two: a broadcasting gadget and a receiving widget with chili interface)
All camera/network code split into easily usable shared files
Compression was added reducing data size by 50% more or less.
Post Reply

Return to “Lua Scripts”