Re-Organizing Structure Layout
Restructuring project to proper directory layout.
This commit is contained in:
parent
38518a1fcd
commit
1340eba1cb
10806 changed files with 16774 additions and 16774 deletions
32
UI/Panels/User/internal_twitch_user_info.gd
Normal file
32
UI/Panels/User/internal_twitch_user_info.gd
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
extends PanelContainer
|
||||
|
||||
@onready var user_games: UserGamesPanel = %UserGames
|
||||
@onready var tui := %TwitchUserInfo
|
||||
@onready var up := %UserPromo
|
||||
|
||||
|
||||
var chatter: Chatter:
|
||||
set(value):
|
||||
chatter = value
|
||||
if not value:
|
||||
tui.clear()
|
||||
up.chatter = value
|
||||
user_games.clear()
|
||||
return
|
||||
if tui:
|
||||
tui.populate_from_chatter(chatter)
|
||||
if up:
|
||||
up.chatter = value
|
||||
if user_games:
|
||||
user_games.chatter = value
|
||||
|
||||
func _ready() -> void:
|
||||
tui.extra_expanding.connect(func(x): if x: up.visible = false)
|
||||
tui.extra_expanded.connect(func(x): if not x: up.visible = true)
|
||||
resized.connect(func():
|
||||
var width := int(size.x / 2)
|
||||
user_games.splitter.split_offsets[0] = width
|
||||
)
|
||||
tui.populate_from_chatter(chatter)
|
||||
up.chatter = chatter
|
||||
user_games.chatter = chatter
|
||||
Loading…
Add table
Add a link
Reference in a new issue