d4dcd0d5ce
* wip * wip * random action on click * removing actions * register single key per command use * change removeActionsMenu action name * fixed actions menu not hiding content properly: * actions menu fix * added mock Block Player action * ActionsMenu buttons styling * added displaying priority for menu actions * moved utils actionMenu features to the UI * import as a type: * more object oriented style for API * removed registered actions from RemotePlayer instance * readme update * Fixing typos / Improving wording * added instructions on AlterActionsMenu test map Co-authored-by: Hanusiak Piotr <piotr@ltmp.co> Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
13 lines
446 B
TypeScript
13 lines
446 B
TypeScript
import * as tg from "generic-type-guard";
|
|
|
|
export const isAddActionsMenuKeyToRemotePlayerEvent = new tg.IsInterface()
|
|
.withProperties({
|
|
id: tg.isNumber,
|
|
actionKey: tg.isString,
|
|
})
|
|
.get();
|
|
|
|
export type AddActionsMenuKeyToRemotePlayerEvent = tg.GuardedType<typeof isAddActionsMenuKeyToRemotePlayerEvent>;
|
|
|
|
export type AddActionsMenuKeyToRemotePlayerEventCallback = (event: AddActionsMenuKeyToRemotePlayerEvent) => void;
|