account home in history

This commit is contained in:
Nordup 2024-11-25 03:25:14 +04:00
parent ca4cb615b0
commit a441b81986
3 changed files with 22 additions and 39 deletions

View file

@ -1,8 +1,8 @@
extends Resource
class_name History
var history: Array[String]
var index := -1
var history: Array[String] = [""]
var index := 0
func get_current() -> String:
@ -15,7 +15,7 @@ func can_forw() -> bool:
func can_back() -> bool:
return index > -1
return index > 0
func add(url: String) -> void: