Skip to content

Commit

Permalink
Remove use of selectbutton from launch projectile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Apr 10, 2024
1 parent 16b735c commit 0c4e9bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@
"FIELD_NUMBER": "Number",
"FIELD_PROPERTY": "Property",
"FIELD_REMOVE": "Remove",
"FIELD_LAUNCH_AT": "Launch At",

"// 7": "Asset Viewer ---------------------------------------------",
"ASSET_SEARCH": "Search...",
Expand Down
29 changes: 14 additions & 15 deletions src/lib/events/eventLaunchProjectile.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,21 @@ const fields = [
},
{
type: "group",
width: "50%",
fields: [
{
label: l10n("FIELD_LAUNCH_AT"),
key: "directionType",
type: "select",
options: [
["direction", l10n("FIELD_FIXED_DIRECTION")],
["actor", l10n("FIELD_ACTOR_DIRECTION")],
["target", l10n("FIELD_ACTOR_TARGET")],
["angle", l10n("FIELD_ANGLE")],
["anglevar", l10n("FIELD_ANGLE_VARIABLE")],
],
defaultValue: "direction",
alignBottom: true,
},
{
key: "otherActorId",
label: l10n("FIELD_DIRECTION"),
Expand Down Expand Up @@ -126,20 +139,6 @@ const fields = [
},
],
},
{
key: "directionType",
type: "selectbutton",
options: [
["direction", l10n("FIELD_FIXED_DIRECTION")],
["actor", l10n("FIELD_ACTOR_DIRECTION")],
["target", l10n("FIELD_ACTOR_TARGET")],
["angle", l10n("FIELD_ANGLE")],
["anglevar", l10n("FIELD_ANGLE_VARIABLE")],
],
inline: true,
defaultValue: "direction",
alignBottom: true,
},
],
},
{
Expand Down

0 comments on commit 0c4e9bc

Please sign in to comment.