Blockland Forums > Modification Help
Changing cursor color via script?
(1/3) > >>
Space Man:
Hello,

I know how to make new cursors and set them and blah blah.

I was just wondering that, is it possible to change to color of the cursor(s)(bitmap) via script?

I have tried to:


--- Quote ---MyCursor.setColor(%color);

--- End quote ---

But it doesn't change the color and just says that it's an unknown function. (setColor changes the color of any other bitmap though)
PowerDag:
The name of the cursor is 3dcursor.bmp.
Space Man:

--- Quote from: PowerDag on July 29, 2011, 11:19:06 AM ---The name of the cursor is 3dcursor.bmp.

--- End quote ---

I have made my own cursor named something else and I can do things with it just fine.


--- Quote ---new GuiCursor(MyCursor)
{
   hotSpot = "1 1";
   renderOffset = "0 0";
   bitmapName = "bitmappathhere";
};
Canvas.setCursor(MyCursor);
--- End quote ---
infiniteLoop:

--- Quote from: Space Man on July 29, 2011, 10:27:49 AM ---Hello,

I know how to make new cursors and set them and blah blah.

I was just wondering that, is it possible to change to color of the cursor(s)(bitmap) via script?

I have tried to:

But it doesn't change the color and just says that it's an unknown function. (setColor changes the color of any other bitmap though)

--- End quote ---

Because myCursor is not an ACTUAL bitmap. It is a GuiCursor..
Space Man:

--- Quote from: infiniteLoop on July 29, 2011, 11:44:03 AM ---Because myCursor is not an ACTUAL bitmap. It is a GuiCursor..

--- End quote ---

I didn't quite get this :o?
Navigation
Message Index
Next page

Go to full version