Ver código fonte

fix 2d nodes

Ethosa 4 anos atrás
pai
commit
4139587c8c
3 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      README.md
  2. 1 0
      src/nodesnim/nodes2d/node2d.nim
  3. 0 1
      tests/test31.nim

+ 1 - 1
README.md

@@ -91,7 +91,7 @@ This section contains links to documentation for all nodes.
 For use debug mode you should compile with `-d:debug` or `--define:debug`, e.g. `nim c -r -d:debug main.nim`.
 
 ## Export
-Use the [`Nim compiler user guide`](https://nim-lang.org/docs/nimc.html#dynliboverride) for export to the other OS.
+Use the [`Nim compiler user guide`](https://nim-lang.org/docs/nimc.html#dynliboverride) for export to the other OS.  
 [Static linking SDL2](https://github.com/nim-lang/sdl2#static-linking-sdl2) (or compile with `-d:static_sdl2` -> tested on Windows)
 
 -   CrossPlatform export for Windows (tested on Windows 7 x64 and Windows 10 x64)

+ 1 - 0
src/nodesnim/nodes2d/node2d.nim

@@ -28,6 +28,7 @@ template node2dpattern*: untyped =
   result.centered = false
   result.timed_position = Vector2()
   result.rect_size = Vector2()
+  result.rect_min_size = Vector2()
   result.position = Vector2()
   result.global_position = Vector2()
   result.z_index = 0f

+ 0 - 1
tests/test31.nim

@@ -5,7 +5,6 @@ import nodesnim
 
 Window("hello world")
 
-
 var
   main = Scene("Main")