mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-25 16:14:43 -04:00
Renamed to Dress Up Zack
- More clean up - Folder colors
This commit is contained in:
parent
9b849376ae
commit
805cbe2738
11 changed files with 72 additions and 249 deletions
|
@ -1,4 +1,4 @@
|
|||
# This project is licensed under the Artistic-2.0 license.
|
||||
# This project is licensed under the GPL-3.0 license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends TextureRect
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# This project is licensed under the Artistic-2.0 license.
|
||||
# This project is licensed under the GPL-3.0 license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends Control
|
||||
|
||||
|
@ -6,5 +6,3 @@ func _ready():
|
|||
var version = ProjectSettings.get_setting("application/config/version")
|
||||
var verLabel = $VersionLbl
|
||||
verLabel.text = "v" + version
|
||||
GameData.version = version
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
extends Window
|
||||
|
||||
@onready var news_list = $News
|
||||
@onready var http_request = $NewsBtns/HTTPRequest
|
||||
|
||||
func _on_HTTPRequest_request_completed(result, response_code, headers, body):
|
||||
var test_json_conv = JSON.new()
|
||||
test_json_conv.parse(body.get_string_from_utf8())
|
||||
var api_request = test_json_conv.get_data()
|
||||
|
||||
if api_request["feed"] != null:
|
||||
var news_items = api_request["feed"]
|
||||
|
||||
for news in news_items:
|
||||
news_list.add_item(news)
|
||||
|
||||
func _on_SyncBtn_pressed():
|
||||
news_list.clear()
|
||||
http_request.request(GameData.NEWS_API)
|
|
@ -1,15 +0,0 @@
|
|||
# This project is licensed under the Artistic-2.0 license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends TextureRect
|
||||
|
||||
@onready var timer = $Timer
|
||||
|
||||
func _ready():
|
||||
GameEvents.connect("indicate",Callable(self,"_on_indicate"))
|
||||
|
||||
func _on_indicate():
|
||||
show()
|
||||
timer.start()
|
||||
|
||||
func _on_Timer_timeout():
|
||||
hide()
|
Loading…
Add table
Add a link
Reference in a new issue