p, pre, br, b, img, separator, i, u, small, mark, code tags
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
class_name TabManager
|
||||
extends HFlowContainer
|
||||
|
||||
var tabs: Array[Tab] = []
|
||||
var active_tab := 0
|
||||
|
||||
@onready var main: Main = $"../.."
|
||||
|
||||
const TAB = preload("res://Scenes/Tab.tscn")
|
||||
|
||||
const TAB_NORMAL: StyleBoxFlat = preload("res://Scenes/Styles/TabNormal.tres")
|
||||
@@ -79,6 +82,9 @@ func create_tab() -> void:
|
||||
h_box_container.add_child(tab)
|
||||
|
||||
set_active_tab(index)
|
||||
|
||||
# WARNING: temporary
|
||||
main.render()
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if Input.is_action_just_pressed("NewTab"):
|
||||
|
||||
Reference in New Issue
Block a user