externalize big ass enter shapes
This commit is contained in:
parent
10e4038fea
commit
e0c80fc420
@ -1,6 +1,28 @@
|
|||||||
class_name CommonRows
|
class_name CommonRows
|
||||||
|
|
||||||
|
|
||||||
|
static func big_enter_iso() -> Dictionary:
|
||||||
|
return {
|
||||||
|
KeyProps.KEY: KEY_ENTER,
|
||||||
|
KeyProps.W: 1.25,
|
||||||
|
KeyProps.H: 2,
|
||||||
|
KeyProps.X: 0.25,
|
||||||
|
KeyProps.W2: 1.5,
|
||||||
|
KeyProps.X2: -0.25,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static func big_enter_ansi() -> Dictionary:
|
||||||
|
return {
|
||||||
|
KeyProps.KEY: KEY_ENTER,
|
||||||
|
KeyProps.W: 1.5,
|
||||||
|
KeyProps.H: 2,
|
||||||
|
KeyProps.W2: 2.25,
|
||||||
|
KeyProps.Y2: 1,
|
||||||
|
KeyProps.X2: -0.75,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static func numbers() -> Array:
|
static func numbers() -> Array:
|
||||||
return [
|
return [
|
||||||
{KeyProps.KEY: KEY_1},
|
{KeyProps.KEY: KEY_1},
|
||||||
|
|||||||
@ -13,16 +13,7 @@ func get_rows() -> Array[Array]:
|
|||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
||||||
+ CommonRows.letters_row_1()
|
+ CommonRows.letters_row_1()
|
||||||
+ [
|
+ [CommonRows.big_enter_iso()]
|
||||||
{
|
|
||||||
KeyProps.KEY: KEY_ENTER,
|
|
||||||
KeyProps.W: 1.25,
|
|
||||||
KeyProps.H: 2,
|
|
||||||
KeyProps.X: 0.25,
|
|
||||||
KeyProps.W2: 1.5,
|
|
||||||
KeyProps.X2: -0.25,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
||||||
|
|||||||
@ -16,16 +16,7 @@ func get_rows() -> Array[Array]:
|
|||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
||||||
+ CommonRows.letters_row_1()
|
+ CommonRows.letters_row_1()
|
||||||
+ [
|
+ [CommonRows.big_enter_ansi()]
|
||||||
{
|
|
||||||
KeyProps.KEY: KEY_ENTER,
|
|
||||||
KeyProps.W: 1.5,
|
|
||||||
KeyProps.H: 2,
|
|
||||||
KeyProps.W2: 2.25,
|
|
||||||
KeyProps.Y2: 1,
|
|
||||||
KeyProps.X2: -0.75,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
),
|
),
|
||||||
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}] + CommonRows.letters_row_2(),
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}] + CommonRows.letters_row_2(),
|
||||||
(
|
(
|
||||||
|
|||||||
@ -13,16 +13,7 @@ func get_rows() -> Array[Array]:
|
|||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
||||||
+ CommonRows.letters_row_1()
|
+ CommonRows.letters_row_1()
|
||||||
+ [
|
+ [CommonRows.big_enter_iso()]
|
||||||
{
|
|
||||||
KeyProps.KEY: KEY_ENTER,
|
|
||||||
KeyProps.W: 1.25,
|
|
||||||
KeyProps.H: 2,
|
|
||||||
KeyProps.X: 0.25,
|
|
||||||
KeyProps.W2: 1.5,
|
|
||||||
KeyProps.X2: -0.25,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
||||||
|
|||||||
@ -16,16 +16,7 @@ func get_rows() -> Array[Array]:
|
|||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
||||||
+ CommonRows.letters_row_1()
|
+ CommonRows.letters_row_1()
|
||||||
+ [
|
+ [CommonRows.big_enter_iso()]
|
||||||
{
|
|
||||||
KeyProps.KEY: KEY_ENTER,
|
|
||||||
KeyProps.W: 1.25,
|
|
||||||
KeyProps.H: 2,
|
|
||||||
KeyProps.X: 0.25,
|
|
||||||
KeyProps.W2: 1.5,
|
|
||||||
KeyProps.X2: -0.25,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user