Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#151 closed enhancement (fixed)

Hand pointer

Reported by: Mikhail Malyshev Owned by: Thore Böckelmann
Priority: normal Milestone: 4.0-2015R1
Component: muimaster.library Version: 4.0-AmiKit8.2
Severity: minor Keywords:
Cc: OS Platform: AmigaOS3
Blocked By: Blocking:
Release Notes:

The embedded and fixed context sensitive pointer images can now be replaced by external images saved by the system's Prefs/Pointer tool. Only the "normal" image wil be used, the "busy" image will be ignored completely as well as any different color settings compared to the system's global "normal" pointer image. Such custom pointer image files must be placed in "ENVARC:MUI/pointers" and must be named as "<type>.prefs", i.e. "link.prefs" or "northeastsouthwestresize.prefs".

Description

Is this pointer configurable ?

Also if it's not, the colour choice is odd.

Usually you would expect a white pointer with black outline.
Not what we currently have (ugly)

Attachments (4)

004.png (9.2 KB) - added by Mikhail Malyshev 4 years ago.
Pointer design change needed
pointer.png (32.5 KB) - added by Mikhail Malyshev 4 years ago.
default colours
MUI-Pointers.lha (8.1 KB) - added by Mikhail Malyshev 4 years ago.
MUI-Pointers.2.lha (12.4 KB) - added by Mikhail Malyshev 4 years ago.
updated and more complete set of MUI pointers

Download all attachments as: .zip

Change History (23)

Changed 4 years ago by Mikhail Malyshev

Attachment: 004.png added

Pointer design change needed

comment:1 Changed 4 years ago by Thore Böckelmann

Component: undefinedmuimaster.library
Milestone: MUI 4.0-2015R1
Owner: set to Thore Böckelmann
Priority: undecidednormal
Status: newassigned

That one is embedded into the MUI code, because AmigaOS3 has no concept of other standard pointers than the normal and the busy pointer. And since there a 3 pens (17, 18 and 19) only for the pointer to choose from it depends on the user's palette which colors are actually used. The system defines the colors for the pointer, not MUI. Although an application is able to modify these 3 colors this would result in wrong colors for the normal pointer.

That "ugly" is your own choice of colors, not mine.

Anyway, I just swapped the bitplanes to get a different look. But the final look still depends on your personal choice of colors.

comment:2 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: assignedclosed

In 4445:

  • images/pointer8_hand.brush, images/pointer8_link.brush: swapped bitplanes to get pointer images with a more suitable coloring. This closes #151.

Changed 4 years ago by Mikhail Malyshev

Attachment: pointer.png added

default colours

comment:3 Changed 4 years ago by Mikhail Malyshev

Added picture with default amiga colours.
So for the hand you should use right most black and white.
And really users are free to mod only one pen (defaults to red)
and the B&W should always be there, unless you are doing something extraordinary.

comment:4 Changed 4 years ago by Mikhail Malyshev

Just wondering why MUI can not use pointer preset files ?
In the same fashion like def_MUI.info icon or image buttons.
It can be a simple picture in ENV:MUI/ that can be user configurable.
I believe AWEB has something like that implemented.

comment:5 Changed 4 years ago by Thore Böckelmann

That sounds like a reasonable idea. If I implement such a feature MUI would extract the normal pointer image only (no busy image) aber would NOT apply the supplied palette but leave the normal system palette for the pointer untouched.

comment:6 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: closedreopened

Reopened for implementing the dynamic replacement of pointer images.

comment:7 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: reopenedclosed

In 4456:

  • pointer.c: the embedded and fixed context sensitive pointer images can now be replaced by external images saved by the system's Prefs/Pointer tool. Only the "normal" image wil be used, the "busy" image will be ignored completely as well as any different color settings compared to the system's global "normal" pointer image. Such custom pointer image files must be placed in "ENVARC:MUI/pointers" and must be named as "<type>.prefs", i.e. "link.prefs" or "northeastsouthwestresize.prefs". Currently these types are supported:

alias
cell
columnresize
contextmenu
copy
cross
draganddrop
eastresize
eastwestresize
hand
help
link
menu
nodrop
none
northeastresize
northeastsouthwestresize
northresize
northsouthresize
northwestresize
northwestsoutheastresize
notallowed
progress
rowresize
scrollall
southeastresize
southresize
southwestresize
text
verticaltext
westresize
zoomin
zoomout

This closes #151 again.

comment:8 Changed 4 years ago by Mikhail Malyshev

Mega Cool! Now we need an expansion pack done by some pixel art expert ;-)

comment:9 Changed 4 years ago by Thore Böckelmann

Well, that depends on how artistic images with 32x64 pixels and 3 fixed colors at most can become. But on the other hand even Pacman is considered "art".

comment:10 Changed 4 years ago by Mikhail Malyshev

The second image can also be used! As a 2 frame anim ;-)

eg. when you click url the hand can have the finger move on press
when you use resize arrow, it can animate to show that you are in the selection area (like M!NDOM$)

comment:11 Changed 4 years ago by Mikhail Malyshev

How do you handle the mouse hot spot ?

I have created a test pointer for link, with hot spot at 2x2

now, when I move the mouse to url, the mouse changes,
but looks like it is shifted by 2 pixels to right and down
as if the hot spot is at -2x-2 coordinates

The hot spot will be required for sizing pointers, where it can be in the middle of the image, not just top left corner. (or when we have a left hand mouse pointer)

comment:12 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: closedreopened

You are right. The image is shifted due to a wrongly interpreted hot spot location.

comment:13 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: reopenedclosed

In 4461:

  • pointers.c: use the hot spot locations of the loaded pointer images without further modification as well as the resolution values. This closes #151.

Changed 4 years ago by Mikhail Malyshev

Attachment: MUI-Pointers.lha added

comment:14 Changed 4 years ago by Mikhail Malyshev

Experimental pointer set with support for animation!
https://muidev.de/attachment/ticket/151/MUI-Pointers.lha

eg. The url click can show action when you press button (busy image showed)

For some images like sizing arrows it might be cool to shuffle normal/busy image 2 times a second for cool effect ;-)

comment:15 Changed 4 years ago by Thore Böckelmann

Nice work, but animated pointers won't happen. And there is no need to discuss this topic any further.

comment:16 Changed 4 years ago by Mikhail Malyshev

Why not ? It's a cool feature and can be easily implemented sometime in the future when you are bored. I am not insisting.

Changed 4 years ago by Mikhail Malyshev

Attachment: MUI-Pointers.2.lha added

updated and more complete set of MUI pointers

comment:17 Changed 4 years ago by Mikhail Malyshev

PS: The link image would benefit from the second image when you press the url.
And the hand will be even better with second image, since when you hold lmb it should become a grab.

comment:18 Changed 4 years ago by Thore Böckelmann

Release Notes: modified (diff)

comment:19 Changed 4 years ago by Thore Böckelmann

Milestone: MUI 4.0-2015R14.0-2015R1

Milestone renamed

Note: See TracTickets for help on using tickets.