Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Structure height is not taken into account for mouse clicks #4273

Open
wzdev-ci opened this issue Jan 6, 2015 · 17 comments
Open

Structure height is not taken into account for mouse clicks #4273

wzdev-ci opened this issue Jan 6, 2015 · 17 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Jan 6, 2015

resolution_ type_bug | by beauxq


The position required to put the mouse cursor for actions is not where most players would expect it to be.
If you put the mouse cursor over the image of an object that can be attacked, you don't get the attack mouse cursor.
This problem is not as bad at higher camera angles, but is really bad at lower camera angles.

(The normal PrtSc screenshot doesn't show the mouse cursor, so I pointed a camera at the computer screen.)


Issue migrated from trac:4273 at 2022-04-16 11:48:59 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 6, 2015

beauxq uploaded file IMG_20150106_080949.jpg (2456.1 KiB)

cursor is over the object that can be attacked
IMG_20150106_080949.jpg

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 6, 2015

beauxq uploaded file IMG_20150106_081028.jpg (2068.1 KiB)

cursor is far below the object that can be attacked
IMG_20150106_081028.jpg

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 2, 2015

klasskill commented


I have run into this as well it gets worse the higher the resolution you go

@wzdev-ci
Copy link
Contributor Author

Cyp changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Cyp changed resolution from `` to duplicate

@wzdev-ci
Copy link
Contributor Author

Cyp changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Cyp changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Oh, this is probably the same as #4157, fixed in 07e33362d4ee5d9c4b1d9f3ccd63ecc88f73d93b.

@wzdev-ci
Copy link
Contributor Author

beauxq uploaded file IMG_20160810_164532_cropped.jpg (489.5 KiB)

mouse cursor is on the object that can be attacked
IMG_20160810_164532_cropped.jpg

@wzdev-ci
Copy link
Contributor Author

beauxq uploaded file IMG_20160810_164616_cropped.jpg (494.0 KiB)

mouse cursor is not on the object that can be attacked
IMG_20160810_164616_cropped.jpg

@wzdev-ci
Copy link
Contributor Author

beauxq changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

beauxq changed resolution from duplicate to ``

@wzdev-ci
Copy link
Contributor Author

beauxq commented


Just tested in version 3.2.1
It is not fixed yet.
Just attached new screenshots from latest version showing the same problem.

@wzdev-ci
Copy link
Contributor Author

Cyp changed title from context mouse cursor position to Structure height is not taken into account for mouse clicks

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Ah, I see. A tree is a kind of building, but the height is ignored/zero when clicking.

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


Maybe because mouseTarget() only checks for an occupied tile? The top of a structure/feature, at the default camera angle, could be a tile or two away from the foundation of the object. This can best be seen with a tall structure with a base plate (HQ).

/*	Not a droid, so maybe a structure or feature?
        If still NULL after this then nothing */

	psReturn = getTileOccupier(mouseTileX, mouseTileY);

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg changed priority from normal to major

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant