Skocz do zawartości
  • 0

Inventory Click


kubastion

Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Tak trudno poszukać? Wszystko na tacy ma być podane? Trochę zaangażowania.

on inventory click:
	if clicked type is RIGHT:
		//
	else if clicked type is SHIFT_LEFT:
		//

Używaj takiej składni jeżeli masz Umbaske: if "%clicked type%" is "RIGHT"

Spoiler

Types:

CONTROL_DROP
Holding Ctrl while pressing the "Drop" key (defaults to Q).
CREATIVE
Any action done with the Creative inventory open.
DOUBLE_CLICK
Pressing the left mouse button twice in quick succession.
DROP
The "Drop" key (defaults to Q).
LEFT
The left (or primary) mouse button.
MIDDLE
The middle mouse button, or a "scrollwheel click".
NUMBER_KEY
One of the number keys 1-9, correspond to slots on the hotbar.
RIGHT
The right mouse button.
SHIFT_LEFT
Holding shift while pressing the left mouse button.
SHIFT_RIGHT
Holding shift while pressing the right mouse button.
UNKNOWN
A type of inventory manipulation not yet recognized by Bukkit.
WINDOW_BORDER_LEFT
Clicking the left mouse button on the grey area around the inventory.
WINDOW_BORDER_RIGHT
Clicking the right mouse button on the grey area around the inventory.

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 godziny temu, Shooterowy napisał:

Tak trudno poszukać? Wszystko na tacy ma być podane? Trochę zaangażowania.


on inventory click:
	if clicked type is RIGHT:
		//
	else if clicked type is SHIFT_LEFT:
		//

Używaj takiej składni jeżeli masz Umbaske: if "%clicked type%" is "RIGHT"

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Pokaż ukrytą zawartość

Types:

CONTROL_DROP
Holding Ctrl while pressing the "Drop" key (defaults to Q).
CREATIVE
Any action done with the Creative inventory open.
DOUBLE_CLICK
Pressing the left mouse button twice in quick succession.
DROP
The "Drop" key (defaults to Q).
LEFT
The left (or primary) mouse button.
MIDDLE
The middle mouse button, or a "scrollwheel click".
NUMBER_KEY
One of the number keys 1-9, correspond to slots on the hotbar.
RIGHT
The right mouse button.
SHIFT_LEFT
Holding shift while pressing the left mouse button.
SHIFT_RIGHT
Holding shift while pressing the right mouse button.
UNKNOWN
A type of inventory manipulation not yet recognized by Bukkit.
WINDOW_BORDER_LEFT
Clicking the left mouse button on the grey area around the inventory.
WINDOW_BORDER_RIGHT
Clicking the right mouse button on the grey area around the inventory.

 

lepiej XDD, dziękuje ;)

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...