Page 1 of 2

Switch views...

Posted: 15 Dec 2009, 00:26
by aGorm
Ok, maybe I'm going mad but I just updated to latest spring and... weridly I now cant switch views with ctrl + middle click. Or ctrl J. Has this been changed for some inexplicable reason? (Bear in mind... I havn't updated for about 6 months so it may have changed ages ago and I never noticed... wiki saus ctrl J/middle mouse is correct though, so I'm wondering if its just buggered up.)

Re: Switch views...

Posted: 15 Dec 2009, 00:35
by smoth
it has been changed to another key binding.

Re: Switch views...

Posted: 15 Dec 2009, 00:40
by Neddie
Not a good change.

Re: Switch views...

Posted: 15 Dec 2009, 00:43
by aGorm
Ahh, so, does anyone know what that key binding is?

Re: Switch views...

Posted: 15 Dec 2009, 01:12
by SinbadEV
uikeys.txt

//
// bind Ctrl+f1 viewfps
// bind Ctrl+f2 viewta
// bind Ctrl+f3 viewtw
// bind Ctrl+f4 viewrot
//

Re: Switch views...

Posted: 15 Dec 2009, 01:24
by zwzsg
The annoying thing being that middle mouse button not being bindabe, you can't edit your uikeys.txt to revert to the old way.

Re: Switch views...

Posted: 15 Dec 2009, 01:25
by Forboding Angel
neddiedrow wrote:Not a good change.
It was a good change, it just wasn't a good change from a gamedev standpoint (because we're rather set in our ways :wink: ). It annoys the living crap out of me now, but on the other hand I'm glad that the user can't be inadvertently switched to another view without explicitly intending to.

Re: Switch views...

Posted: 15 Dec 2009, 01:48
by Beherith
I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.

Re: Switch views...

Posted: 15 Dec 2009, 02:24
by Auswaschbar

Code: Select all

function widget:GetInfo()
	return {
		name      = "MiddleClickCameraSwitcher",
		desc      = "^^^^^^^^^^^^^^^^^^^^^^^^^",
		author    = "Auswaschbar",
		version   = "v1.0",
		date      = "Dec, 2009",
		license   = "GNU GPL, v3 or later",
		layer     = 9000,
		enabled   = true,
	}
end

-- FPSController          // 0
-- OverheadController     // 1
-- TWController           // 2
-- RotOverheadController  // 3
-- FreeController         // 4
-- SmoothController       // 5
-- OrbitController        // 6
-- OverviewController     // 7
	
function widget:MousePress(mx, my, button)
	local alt,ctrl,meta,shift = Spring.GetModKeyState()
	if (button == 2 and (shift or ctrl)) then
		local oldcamstate = Spring.GetCameraState()
		local newcamstate =
		{
			mode = (oldcamstate.mode + 1) % 6, -- exclude overview and orbit
			px = oldcamstate.px,
			py = oldcamstate.py,
			pz = oldcamstate.pz,
		}
		Spring.SetCameraState(newcamstate, 1)
		return true
	end
	return false
end 
That lua widget has only slightly more characters than the sum of the posts complaining about the removal.

Re: Switch views...

Posted: 15 Dec 2009, 04:19
by smoth
Beherith wrote:I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
this

Re: Switch views...

Posted: 15 Dec 2009, 04:52
by Forboding Angel
smoth wrote:
Beherith wrote:I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
this
Yeah, that's why I agree that it was a good change. It jsut drives me nuts tho when I'm testing cause I'm springloaded to the ctrl+middleclick position.

Re: Switch views...

Posted: 15 Dec 2009, 05:18
by KingRaptor
Ctrl + Backspace also cycles between the camera modes.

Re: Switch views...

Posted: 15 Dec 2009, 10:04
by aGorm
Thanks... finaly I can check out my tank from more than top down view... (Now I just need to figure out how to script, but thats a whole new thread)

aGorm

Re: Switch views...

Posted: 15 Dec 2009, 13:31
by zwzsg
Thanks for the widget!

Re: Switch views...

Posted: 15 Dec 2009, 14:32
by Pxtl
Agree on good change, and that we need bind-access tot he mouse buttons. Have we got Capture and Rez in teh default keybinds yet?

Re: Switch views...

Posted: 15 Dec 2009, 15:20
by JohannesH
Pxtl wrote:Have we got Capture and Rez in teh default keybinds yet?
Nope they dont default to anything. I use q for both.

Re: Switch views...

Posted: 15 Dec 2009, 18:25
by Satirik
Beherith wrote:I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
well every real spring players love this change, changing camera mode is fuckin useless for players

Re: Switch views...

Posted: 16 Dec 2009, 00:21
by SirMaverick
Auswaschbar wrote:That lua widget has only slightly more characters than the sum of the posts complaining about the removal.
There wouldn't be any complain if the widget would have been provided at the time the change was made. :)

Re: Switch views...

Posted: 16 Dec 2009, 10:37
by lurker
SirMaverick wrote:
Auswaschbar wrote:That lua widget has only slightly more characters than the sum of the posts complaining about the removal.
There wouldn't be any complain if the widget would have been provided at the time the change was made. :)
Do you honestly believe that?

Re: Switch views...

Posted: 16 Dec 2009, 16:46
by AF
Why would people have complained about the change if they were handed a widget that fixed everything back tot he old way on a silver platter?

Its like complaining you want compensation for your broken leg AFTER winning a major court settlement into the millions, or complaining you want cake while holding a plate full of it.....