Skip to content

Commit ce165da

Browse files
authored
Merge pull request #52 from orange-games/dev
Dev
2 parents c12f3fc + 6673494 commit ce165da

File tree

9 files changed

+2017
-19
lines changed

9 files changed

+2017
-19
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ If set to true, pressing enter will end focus on the field (default is true).
107107
- **padding**: number (0 by default) The padding in pixels around all 4 sides of the text input area.
108108
- **borderWidth**: number (1 by default) Size of the border
109109
- **borderColor**: string (#000 by default) Color of the border
110+
- **forceCase**: ForceCase (none by default) If we should force a certain case (either upper or lower)
110111
- **borderRadius**: number (0 by default) Create rounded corners by setting a border radius
111112
- **placeHolder**: string ('' by default) Text that will be shown before the user input's anything
112113
- **placeHolderColor**: string (#bfbebd by default) The color of the placeholder text

build/phaser-input.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ declare module PhaserInput {
3232
}
3333
}
3434
declare module PhaserInput {
35+
enum ForceCase {
36+
none = 0,
37+
lower = 1,
38+
upper = 2,
39+
}
3540
interface InputOptions extends Phaser.PhaserTextStyle {
3641
x?: number;
3742
y?: number;
@@ -46,6 +51,7 @@ declare module PhaserInput {
4651
cursorColor?: string;
4752
placeHolderColor?: string;
4853
type?: InputType;
54+
forceCase?: ForceCase;
4955
min?: string;
5056
max?: string;
5157
textAlign?: string;
@@ -90,6 +96,7 @@ declare module PhaserInput {
9096
destroy(destroyChildren?: boolean): void;
9197
resetText(): void;
9298
setText(text?: string): void;
99+
private getFormattedText(text);
93100
}
94101
}
95102
declare module PhaserInput {

build/phaser-input.js

Lines changed: 32 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)