From 17d2ea9f1df997b33425c1a9dbc18d6607feb535 Mon Sep 17 00:00:00 2001 From: teatov Date: Thu, 31 Jul 2025 12:18:03 +1000 Subject: [PATCH] make sine consider default position instead of current --- scripts/game_key.gd | 4 ++-- scripts/globals/layout_config.gd | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/game_key.gd b/scripts/game_key.gd index 09c4136..a51dab5 100644 --- a/scripts/game_key.gd +++ b/scripts/game_key.gd @@ -290,8 +290,8 @@ func _animate_position() -> Vector3: sin( ( keyboard.anim_time - + (position.x / keyboard.key_size) * _idle_frequency.x - + (position.z / keyboard.key_size) * _idle_frequency.y + + (_default_position.x / keyboard.key_size) * _idle_frequency.x + + (_default_position.z / keyboard.key_size) * _idle_frequency.y ) ) * _idle_amplitude diff --git a/scripts/globals/layout_config.gd b/scripts/globals/layout_config.gd index 7ce9170..3d27603 100644 --- a/scripts/globals/layout_config.gd +++ b/scripts/globals/layout_config.gd @@ -19,11 +19,11 @@ var layouts: Dictionary[String, AbstractLayout] = { LayoutJIS.name_static(): LayoutJIS.new(), # LayoutJD40.name_static(): LayoutJD40.new(), # LayoutPlanck.name_static(): LayoutPlanck.new(), - # "ansi-104.json": LayoutKLE.new("res://scripts/layouts/kle/ansi-104.json"), - # "ansi-104-big-enter.json": - # LayoutKLE.new("res://scripts/layouts/kle/ansi-104-big-enter.json"), - # "iso-105.json": LayoutKLE.new("res://scripts/layouts/kle/iso-105.json"), - # "keycool-84.json": LayoutKLE.new("res://scripts/layouts/kle/keycool-84.json"), + "ansi-104.json": LayoutKLE.new("res://scripts/layouts/kle/ansi-104.json"), + "ansi-104-big-enter.json": + LayoutKLE.new("res://scripts/layouts/kle/ansi-104-big-enter.json"), + "iso-105.json": LayoutKLE.new("res://scripts/layouts/kle/iso-105.json"), + "keycool-84.json": LayoutKLE.new("res://scripts/layouts/kle/keycool-84.json"), # LayoutTest.name_static(): LayoutTest.new(), }