PlaneShift

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category
  • Assigned To
    Roland Schulz
    Boite
  • Operating System
  • Severity High
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 2
  • Private
Attached to Project: PlaneShift
Opened by Loyni - 24.03.2008
Last edited by Steven Schwartfeger - 09.08.2008

FS#1336 - Middle click (inventory "take all stack") toggles MouseLook when bound to MouseLook

I built PS rev 1265 and noticed that clicking on an item in invintory with Middle mouse (take all stack) TOGGLES MouseLook. I have MouseLook bound to Middle mouse, but still it shouldn’t behave like this.

The task depends upon
ID Project Summary Priority Severity Assigned To Progress
2044 PlaneShift  FS#2044 - Hot key for select one of stack in GUI  Medium
100%
Closed by  Steven Schwartfeger
09.08.2008 04:01
Reason for closing:  
Additional comments about closing:  

Works nicely.

Thom commented on 24.03.2008 18:43

Confirmed, it annoyed me too the other day. It shouldn't be possible to have a key assigned to two different functions.

Steven Schwartfeger commented on 24.03.2008 21:48

This is very similar, if not a duplicate of  FS#1306 .

Rizin commented on 14.06.2008 20:29

Assigning Boite per request.

Thom commented on 15.06.2008 10:37

I first said "it shouldn't be possible to have a key assigned to two different functions", but middle-click is a handy trigger for mouselook. Perhaps it could be made so that you *can* have mouselook assigned to middle-click, but that it does not trigger when you use middle-click on an item in your inventory (take whole stack). So besides just an input check, also a context check.

Qia Fask commented on 15.06.2008 20:14

I did not know about the shortcut to pick up a whole stack! I would have found this very useful on a thousand ocassions. However, I also use middle-click for toggling mouse-look, so it wouldn't work for me anyway. :p

Caarrie commented on 17.06.2008 22:55

Boite where is the patch? please upload to pastebin.ca

Steven Schwartfeger commented on 18.06.2008 02:14

Qia Fask: you may be interested to know, holding control and clicking a stack takes the whole stack, holding shift and clicking the stack takes one item.

Boite commented on 18.06.2008 17:24

Patch for  FS#1336  add a check for know if mouselook are use on the psmainwidget (let use mouseLook just when click on the psmainwidget), add new options entries for bind the mouse with drag,drag all stack& drag just one.

http://boite.pastebin.ca/1050321

Tomislav Lukman commented on 02.07.2008 19:31

Version 0.4.01 suffers this problem. I just noticed while smelting platinum.
When I pick up several units using MiddleClick the mouse pointer moves to the center of the screen and gets stuck there (MouseLook gets toggled).

My MiddleClick is bound to MouseLook (which I believe is by default).

(Hint: TAB key releases MouseLook and the mouse pointer)

Roland Schulz commented on 06.07.2008 22:43

Committed to trunk (r1872), thanks Boite

Caarrie commented on 07.07.2008 20:15

setting back in progress as if no shortcuts are set in the default xml new and old players alike that dont know that this feature has to be set will be totally lost. also there should be a way to make sure that people that already have a mouse.xml file dont have to reload their options to get this to work.

Steven Schwartfeger commented on 08.07.2008 00:36

Also… the "toggle mouselook" key didn't seem to work anymore, whether it was tab or another key… and the ctrl, shift and alt click modifiers don't seem to work on stacks anymore. It was my preferred way of taking the whole stack, and it is probably needed for mac users with one button mice.

In case you didn't know, control-leftclick took the whole stack, and shift-leftclick took one off the top. The problem with your latest patch is that you can only assign mouse buttons by themselves to these functions, and I only have a three button mouse… so if I bind leftclick to normal drag, middle click to drag all items, I have no button for drag one item, as right click is used for "examine" or "context menu", which overrides it.

weltall commented on 15.07.2008 16:44

this patch was applied on the stable branch and now I'm unable to drag anything from the inventory i had to revert this back on my client to be able to use it again correctly: could someone revert it in stable as this seems to have still some glitches?

Steven Schwartfeger commented on 16.07.2008 01:08

To get it to work, set the buttons in the mouse options window. My only problem with it as it is now, is that with a three button mouse you can't have all the functions bound, including the default right click for item description.

weltall commented on 16.07.2008 09:32

The problem is that the required gui xml (configmouse.xml) to do that is missing from the stable branch and from the data folder of the official client. So you can't change the options at all without getting the file from the trunk and putting it in the data folder manually.

Caarrie commented on 16.07.2008 11:17

this is only an issue if you build stable, this patch was done after the release so it does not affect the players with the official client.

weltall commented on 20.07.2008 16:09

It seems this patch introduces a warning from the compiler:

C++ ./out/linuxx86/debug/src/client/gui/psmainwidget.o
src/client/gui/psmainwidget.cpp: In member function ‘virtual bool psMainWidget::OnMouseDown(int, int, int, int)’:
src/client/gui/psmainwidget.cpp:358: warning: comparison between signed and unsigned integer expressions
src/client/gui/psmainwidget.cpp:358: warning: comparison between signed and unsigned integer expressions

(it's about line 58 in the patch posted above : if(mouseLookTrigger→button==button && mouseLookTrigger→mods==keyModifier))

Boite commented on 21.07.2008 18:25

yup just need a variable cast for that
if(mouseLookTrigger→button==(uint)button && mouseLookTrigger→mods==(uint)keyModifier))

http://boite.pastebin.ca/1078604

          
Thom commented on 03.08.2008 13:25

I can't use mouselook at all now, pressing tab just doesn't do anything, the mouse doesn't disappear. Mouselook can't be enabled at all. What's going on, is it this patch?

Thom commented on 03.08.2008 13:25

Raising priority, since stuff is clearly broken.

peeg commented on 07.08.2008 23:02

http://peg.psde.de/planeshift/fs1336_r3.diff

This patch should fix all remaining issues:
- broken mouse look toggle
- incomplete default configuration
- incompatibility with old configuration files

Tested by ThomPhoenix and myself.

Aresilek Besolez commented on 09.08.2008 02:25

Committed in trunk r2036, thanks.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing