|
Mouse pointer images |
Posted on: 7/14 23:57
#1 |
---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/28 23:42 From Bettendorf, IA, USA
Posts: 215
|
Are the mouse pointer images somewhere on disk or are they in Intuition itself? SYS:Prefs/Presets/Pointers are just the main pointer image.
I want to copy POINTERTYPE_TEXT and make a slight change to it and set the new image myself. If it's on disk, can the Prefs->Pointer editor change them? |
|
|
Re: Mouse pointer images |
Posted on: 7/15 0:59
#2 |
---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/28 23:42 From Bettendorf, IA, USA
Posts: 215
|
Why does the Icon Editor not save correctly?!
Can someone make a working white (not black) version of: def_textpointer.info Please and thank you. mritter0 at gamil.com Edited by mritter0 on 2019/7/15 2:09:42
|
|
_________________
Workbench Explorer - A better way to browse drawers |
||
|
Re: Mouse pointer images |
Posted on: 7/15 9:03
#3 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2146
|
@mritter0
Based on your second question you probably already worked out that the default pointer images are in ENVARC:Sys/def_#?_pointer.info . I'll Just stated it explictly for anyone else reading ths thread who doesn't know. Quote:
It does, it's just that it's definition of "correct" predates 32colour icons. Use an image editor with 32bit support (I receomend SketchBlock ![]() Quote:
You don't need and in fact I would recomend against using an icon for you custom pointers. Use images instead (see TBIMAGES:#?cursor) Here are two candidates (with apologies to 'mason') http://broadblues.f2s.com/textcursor_white_shadow.png http://broadblues.f2s.com/textcursor_white.png If you felt really clever you could split the cursor and shadow parts of the alpha channels and build your own in memory with custom colours for cursor and shadow to match any colour theme the user micght choose. |
|
|
Re: Mouse pointer images |
Posted on: 7/15 9:30
#4 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 412
|
|
|
|
Re: Mouse pointer images |
Posted on: 7/15 21:59
#5 |
---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/28 23:42 From Bettendorf, IA, USA
Posts: 215
|
@broadblues
Just using an image makes more sense. I was getting to that point since I am just pulling the image out of the icon anyway.... @jabirulo Thanks. Hopefully won't be needed. |
|
_________________
Workbench Explorer - A better way to browse drawers |
||
|
Re: Mouse pointer images |
Posted on: 7/16 3:45
#6 |
---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/28 23:42 From Bettendorf, IA, USA
Posts: 215
|
I can't get anything except the original icon to load. I used the 32bit editor from above to change the color to white; just get a garbage pointer.
You can't use PNGs directly like you can with everything else (gadgets, menus, toolbars). It has to be a generic bitmap. Is there anything wrong with this code that doesn't like editted icons? Pulling my hair out (what's left of it).
SAK_LoadPointer((STRPTR)"PROGDIR:Images/def_textpointer",ActiveScreen);
|
|
|
Re: Mouse pointer images |
Posted on: 7/16 11:29
#7 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2146
|
@mritter0
Quote:
You have to load them yourself with a datatype. Quote:
Er no it's 32bit ARGB data not a bitmap. That is what you extract from the icon.
// POINTERA_BitMap, fallbackPointer,
You *must* provide this it cannot be commented out. Or the object wont be created Quote:
|
|
|
Re: Mouse pointer images |
Posted on: 7/16 11:33
#8 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2146
|
Here is my pointer loading code from SketchBlock.
static UWORD handdata[]=
|
|
|
Re: Mouse pointer images |
Posted on: 7/16 22:18
#9 |
---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/28 23:42 From Bettendorf, IA, USA
Posts: 215
|
OK. I got icons to load. It was the lack of the fallback image.
Trying your code for images (I was taking it too far and making a NewObject(BitMapClass, and trying to use that) but I don't know where you are getting sizeof(ARGB32). |
|
_________________
Workbench Explorer - A better way to browse drawers |
||
|
Re: Mouse pointer images |
Posted on: 7/16 22:43
#10 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2146
|
@mritter0
SB has a custom ARGB32 type for 32bit image data you can just stick 4 in for that (or sizeof(uint32)) |
|
|
Re: Mouse pointer images |
Posted on: 7/17 1:45
#11 |
---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/28 23:42 From Bettendorf, IA, USA
Posts: 215
|
@broadblues
Nice. Works just fine. And will be easier to add more colors now. Would you happen to have the textpointer instead of hand for the fallback bitmap? Thanks! |
|