Add tile detail drawer, click-to-focus-camera, and occupied tile click redirect
- Right-side slide-in drawer shows tile coords, affinity, base1/base2, ruin, and occupant name when any tile is clicked in NONE mode; auto-closes on mode change - New 'Focus camera when clicking a tile' setting (Settings.click_to_focus_camera), toggled in in-game settings panel, tweens camera to clicked tile - Clicking a tile occupied by a unit now redirects to that unit in both NONE and UNIT_SELECTED modes, so you no longer need to hit the unit mesh exactly Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -7,6 +7,7 @@ extends PanelContainer
|
||||
@onready var _sfx_slider : HSlider = %SfxSlider
|
||||
@onready var _sfx_mute : CheckButton = %SfxMute
|
||||
@onready var _cam_follow : CheckButton = %CameraFollowUnit
|
||||
@onready var _tile_focus_cam : CheckButton = %TileFocusCamera
|
||||
@onready var _skybox_opt : OptionButton = %SkyboxModeOption
|
||||
@onready var _sync_btn : Button = %SyncBtn
|
||||
@onready var _concede_btn : Button = %ConcedeBtn
|
||||
@@ -26,6 +27,7 @@ func _ready() -> void:
|
||||
_sfx_slider.value_changed.connect(_on_sfx_volume_changed)
|
||||
_sfx_mute.toggled.connect(_on_sfx_mute_toggled)
|
||||
_cam_follow.toggled.connect(func(v: bool) -> void: Settings.camera_follow_unit = v)
|
||||
_tile_focus_cam.toggled.connect(func(v: bool) -> void: Settings.click_to_focus_camera = v)
|
||||
_skybox_opt.item_selected.connect(_on_skybox_mode_changed)
|
||||
|
||||
_sync_btn.pressed.connect(_on_sync_pressed)
|
||||
@@ -55,6 +57,7 @@ func _sync_from_settings() -> void:
|
||||
_sfx_slider.set_value_no_signal(Settings.sfx_volume)
|
||||
_sfx_mute.set_pressed_no_signal(Settings.sfx_muted)
|
||||
_cam_follow.set_pressed_no_signal(Settings.camera_follow_unit)
|
||||
_tile_focus_cam.set_pressed_no_signal(Settings.click_to_focus_camera)
|
||||
_skybox_opt.selected = ["live", "cdn", "off"].find(Settings.skybox_mode)
|
||||
_music_slider.modulate.a = 0.4 if Settings.music_muted else 1.0
|
||||
_sfx_slider.modulate.a = 0.4 if Settings.sfx_muted else 1.0
|
||||
|
||||
Reference in New Issue
Block a user