Skip to content

Commit d7a4ca5

Browse files
Create getConfigValue.md
1 parent c980db9 commit d7a4ca5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## getConfigValue
2+
Gets the configure's value.
3+
``` sig
4+
getConfigValue(null, null);
5+
```
6+
7+
## Parameters
8+
**key:** the configure's id
9+
**defl:** the configure's value
10+
11+
## Example
12+
Get the screen's width and height value.
13+
``` ts
14+
const width = control.getConfigValue(DAL.CFG_ARCADE_SCREEN_WIDTH, 160);
15+
const height = control.getConfigValue(DAL.CFG_ARCADE_SCREEN_HEIGHT, 120);
16+
```

0 commit comments

Comments
 (0)