Add portable RV homes and decor prototype
This commit is contained in:
parent
81decf2b71
commit
fe099f47dd
56 changed files with 5459 additions and 112 deletions
11
ui/hotbar.gd
11
ui/hotbar.gd
|
|
@ -37,6 +37,7 @@ var _slots: Array[BubbleHotbarSlotType] = []
|
|||
var _gameplay_input_enabled: bool = false
|
||||
var _drag_enabled: bool = false
|
||||
var _swap_hotbar_camera_scroll: bool = false
|
||||
var _rv_interior_camera_mode: bool = false
|
||||
var _motion_elapsed: float = 0.0
|
||||
var _compact_layout: bool = false
|
||||
var _player_menu_context: bool = false
|
||||
|
|
@ -99,6 +100,10 @@ func set_swap_hotbar_camera_scroll(enabled: bool) -> void:
|
|||
_swap_hotbar_camera_scroll = enabled
|
||||
|
||||
|
||||
func set_rv_interior_camera_mode(enabled: bool) -> void:
|
||||
_rv_interior_camera_mode = enabled
|
||||
|
||||
|
||||
func set_drag_enabled(enabled: bool) -> void:
|
||||
_drag_enabled = enabled
|
||||
for slot: BubbleHotbarSlotType in _slots:
|
||||
|
|
@ -308,7 +313,11 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
if (
|
||||
event is InputEventMouseButton
|
||||
and event.pressed
|
||||
and event.shift_pressed == _swap_hotbar_camera_scroll
|
||||
and (
|
||||
event.shift_pressed
|
||||
if _rv_interior_camera_mode
|
||||
else event.shift_pressed == _swap_hotbar_camera_scroll
|
||||
)
|
||||
):
|
||||
if event.button_index == MOUSE_BUTTON_WHEEL_UP:
|
||||
_hotbar.cycle_selection(-1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue