Skip to content

Commit

Permalink
Merge pull request #52 from orange-games/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AleBles committed Jun 2, 2017
2 parents c12f3fc + 6673494 commit ce165da
Show file tree
Hide file tree
Showing 9 changed files with 2,017 additions and 19 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -107,6 +107,7 @@ If set to true, pressing enter will end focus on the field (default is true).
- **padding**: number (0 by default) The padding in pixels around all 4 sides of the text input area.
- **borderWidth**: number (1 by default) Size of the border
- **borderColor**: string (#000 by default) Color of the border
- **forceCase**: ForceCase (none by default) If we should force a certain case (either upper or lower)
- **borderRadius**: number (0 by default) Create rounded corners by setting a border radius
- **placeHolder**: string ('' by default) Text that will be shown before the user input's anything
- **placeHolderColor**: string (#bfbebd by default) The color of the placeholder text
Expand Down
7 changes: 7 additions & 0 deletions build/phaser-input.d.ts
Expand Up @@ -32,6 +32,11 @@ declare module PhaserInput {
}
}
declare module PhaserInput {
enum ForceCase {
none = 0,
lower = 1,
upper = 2,
}
interface InputOptions extends Phaser.PhaserTextStyle {
x?: number;
y?: number;
Expand All @@ -46,6 +51,7 @@ declare module PhaserInput {
cursorColor?: string;
placeHolderColor?: string;
type?: InputType;
forceCase?: ForceCase;
min?: string;
max?: string;
textAlign?: string;
Expand Down Expand Up @@ -90,6 +96,7 @@ declare module PhaserInput {
destroy(destroyChildren?: boolean): void;
resetText(): void;
setText(text?: string): void;
private getFormattedText(text);
}
}
declare module PhaserInput {
Expand Down
41 changes: 32 additions & 9 deletions build/phaser-input.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/phaser-input.js.map

Large diffs are not rendered by default.

0 comments on commit ce165da

Please sign in to comment.