mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Created and added a pointing hand cursor.
This commit is contained in:
parent
da38037074
commit
7e8cfdacaa
@ -26,9 +26,12 @@ export(Texture) var attack_cursor : Texture
|
||||
export(Texture) var speak_cursor : Texture
|
||||
export(Texture) var drag_drop_cursor : Texture
|
||||
export(Texture) var forbidden_cursor : Texture
|
||||
export(Texture) var pointing_hand_cursor : Texture
|
||||
export(Texture) var text_cursor : Texture
|
||||
export(Vector2) var text_cursor_hotspot : Vector2
|
||||
|
||||
|
||||
|
||||
func _ready():
|
||||
# Changes only the arrow shape of the cursor.
|
||||
# This is similar to changing it in the project settings.
|
||||
@ -38,6 +41,7 @@ func _ready():
|
||||
Input.set_custom_mouse_cursor(speak_cursor, Input.CURSOR_HELP)
|
||||
Input.set_custom_mouse_cursor(drag_drop_cursor, Input.CURSOR_CAN_DROP)
|
||||
Input.set_custom_mouse_cursor(forbidden_cursor, Input.CURSOR_FORBIDDEN)
|
||||
Input.set_custom_mouse_cursor(pointing_hand_cursor, Input.CURSOR_POINTING_HAND)
|
||||
Input.set_custom_mouse_cursor(text_cursor, Input.CURSOR_IBEAM, text_cursor_hotspot)
|
||||
|
||||
# Changes a specific shape of the cursor (here, the I-beam shape).
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://cursors/autoload/CursorManager.gd" type="Script" id=1]
|
||||
[ext_resource path="res://cursors/arrow16.png" type="Texture" id=2]
|
||||
@ -8,6 +8,7 @@
|
||||
[ext_resource path="res://cursors/drag_drop.png" type="Texture" id=6]
|
||||
[ext_resource path="res://cursors/forbidden.png" type="Texture" id=7]
|
||||
[ext_resource path="res://cursors/ibeam.png" type="Texture" id=8]
|
||||
[ext_resource path="res://cursors/pointing_hand.png" type="Texture" id=9]
|
||||
|
||||
[node name="CursorManager" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
@ -17,5 +18,6 @@ attack_cursor = ExtResource( 4 )
|
||||
speak_cursor = ExtResource( 5 )
|
||||
drag_drop_cursor = ExtResource( 6 )
|
||||
forbidden_cursor = ExtResource( 7 )
|
||||
pointing_hand_cursor = ExtResource( 9 )
|
||||
text_cursor = ExtResource( 8 )
|
||||
text_cursor_hotspot = Vector2( 2, 11 )
|
||||
|
BIN
game/cursors/pointing_hand.png
Normal file
BIN
game/cursors/pointing_hand.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 295 B |
35
game/cursors/pointing_hand.png.import
Normal file
35
game/cursors/pointing_hand.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/pointing_hand.png-5501fb0acefff969a95519f973a8f0b0.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://cursors/pointing_hand.png"
|
||||
dest_files=[ "res://.import/pointing_hand.png-5501fb0acefff969a95519f973a8f0b0.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
Loading…
Reference in New Issue
Block a user