-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6: Update server creation ui to better control initial budget of eac…
…h team and whatever each team will auto generate new bots along with player, fix the health heal not reflect immeidately in UI, fix issue where after server finish a game, cannot create another server game
- Loading branch information
Danil Ko
committed
Mar 13, 2021
1 parent
db9185a
commit a11b3b9
Showing
14 changed files
with
330 additions
and
35 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
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 @@ | ||
using Godot; | ||
using System; | ||
|
||
public class TeamMapAISetting : Resource | ||
{ | ||
public Team.TeamCode TeamCode {get;set;} | ||
public int Budget {get; set;} | ||
public bool AutoSpawnMember {get; set;} | ||
} |
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
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,42 @@ | ||
using Godot; | ||
using System; | ||
|
||
public class TeamSettingPanel : Panel | ||
{ | ||
private SpinBox _spinBoxBudget; | ||
private CheckBox _checkboxAutoSpawnMember; | ||
|
||
private Team.TeamCode _teamCode; | ||
|
||
public override void _Ready() | ||
{ | ||
_spinBoxBudget = (SpinBox)GetNode("SpinBoxTeamBudget"); | ||
_checkboxAutoSpawnMember = (CheckBox)GetNode("CheckBoxAutoSapwnMembers"); | ||
} | ||
|
||
public void Initialize(Team.TeamCode teamCode) | ||
{ | ||
_teamCode = teamCode; | ||
|
||
TextureRect textureRect = (TextureRect)GetNode("TextrectTeam"); | ||
textureRect.Modulate = Team.TeamColor[(int)_teamCode]; | ||
|
||
Label labelTeamName = (Label)GetNode("LabelTeamName"); | ||
labelTeamName.Text = "" + _teamCode; | ||
} | ||
|
||
public Team.TeamCode GetTeamCode() | ||
{ | ||
return _teamCode; | ||
} | ||
|
||
public int GetTeamBudget() | ||
{ | ||
return (int)_spinBoxBudget.Value; | ||
} | ||
|
||
public bool GetTeamAutoSpawnMember() | ||
{ | ||
return _checkboxAutoSpawnMember.Pressed; | ||
} | ||
} |
Oops, something went wrong.