This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #386 from Jeremi360/rpg-ext-support
add Rakugo.can_show_in_game_gui value
- Loading branch information
Showing
15 changed files
with
330 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
extends Object | ||
|
||
func invoke() -> bool: | ||
var r = Rakugo | ||
var save_name = "global_history" | ||
r.loading_in_progress = true | ||
|
||
var save_folder = r.save_folder | ||
var save_folder_path = "user://".plus_file(save_folder) | ||
|
||
if r.test_save: | ||
save_folder_path = "res://".plus_file(save_folder) | ||
|
||
var save_path = save_folder_path.plus_file(save_name) | ||
|
||
if r.test_save: | ||
save_path += ".tres" | ||
|
||
else: | ||
save_path += ".res" | ||
|
||
r.debug(["load global history from: %s" %save_name]) | ||
|
||
var file := File.new() | ||
var save_hist: = HistorySave.new() | ||
|
||
if not file.file_exists(save_path): | ||
push_warning("global history file %s doesn't exist" %save_path) | ||
r.loading_in_progress = false | ||
return false | ||
|
||
save_hist = load(save_path) | ||
r.global_history = save_hist.history_data | ||
r.loading_in_progress = false | ||
|
||
return true | ||
extends Object | ||
|
||
func invoke() -> bool: | ||
var r = Rakugo | ||
var save_name = "global_history" | ||
r.loading_in_progress = true | ||
|
||
var save_folder = r.save_folder | ||
var save_folder_path = "user://".plus_file(save_folder) | ||
|
||
if r.test_save: | ||
save_folder_path = "res://".plus_file(save_folder) | ||
|
||
var save_path = save_folder_path.plus_file(save_name) | ||
|
||
if r.test_save: | ||
save_path += ".tres" | ||
|
||
else: | ||
save_path += ".res" | ||
|
||
r.debug(["load global history from: %s" %save_name]) | ||
|
||
var file := File.new() | ||
var save_hist: = HistorySave.new() | ||
|
||
if not file.file_exists(save_path): | ||
push_warning("global history file %s doesn't exist" %save_path) | ||
r.loading_in_progress = false | ||
return false | ||
|
||
save_hist = load(save_path) | ||
r.global_history = save_hist.history_data | ||
|
||
r.loading_in_progress = false | ||
|
||
return true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tool | ||
extends AcceptDialog | ||
|
||
func _on_WebSiteButton_pressed(): | ||
OS.shell_open("https://rakugoteam.github.io/") | ||
|
||
|
||
func _on_BugButton_pressed(): | ||
OS.shell_open("https://github.com/rakugoteam/Rakugo/labels/bug") |
Oops, something went wrong.