Skip to content

Commit

Permalink
Merge pull request #20 from decentraland-scenes/fix-button-texts
Browse files Browse the repository at this point in the history
bump
  • Loading branch information
nearnshaw authored Jul 2, 2024
2 parents 920e15f + 4d40c46 commit 7967b4c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,22 +599,22 @@ The player advances through each entry by clicking the mouse button. Once the la
The script must adhere to the following schema:

```ts
class Dialog {
text: string
windowHeight?: 'auto' | number
name?: string
fontSize?: number
offsetX?: number
offsetY?: number
typeSpeed?: number
isEndOfDialog?: boolean
triggeredByNext?: () => void
portrait?: ImageData
image?: ImageData
isQuestion?:boolean
buttons?: ButtonData[]
audio?: string
skipable?: boolean
class Dialog {
text: string
windowHeight?: 'auto' | number
name?: string
fontSize?: number
offsetX?: number
offsetY?: number
typeSpeed?: number
isEndOfDialog?: boolean
triggeredByNext?: () => void
portrait?: ImageData
image?: ImageData
isQuestion?: boolean
buttons?: ButtonData[]
audio?: string
skipable?: boolean
}
```

Expand Down
20 changes: 10 additions & 10 deletions src/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
}}
uiBackground={{
textureMode: 'stretch',
Expand Down Expand Up @@ -353,7 +353,7 @@ export const NpcUtilsUi = () => {
>
<UiEntity
uiTransform={{
width: 'auto',
width: getScaledSize(25),
height: getScaledSize(25),
margin: { right: getScaledSize(5) },
positionType: 'absolute'
Expand All @@ -380,7 +380,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
margin: { right: '5%' },
}}
uiBackground={{
Expand All @@ -402,7 +402,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
}}
uiBackground={{
textureMode: 'stretch',
Expand Down Expand Up @@ -433,7 +433,7 @@ export const NpcUtilsUi = () => {
>
<UiEntity
uiTransform={{
width: 'auto',
width: getScaledSize(25),
height: getScaledSize(25),
margin: { right: getScaledSize(5) },
positionType: 'absolute',
Expand All @@ -460,7 +460,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
}}
uiBackground={{
textureMode: 'stretch',
Expand Down Expand Up @@ -493,7 +493,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
}}
uiBackground={{
textureMode: 'stretch',
Expand Down Expand Up @@ -534,7 +534,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
margin: { right: '5%' },
}}
uiBackground={{
Expand All @@ -556,7 +556,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
}}
uiBackground={{
textureMode: 'stretch',
Expand Down Expand Up @@ -597,7 +597,7 @@ export const NpcUtilsUi = () => {
<UiEntity
uiTransform={{
height: 'auto',
width: 'auto',
width: getScaledSize(12),
}}
uiBackground={{
textureMode: 'stretch',
Expand Down

0 comments on commit 7967b4c

Please sign in to comment.