Define provider action bar suggestions
This commit is contained in:
parent
961a5e0df2
commit
4b2975955f
8 changed files with 18 additions and 0 deletions
|
|
@ -9,6 +9,11 @@ keyboard chords, axes, and ordered gamepad D-pad sequences are gesture kinds,
|
||||||
not separate execution systems. The action bar is a compact editor over the
|
not separate execution systems. The action bar is a compact editor over the
|
||||||
same binding document; its controls are chosen by the player.
|
same binding document; its controls are chosen by the player.
|
||||||
|
|
||||||
|
An action may set `actionBar` to suggest that generic clients expose it in the
|
||||||
|
initial action palette. This is not a binding or a gameplay decision. Client
|
||||||
|
profiles and user overrides still own physical controls, slot order, and
|
||||||
|
whether the suggested action remains visible.
|
||||||
|
|
||||||
Actions may be derived from live state such as equipped modules, weapon groups,
|
Actions may be derived from live state such as equipped modules, weapon groups,
|
||||||
cargo consumables, role, docking state, or mode. A binding whose action is not
|
cargo consumables, role, docking state, or mode. A binding whose action is not
|
||||||
currently available remains dormant so it can recover when that semantic action
|
currently available remains dormant so it can recover when that semantic action
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ export interface EveInputCapability {
|
||||||
context?: string;
|
context?: string;
|
||||||
category?: string;
|
category?: string;
|
||||||
iconRef?: string;
|
iconRef?: string;
|
||||||
|
actionBar?: boolean;
|
||||||
availability: ("available" | "dormant" | "unavailable");
|
availability: ("available" | "dormant" | "unavailable");
|
||||||
sourceRef?: string;
|
sourceRef?: string;
|
||||||
payload?: {
|
payload?: {
|
||||||
|
|
|
||||||
|
|
@ -674,6 +674,9 @@ export declare const eveContractSchemas: {
|
||||||
readonly iconRef: {
|
readonly iconRef: {
|
||||||
readonly type: "string";
|
readonly type: "string";
|
||||||
};
|
};
|
||||||
|
readonly actionBar: {
|
||||||
|
readonly type: "boolean";
|
||||||
|
};
|
||||||
readonly availability: {
|
readonly availability: {
|
||||||
readonly enum: readonly ["available", "dormant", "unavailable"];
|
readonly enum: readonly ["available", "dormant", "unavailable"];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -809,6 +809,9 @@ export const eveContractSchemas = {
|
||||||
"iconRef": {
|
"iconRef": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"actionBar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"availability": {
|
"availability": {
|
||||||
"enum": [
|
"enum": [
|
||||||
"available",
|
"available",
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ operation: string
|
||||||
context?: string
|
context?: string
|
||||||
category?: string
|
category?: string
|
||||||
iconRef?: string
|
iconRef?: string
|
||||||
|
actionBar?: boolean
|
||||||
availability: ("available" | "dormant" | "unavailable")
|
availability: ("available" | "dormant" | "unavailable")
|
||||||
sourceRef?: string
|
sourceRef?: string
|
||||||
payload?: {
|
payload?: {
|
||||||
|
|
|
||||||
|
|
@ -809,6 +809,9 @@ export const eveContractSchemas = {
|
||||||
"iconRef": {
|
"iconRef": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"actionBar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"availability": {
|
"availability": {
|
||||||
"enum": [
|
"enum": [
|
||||||
"available",
|
"available",
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ test("validates scalar and view-direction input value models", () => {
|
||||||
label: "Target Temperature",
|
label: "Target Temperature",
|
||||||
operation: "equipment.set-temperature",
|
operation: "equipment.set-temperature",
|
||||||
availability: "available",
|
availability: "available",
|
||||||
|
actionBar: true,
|
||||||
inputValue: {
|
inputValue: {
|
||||||
model: "scalar.v1",
|
model: "scalar.v1",
|
||||||
payloadKey: "scalarValue",
|
payloadKey: "scalarValue",
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
"context": { "type": "string" },
|
"context": { "type": "string" },
|
||||||
"category": { "type": "string" },
|
"category": { "type": "string" },
|
||||||
"iconRef": { "type": "string" },
|
"iconRef": { "type": "string" },
|
||||||
|
"actionBar": { "type": "boolean" },
|
||||||
"availability": { "enum": ["available", "dormant", "unavailable"] },
|
"availability": { "enum": ["available", "dormant", "unavailable"] },
|
||||||
"sourceRef": { "type": "string" },
|
"sourceRef": { "type": "string" },
|
||||||
"payload": { "type": "object", "additionalProperties": { "type": "string" } },
|
"payload": { "type": "object", "additionalProperties": { "type": "string" } },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue