Widget: Complete Control Camera (v0.19)

Widget: Complete Control Camera (v0.19)

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

Moderator: Moderators

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Widget: Complete Control Camera (v0.19)

Post by CarRepairer »

Complete Control Camera has five main actions...
  • Zoom..... <Mousewheel>
    ....or <PgUp/PgDn>
  • Altitude..... <Ctrl> + <Mousewheel>
    ....or <Ctrl> + <PgUp/PgDn>
  • Scroll..... <Middlebutton-drag>
    ....or <Arrows>
  • Rotate World..... <Ctrl> + <Middlebutton-drag>
    ....or <Ctrl> + <Arrows>
  • Rotate Camera..... <Alt> + <Middlebutton-drag>
    ....or <Alt> + <Arrows>
Additional actions:
  • Smoothscroll (default) or Spring style scrolling
  • Use <Shift> for faster scroll/zoom/altitude.
  • Options to scroll or rotate by moving mouse to edges of screen.
  • Reset Camera..... <Ctrl> + <Alt> + <Shift> + <Middleclick>
    or /luaui ccc reset
  • Follow the cursors of other players while you spec! Needs the Ally Cursors widget to work.
Image

You can configure CC Cam settings 3 ways:
  • Crudemenu - see the settings under Settings->View->Complete Control Camera
  • IceUI
  • Editing the widget file directly in the options table.
Installation instructions
  • Download Complete Control Camera v0.19 (there's a link at the bottom of the page). Place it in your Spring/Luaui/Widgets/ folder
  • Optional: download these two icons which indicate camera actions. Place them in Spring/Luaui/Images/ccc/
Thanks to trepan for the existing smoothscroll and zoom code, and to all those who provided feedback.
Last edited by CarRepairer on 22 Jun 2010, 19:43, edited 15 times in total.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Widget: Complete Control Camera

Post by Forboding Angel »

Shouldn't altitude be "Altitude & Attitude"?

Nice btw, don't suppose you could be arsed to make it workable with redui?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Widget: Complete Control Camera

Post by Beherith »

Is there a standalone version?
Also, why is it snowing on geyser plains? Crazy!
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Widget: Complete Control Camera

Post by MidKnight »

Beherith wrote:Is there a standalone version?
Also, why is it snowing on geyser plains? Crazy!
Merry Christmas from CA! :P
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera

Post by CarRepairer »

You can use it standalone. You'd just have to change settings by editing the file. In the options table there are "value" fields:

Code: Select all

...
	edgemove = {
		name = 'Scroll Camera At Edge',
		type = 'bool',
		value = true,
		desc = 'Scroll camera when the cursor is at the edge of the screen.'
	},
	speedFactor = {
		name = 'Smooth Scroll Speed',
		desc = 'Smooth Scroll Speed',
		type = 'number',
		min = 10,
		max = 40,
		value = 25,
	},
...
So to disable edge scrolling, change "value=true," to "value=false," . To change smoothscrollspeed change value from 25 to whatever number you want (doesn't matter if it's in the min/max range). And so on.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Widget: Complete Control Camera

Post by Regret »

The most window mode hostile camera.
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: Widget: Complete Control Camera

Post by luckywaldo7 »

Regret wrote:The most window mode hostile camera.
How so?
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Widget: Complete Control Camera

Post by Regret »

luckywaldo7 wrote: How so?
CarRepairer wrote: * Zoom..... <Mousewheel>
* Altitude..... <Ctrl> + <Mousewheel>
* Smooth Scroll..... <Middlebutton-drag>
* Rotate World..... <Ctrl> + <Middlebutton-drag>
* Rotate Camera..... <Ctrl> + <Alt> + <Middlebutton-drag>
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera

Post by CarRepairer »

Try something new. Go against every fiber of your being and be helpful by nicely explaining what you're talking about and what you recommend.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Widget: Complete Control Camera

Post by Regret »

CarRepairer wrote:Try something new. Go against every fiber of your being and be helpful by nicely explaining what you're talking about and what you recommend.
I recommend not using middle mouse button for anything at all besides scrolling.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Widget: Complete Control Camera

Post by Forboding Angel »

Regret wrote:
CarRepairer wrote:Try something new. Go against every fiber of your being and be helpful by nicely explaining what you're talking about and what you recommend.
I recommend not using middle mouse button for anything at all besides scrolling.
^^ This man speaketh wise words.
User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: Widget: Complete Control Camera

Post by Wartender »

why not? how does that interfere in windowed mode?
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Widget: Complete Control Camera

Post by JohannesH »

Not just windowed mode, it screws up anyone scrolling with middle button.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Widget: Complete Control Camera

Post by BrainDamage »

Wartender wrote:how does that interfere in windowed mode?
windowed mode users often user crosshair scroll since unless you use /grabinput (which is not exactly common knowledge ) spring is unable to detect edge scrolling, and I guess some do prefer that to "smoothscroll" behaviour ?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Widget: Complete Control Camera

Post by imbaczek »

Brain Damage wrote:spring is unable to detect edge scrolling, and I guess some do prefer that to "smoothscroll" behaviour ?
actually, spring is perfectly capable of detecting edge scrolling in windowed mode without input grabbed, which is extremely annoying ;p

smoothscroll is nice because it works so well when edge scrolling is fubar.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera

Post by CarRepairer »

Brain Damage wrote:
Wartender wrote:how does that interfere in windowed mode?
windowed mode users often user crosshair scroll since unless you use /grabinput (which is not exactly common knowledge ) spring is unable to detect edge scrolling, and I guess some do prefer that to "smoothscroll" behaviour ?
Since my widget is designed with the intent of integrating smoothscroll with rotation actions, I still don't see what's the problem.

I added edge (and keyboard) scrolling purely as a secondary optional (on by default) action only because people like it, but it is unnecessary if you get used to the main actions. To me, the only time edge scrolling really comes in handy is if I'm box-selecting some units and I want a few more just outside my vision, then it helps that I can push the screen over a bit while I am selecting.
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Widget: Complete Control Camera

Post by Satirik »

reset view ?

is there a way to get the file without copy pasting in that track crap ?
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: Widget: Complete Control Camera

Post by luckywaldo7 »

I prefer middle button, so I have all my camera actions in one spot. Reset view would be nice.
Satirik wrote:reset view ?

is there a way to get the file without copy pasting in that track crap ?
At the very bottom it has "Download in other formats:"
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera

Post by CarRepairer »

Satirik wrote:reset view ??
Someone else requested it too. I'll add it eventually.

Edit: Added.
Last edited by CarRepairer on 18 Jan 2010, 19:55, edited 1 time in total.
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Widget: Complete Control Camera

Post by Satirik »

i really don't like the way it replaces my middleclick scroll by smooth scroll, smooth scroll is another widget and should remain so
Post Reply

Return to “Lua Scripts”