-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ux improvements #117
Ux improvements #117
Conversation
# Conflicts: # agot-bg-game-server/src/messages/ServerMessage.ts
@@ -36,6 +41,10 @@ export default class ClashOfKingsGameState extends GameState<WesterosGameState, | |||
|
|||
onServerMessage(message: ServerMessage) { | |||
this.childGameState.onServerMessage(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be put in the else
of the condition after, like it is done in other GameState
classes.
@@ -207,3 +207,9 @@ interface ChangeValyrianSteelBladeUse { | |||
type: "change-valyrian-steel-blade-use"; | |||
used: boolean; | |||
} | |||
|
|||
interface NextTrack { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A slightly more descriptive name would be better, like BiddingNextTrack
.
@@ -196,6 +196,12 @@ export default class ResolveSingleMarchOrderComponent extends Component<GameStat | |||
return; | |||
} | |||
|
|||
if(this.plannedMoves.size == 0) { | |||
if(!confirm("Do you want to remove your march order?")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really not a fan of confirm
prompt but I guess we can keep them for the time being.
In a later PR, we can replace them with native prompts.
@@ -464,6 +464,16 @@ class GameLogListComponent extends Component<GameLogListComponentProps> { | |||
return <> | |||
<strong>Wildling strength</strong> reached <strong>{data.wildlingStrength}</strong>, triggering a <strong>Wildling attack</strong> | |||
</>; | |||
case "march-order-removed": | |||
house = this.game.houses.get(data.house); | |||
// A "null" for "attacked" means it was an attack against a neutral force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is not necessary, I think.
On top of the remarks I've made, please try to follow the conventions for commit messages by beginning with an upper-case. Once it's done, I'll merge! |
Provided a new PR #119 . |
fixed part of #89