mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Added pause menu, refreshed solo lobby menu, added settings for storing player's color and team, misc.
This commit is contained in:
@@ -12,6 +12,8 @@ class IMICRTS
|
||||
def self.save_defaults
|
||||
hash = {
|
||||
player_name: "Rookie",
|
||||
player_color: :orange,
|
||||
player_team: 1,
|
||||
player_default_map_spawn: 0,
|
||||
default_map: "test_map",
|
||||
|
||||
@@ -43,7 +45,7 @@ class IMICRTS
|
||||
end
|
||||
|
||||
def self.save!
|
||||
File.open(Setting.file_path, "w") {|f| f.write(JSON.dump(@store))}
|
||||
File.open(Setting.file_path, "w") { |f| f.write(JSON.dump(@store)) }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user