Превью курсора: HERO - 1 - cute-cursor.com

Набор курсоров

HERO

OMORIУстановлено 11 раз

HERO cursor for mouse and custom hover pointer with character's weapon in The Wishes collection of custom cursors.

В расширение

HERO is one of the three deuteragonists in OMORI. When tagged as the leader, HERO can use his charm to convince others to assist the party. HERO cursor for mouse and custom hover pointer with character's weapon in The Wishes collection of custom cursors.

Файлы курсора

Скачайте файл или скопируйте готовый CSS и код для Roblox с правильным hotspot.

Курсор - 1 - cute-cursor.com

Курсор

Скачайте файл или скопируйте код для сайта, React, JavaScript или Roblox.

Скачать курсор для Roblox

Вставьте этот CSS в стили. Координаты hotspot уже указаны.

.custom-cursor {
  cursor: url('https://cute-cursor.com/cdn/packs/893/arrow.svg') 35 0, auto;
}

Вставьте этот JavaScript, чтобы применить курсор с правильным hotspot.

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/893/arrow.svg';
const HOTSPOT_X = 35;
const HOTSPOT_Y = 0;
const CURSOR_FALLBACK = 'auto';

const cursorValue = `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`;

// Apply to the whole page
document.body.style.cursor = cursorValue;

// Or apply to a specific element
// const target = document.querySelector('.my-element');
// if (target) target.style.cursor = cursorValue;

Скопируйте React-компонент и оберните им нужный контент.

import React from 'react';

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/893/arrow.svg';
const HOTSPOT_X = 35;
const HOTSPOT_Y = 0;
const CURSOR_FALLBACK = 'auto';

export default function CustomCursor({ children, className = '', as: Tag = 'div', style = {}, ...props }) {
  const cursorStyle = {
    cursor: `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`,
    ...style,
  };

  return (
    <Tag className={className} style={cursorStyle} {...props}>
      {children}
    </Tag>
  );
}

// Usage:
// <CustomCursor>Your content</CustomCursor>

Загрузите изображение в Roblox, замените YOUR_ASSET_ID и вставьте LocalScript.

-- Roblox custom cursor
-- Image URL: https://cute-cursor.com/cdn/packs/893/arrow.svg
-- Hotspot: 35, 0
-- Size: 128x128
-- 1. Upload the image to Roblox and copy rbxassetid
-- 2. Replace YOUR_ASSET_ID below
-- 3. Put this LocalScript in StarterPlayer > StarterPlayerScripts

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local HOTSPOT_X = 35
local HOTSPOT_Y = 0
local CURSOR_WIDTH = 128
local CURSOR_HEIGHT = 128

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomCursorGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 999999
screenGui.Parent = playerGui

local cursor = Instance.new("ImageLabel")
cursor.Name = "CustomCursor"
cursor.BackgroundTransparency = 1
cursor.Size = UDim2.fromOffset(CURSOR_WIDTH, CURSOR_HEIGHT)
cursor.Image = "rbxassetid://YOUR_ASSET_ID"
cursor.ZIndex = 999999
cursor.Parent = screenGui

UserInputService.MouseIconEnabled = false

RunService.RenderStepped:Connect(function()
    local mouseLocation = UserInputService:GetMouseLocation()
    cursor.Position = UDim2.fromOffset(mouseLocation.X - HOTSPOT_X, mouseLocation.Y - HOTSPOT_Y)
end)
Указатель - 2 - cute-cursor.com

Указатель

Скачайте файл или скопируйте код для сайта, React, JavaScript или Roblox.

Скачать указатель для Roblox

Вставьте этот CSS в стили. Координаты hotspot уже указаны.

.custom-pointer {
  cursor: url('https://cute-cursor.com/cdn/packs/893/hand.svg') 35 0, pointer;
}

Вставьте этот JavaScript, чтобы применить курсор с правильным hotspot.

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/893/hand.svg';
const HOTSPOT_X = 35;
const HOTSPOT_Y = 0;
const CURSOR_FALLBACK = 'pointer';

const cursorValue = `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`;

// Apply to the whole page
document.body.style.cursor = cursorValue;

// Or apply to a specific element
// const target = document.querySelector('.my-element');
// if (target) target.style.cursor = cursorValue;

Скопируйте React-компонент и оберните им нужный контент.

import React from 'react';

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/893/hand.svg';
const HOTSPOT_X = 35;
const HOTSPOT_Y = 0;
const CURSOR_FALLBACK = 'pointer';

export default function CustomPointer({ children, className = '', as: Tag = 'div', style = {}, ...props }) {
  const cursorStyle = {
    cursor: `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`,
    ...style,
  };

  return (
    <Tag className={className} style={cursorStyle} {...props}>
      {children}
    </Tag>
  );
}

// Usage:
// <CustomPointer>Your content</CustomPointer>

Загрузите изображение в Roblox, замените YOUR_ASSET_ID и вставьте LocalScript.

-- Roblox custom cursor
-- Image URL: https://cute-cursor.com/cdn/packs/893/hand.svg
-- Hotspot: 35, 0
-- Size: 128x128
-- 1. Upload the image to Roblox and copy rbxassetid
-- 2. Replace YOUR_ASSET_ID below
-- 3. Put this LocalScript in StarterPlayer > StarterPlayerScripts

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local HOTSPOT_X = 35
local HOTSPOT_Y = 0
local CURSOR_WIDTH = 128
local CURSOR_HEIGHT = 128

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomCursorGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 999999
screenGui.Parent = playerGui

local cursor = Instance.new("ImageLabel")
cursor.Name = "CustomCursor"
cursor.BackgroundTransparency = 1
cursor.Size = UDim2.fromOffset(CURSOR_WIDTH, CURSOR_HEIGHT)
cursor.Image = "rbxassetid://YOUR_ASSET_ID"
cursor.ZIndex = 999999
cursor.Parent = screenGui

UserInputService.MouseIconEnabled = false

RunService.RenderStepped:Connect(function()
    local mouseLocation = UserInputService:GetMouseLocation()
    cursor.Position = UDim2.fromOffset(mouseLocation.X - HOTSPOT_X, mouseLocation.Y - HOTSPOT_Y)
end)
Бесплатно

Get the Cursor Changer extension

Бесплатно для Chrome. Установите расширение и нажимайте «Добавить» у любого курсора.

Установить в Chrome