Skip to content

Commit

Permalink
Switch to Godot 4.2b4 and updated panel container
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Nov 1, 2023
1 parent e5ec108 commit b32c1a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-desktop-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:

env:
GODOT_VERSION: 4.2
GODOT_SUB: beta3
GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/4.2-beta3
GODOT_SUB: beta4
GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/4.2-beta4
EXPORT_NAME: material_maker
MM_RELEASE: 1_4a1

Expand Down
8 changes: 5 additions & 3 deletions material_maker/panel_container.gd
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
extends TabContainer

func _ready():
pass

func _drop_data(_at_position, data):
var source : TabContainer = get_node(data.from_path)
var panel = source.get_tab_control(data.tabc_element)
var source : TabContainer = get_node(data.from_path).get_parent()
var panel = source.get_tab_control(data.tab_index)
source.remove_child(panel)
add_child(panel)

func _can_drop_data(_at_position, data):
if data is Dictionary and data.has("type") and data.type == "tabc_element":
if data is Dictionary and data.has("type") and data.type == "tab_container_tab":
return true
return false

0 comments on commit b32c1a6

Please sign in to comment.