Skip to content

Commit

Permalink
Fixes #489
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Nov 6, 2024
1 parent b9418a4 commit d57e49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/manuals/gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Materials
![get_set_material](images/gui/get_set_material.png)

```lua
go.property("myeffect", resource.font("/assets/myeffect.material"))
go.property("myeffect", resource.material("/assets/myeffect.material"))

function init(self)
-- get the material file currently assigned to the material with id 'effect'
Expand All @@ -109,7 +109,7 @@ Textures
![get_set_texture](images/gui/get_set_texture.png)

```lua
go.property("mytheme", resource.font("/assets/mytheme.atlas"))
go.property("mytheme", resource.atlas("/assets/mytheme.atlas"))

function init(self)
-- get the texture file currently assigned to the texture with id 'theme'
Expand Down

0 comments on commit d57e49b

Please sign in to comment.