瀏覽代碼

Change dragging cursor on Windows

kobewi 3 年之前
父節點
當前提交
92a53f9bd6
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      doc/classes/Input.xml
  2. 1 1
      platform/windows/display_server_windows.cpp

+ 1 - 0
doc/classes/Input.xml

@@ -386,6 +386,7 @@
 		</constant>
 		</constant>
 		<constant name="CURSOR_DRAG" value="6" enum="CursorShape">
 		<constant name="CURSOR_DRAG" value="6" enum="CursorShape">
 			Drag cursor. Usually displayed when dragging something.
 			Drag cursor. Usually displayed when dragging something.
+			[b]Note:[/b] Windows lacks a dragging cursor, so [constant CURSOR_DRAG] is the same as [constant CURSOR_MOVE] for this platform.
 		</constant>
 		</constant>
 		<constant name="CURSOR_CAN_DROP" value="7" enum="CursorShape">
 		<constant name="CURSOR_CAN_DROP" value="7" enum="CursorShape">
 			Can drop cursor. Usually displayed when dragging something to indicate that it can be dropped at the current position.
 			Can drop cursor. Usually displayed when dragging something to indicate that it can be dropped at the current position.

+ 1 - 1
platform/windows/display_server_windows.cpp

@@ -1208,7 +1208,7 @@ void DisplayServerWindows::cursor_set_shape(CursorShape p_shape) {
 		IDC_CROSS,
 		IDC_CROSS,
 		IDC_WAIT,
 		IDC_WAIT,
 		IDC_APPSTARTING,
 		IDC_APPSTARTING,
-		IDC_ARROW,
+		IDC_SIZEALL,
 		IDC_ARROW,
 		IDC_ARROW,
 		IDC_NO,
 		IDC_NO,
 		IDC_SIZENS,
 		IDC_SIZENS,