Skip to content
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

Closed
wants to merge 6 commits into from
Closed

Conversation

gereon77
Copy link
Collaborator

fixed part of #89

@@ -36,6 +41,10 @@ export default class ClashOfKingsGameState extends GameState<WesterosGameState,

onServerMessage(message: ServerMessage) {
this.childGameState.onServerMessage(message);
Copy link
Owner

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 {
Copy link
Owner

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?")) {
Copy link
Owner

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
Copy link
Owner

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.

@Longwelwind
Copy link
Owner

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!

@gereon77
Copy link
Collaborator Author

Provided a new PR #119 .

@gereon77 gereon77 closed this Jan 16, 2020
@gereon77 gereon77 deleted the ux-improvements branch January 16, 2020 09:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants