Skip to content

Commit e0dcb1f

Browse files
0.5-DEV-2.5.2
- Collapsed tab buttons trigger now is inverted. - Collapsed tab function expanded to show only one tab.
1 parent 45c7358 commit e0dcb1f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

addons/script_splitter/core/ui/multi_split_container/taby/container.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var style : StyleBox = null
3232

3333
var _behaviour_collapsed : int = MAX_COLLAPSED:
3434
set(e):
35-
_behaviour_collapsed = mini(maxi(1, e), MAX_COLLAPSED)
35+
_behaviour_collapsed = mini(maxi(0, e), MAX_COLLAPSED)
3636

3737
func _enter_tree() -> void:
3838
modulate.a = 0.0
@@ -286,13 +286,13 @@ func _on_close(btn : Button) -> void:
286286
func _on_gui(event : InputEvent) -> void:
287287
if event is InputEventMouseButton:
288288
if event.pressed:
289-
if event.button_index == MOUSE_BUTTON_WHEEL_UP:
289+
if event.button_index == MOUSE_BUTTON_WHEEL_DOWN:
290290
if _behaviour_collapsed < MAX_COLLAPSED:
291291
_behaviour_collapsed += 1
292292
update()
293293
get_viewport().set_input_as_handled()
294-
elif event.button_index == MOUSE_BUTTON_WHEEL_DOWN:
295-
if _behaviour_collapsed > 1:
294+
elif event.button_index == MOUSE_BUTTON_WHEEL_UP:
295+
if _behaviour_collapsed > 0:
296296
_behaviour_collapsed -= 1
297297
update()
298298
get_viewport().set_input_as_handled()

addons/script_splitter/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ name="Script Splitter"
44
description="Tool Addon for godot 4
55
Allow split script window."
66
author="Twister"
7-
version="0.5-DEV-2.5.1"
7+
version="0.5-DEV-2.5.2"
88
github="https://github.com/CodeNameTwister/Script-Splitter"
99
script="plugin.gd"

0 commit comments

Comments
 (0)