Compare commits
4 commits
b9e0233f25
...
43f82fd03c
| Author | SHA1 | Date | |
|---|---|---|---|
| 43f82fd03c | |||
| 057edb22d5 | |||
| 9ab602f822 | |||
| 8767002f2c |
4 changed files with 14 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ var chatter: Chatter
|
||||||
|
|
||||||
var tw_hidden: Tween
|
var tw_hidden: Tween
|
||||||
var is_expanded: bool = false
|
var is_expanded: bool = false
|
||||||
|
|
||||||
var is_profile_picture_loaded: bool = false
|
var is_profile_picture_loaded: bool = false
|
||||||
|
|
||||||
signal user_selected(chatter: Chatter)
|
signal user_selected(chatter: Chatter)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,13 @@ var _filter_name: String = ""
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
%Filter.text_changed.connect(_update_filter_name)
|
%Filter.text_changed.connect(_update_filter_name)
|
||||||
%FilterLive.pressed.connect(func(): filtering_live = !filtering_live)
|
%FilterLive.pressed.connect(func(): filtering_live = !filtering_live)
|
||||||
|
%Refresh.pressed.connect(func():
|
||||||
|
clear_list()
|
||||||
|
populate_list()
|
||||||
|
Globals.refresh_live_streamer()
|
||||||
|
filter_list()
|
||||||
|
)
|
||||||
|
Globals.live_streamers_updated.connect(filter_list)
|
||||||
|
|
||||||
func _update_filter_name(txt: String) -> void:
|
func _update_filter_name(txt: String) -> void:
|
||||||
_filter_name = txt.to_lower()
|
_filter_name = txt.to_lower()
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,11 @@ func _run_live_streamer_update() -> void:
|
||||||
live_streamers = await twitcher.get_live_streamers_data()
|
live_streamers = await twitcher.get_live_streamers_data()
|
||||||
live_streamers_updated.emit()
|
live_streamers_updated.emit()
|
||||||
|
|
||||||
|
func refresh_live_streamer() -> void:
|
||||||
|
if _tmr_live_stream: _tmr_live_stream.stop()
|
||||||
|
_run_live_streamer_update()
|
||||||
|
if _tmr_live_stream: _tmr_live_stream.start(240)
|
||||||
|
|
||||||
func save_settings() -> void:
|
func save_settings() -> void:
|
||||||
ResourceSaver.save(settings, "user://settings.tres")
|
ResourceSaver.save(settings, "user://settings.tres")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit c4a6ef75b9313e44caeed547715b8aa5097cf087
|
Subproject commit 6b84770fe6d3a5090e691c5ef3d9c17c50945ce0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue