final case class CreateShortcutMessage(player_guid: PlanetSideGUID, slot: Int, shortcut: Option[Shortcut]) extends PlanetSideGamePacket with Product with Serializable
Facilitate a quick-use button for the hotbar.
The hotbar is the eight quick-use slots along the bottom center of the HUD.
Each of these slots is the application of a medkit, or use of an implant, or repetition of a text macro.
There are actually sixty-four of these slots, eight bound to the Function keys depending on which set is selected.
When addShortcut is true, the provided Shortcut will be defined and attached to the respective hotbar slot indicated by slot.
If it is false, the given slot will be unbound.
Nothing happens if the slot selection is invalid.
This packet coordinates the shortcut both as an upstream and as a downstream packet, leaning heavily towards the latter.
An interesting application is that, if the user does not already have a medkit or a medkit shortcut;
but, if he places a medkit in his inventory, the shortcut will be automatically added to his hotbar.
This, in turn, dispatches a packet informing the server.
The prior functionality will rarely be appreciated, however, as players rarely never have their medkit shortcut unbound.
- player_guid
the player
- slot
the hotbar slot number (one-indexed)
- shortcut
optional; details about the shortcut to be created
- Source
- CreateShortcutMessage.scala
- See also
ChangeShortcutBankMessage
- Alphabetic
- By Inheritance
- CreateShortcutMessage
- Product
- Equals
- PlanetSideGamePacket
- PlanetSidePacket
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CreateShortcutMessage(player_guid: PlanetSideGUID, slot: Int, shortcut: Option[Shortcut])
- player_guid
the player
- slot
the hotbar slot number (one-indexed)
- shortcut
optional; details about the shortcut to be created
Type Members
- type Packet = CreateShortcutMessage
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def encode: Attempt[BitVector]
- Definition Classes
- CreateShortcutMessage → PlanetSidePacket
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def opcode: GamePacketOpcode.Value
- Definition Classes
- CreateShortcutMessage → PlanetSideGamePacket → PlanetSidePacket
- val player_guid: PlanetSideGUID
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val shortcut: Option[Shortcut]
- val slot: Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()