Widget: Complete Control Camera (v0.19) - Page 2

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

Re: Widget: Complete Control Camera

Post by CarRepairer »

Thanks for trying it out. But the smoothscroll is one of the main components of it. Why should it belong in a separate widget? Scrolling is a camera action just like rotating and zooming. As seen in this thread, various camera modes/widgets don't play well together so I wanted one that has everything and is consistent by using the middle button and scroll wheel for all the camera's actions.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Widget: Complete Control Camera

Post by manolo_ »

hi,

uploaded to widget-db, but there were 3 things i didnt liked:
-i want a reset button (/luaui reload works, but it isnt optimal ;) )
-i move the camera a lot with middle mouse button, but i dont like that colored line (i know there is an other widget, that does do the same)
-why couldnt i configure the widget ingame, instead of change lines in the lua
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Widget: Complete Control Camera

Post by Satirik »

yeah and you can make many camera control widget ... making an all in one widget and forcing people to use smooth scroll is stupid, i just won't use it
Last edited by Satirik on 27 Dec 2009, 21:32, edited 1 time in total.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Widget: Complete Control Camera

Post by Tribulex »

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

Re: Widget: Complete Control Camera

Post by CarRepairer »

d_b wrote:how2increese attitoodx?
ctrl+alt+middlebutton-drag to rotate the camera.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Widget: Complete Control Camera

Post by Tribulex »

CarRepairer wrote:
d_b wrote:how2increese attitoodx?
ctrl+alt+middlebutton-drag to rotate the camera.
ur t3h best
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Widget: Complete Control Camera

Post by manolo_ »

what lines do i have to delete to free ur widget from smooth controll :mrgreen:
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera

Post by CarRepairer »

manolo_ wrote:what lines do i have to delete to free ur widget from smooth controll :mrgreen:
Because of the nature of the widget, the TA-cam middleclick scroll will not work and I assume that's what you want. I'd have to re-implement it myself. I might do so eventually since so many people don't like smoothscroll. :(

Edit: Done, updated first post to v0.07. You can now scroll the old way if you so choose. If you don't have Crudemenu or IceUI, find this code:

Code: Select all

	oldscroll = {
		name = 'Spring Style Scrolling',
		type = 'bool',
		value = false,
change the value = false line to:

Code: Select all

value = true,
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Widget: Complete Control Camera (v0.08)

Post by Tribulex »

well i find the smooth scroll terirble because it messes up my fps camera mode.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Widget: Complete Control Camera (v0.08)

Post by Licho »

Smooth scroll is awesome, only problem is that terraform often breaks it.
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Widget: Complete Control Camera (v0.09)

Post by JohannesH »

Normal middle button scrolling feels much more accurate than smooth scroll.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Widget: Complete Control Camera (v0.09)

Post by Tribulex »

i have a feeling that ca players dont really go for the precision sort of thing. They have shiny unat but rubber ball mouse...
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera (v0.08)

Post by CarRepairer »

Licho wrote:Smooth scroll is awesome, only problem is that terraform often breaks it.
How so?
JohannesH wrote:Normal middle button scrolling feels much more accurate than smooth scroll.
Once you get used to smoothscroll it's just as accurate. And the benefit is you can scroll to anywhere on the map without having to move your mouse back and forth as with spring scroll.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Widget: Complete Control Camera (v0.09)

Post by Tribulex »

yeah but with a super sensitive mouse i just move mouse 1 inch and it travels all the way across trenches 64 at full zoom in
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Widget: Complete Control Camera (v0.08)

Post by JohannesH »

CarRepairer wrote:
JohannesH wrote:Normal middle button scrolling feels much more accurate than smooth scroll.
Once you get used to smoothscroll it's just as accurate.
I dont believe it that easily. Normally you just press mid button, thrust quickly into the direction you want, thats it. How much you move your mouse is always in correlation with how much the screen scrolls.
With smooth theres 2 variables, how long you let it scroll and how fast you have chosen it to scroll, I'd think that it makes aiming slower. Also you have to return mouse to center after smooth scrolling.
And the benefit is you can scroll to anywhere on the map without having to move your mouse back and forth as with spring scroll.
I see no benefit there.

Maybe smooth scroll would be a bit more usable if it was few times more sensitive but dunno.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera (v0.09)

Post by CarRepairer »

d_b wrote:yeah but with a super sensitive mouse i just move mouse 1 inch and it travels all the way across trenches 64 at full zoom in
JohannesH wrote:Maybe smooth scroll would be a bit more usable if it was few times more sensitive but dunno.
d_b wants less sensitivity and JohannesH wants more. What to do?
155_ccc.jpg
155_ccc.jpg (21.66 KiB) Viewed 6202 times
OR
speedFactor = {
name = 'Smooth Scroll Speed',
desc = 'Smooth Scroll Speed',
type = 'number',
min = 10,
max = 40,
value = 25,
},
(change the "value")

If you're still not happy, disable smoothscroll and use the old way.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Widget: Complete Control Camera (v0.09)

Post by manolo_ »

thx for adding the invert-zooming version to 0.1, but the settings arent stored somewhere. e.g. luaui reload and my settings for that widget are gone (also happend when a new game started)
User avatar
srapop
Posts: 94
Joined: 02 Oct 2009, 16:55

Re: Widget: Complete Control Camera (v0.09)

Post by srapop »

is there an easy way to alter the .lua to achieve a STEPPED rotation of the camera?
e.g. it would rotate 10┬░ and so on.
useful if you want to come back to your old settings,also feels a lot better for me.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Widget: Complete Control Camera (v0.09)

Post by CarRepairer »

manolo_ wrote:thx for adding the invert-zooming version to 0.1, but the settings arent stored somewhere. e.g. luaui reload and my settings for that widget are gone (also happend when a new game started)
I don't understand. Crudemenu and IceUI will save the settings used by this widget. Otherwise you must have edited the file itself. Reloading a game shouldn't matter. What setting in particular?
srapop wrote:is there an easy way to alter the .lua to achieve a STEPPED rotation of the camera?
e.g. it would rotate 10┬░ and so on.
useful if you want to come back to your old settings,also feels a lot better for me.
I want to eventually add some hotkeys for rotation (and zoom and altitude) but it would take me a bit of time. Once I do, you'll have the stepped rotation you want.

Edit: Done. You can use the keyboard to replicate all mouse actions. Arrows = middle button drag, Pgup/Pgdn = wheel. You can use these keys with ctrl/alt/shift.
Last edited by CarRepairer on 14 Jul 2010, 18:08, edited 1 time in total.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Widget: Complete Control Camera (v0.09)

Post by manolo_ »

CarRepairer wrote:
manolo_ wrote:thx for adding the invert-zooming version to 0.1, but the settings arent stored somewhere. e.g. luaui reload and my settings for that widget are gone (also happend when a new game started)
I don't understand. Crudemenu and IceUI will save the settings used by this widget. Otherwise you must have edited the file itself. Reloading a game shouldn't matter. What setting in particular?
i use it with iceui, but it doesnt save any setting (scroolspeed, inverted zooming,...)
Post Reply

Return to “Lua Scripts”