Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
fix #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Oct 14, 2021
1 parent cfd23c8 commit b080943
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/nodesnim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ when defined(debug):
info("Compiled in debug mode.")


import nodesnim/thirdparty/sdl2 except Color
import
nodesnim/thirdparty/opengl,
nodesnim/thirdparty/sdl2,

nodesnim/window,
nodesnim/environment,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/core/font.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# author: Ethosa
## Provides TTF text rendering. Use SDL2_ttf.
import ../thirdparty/sdl2 except Color
import
../thirdparty/sdl2,
../thirdparty/sdl2/ttf,
../thirdparty/opengl,

Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodes/canvas.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
## Canvas is the root type of all 2D and Control nodes.
##
## Canvas used for drawing primitive geometry.
import ../thirdparty/sdl2 except Color
import
math,
../thirdparty/opengl,
../thirdparty/sdl2,
../thirdparty/sdl2/image,

../core/vector2,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodescontrol/button.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# author: Ethosa
## Handles mouse clicks.
import ../thirdparty/sdl2 except Color
import
../thirdparty/opengl,
../thirdparty/sdl2,

../core/vector2,
../core/rect2,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodescontrol/counter.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# author: Ethosa
## Number counter box.
import ../thirdparty/sdl2 except Color
import
../thirdparty/opengl,
../thirdparty/sdl2,

../core/vector2,
../core/rect2,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodescontrol/edittext.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# author: Ethosa
import ../thirdparty/sdl2 except Color
import
../thirdparty/opengl,
../thirdparty/sdl2,
../thirdparty/sdl2/ttf,

../core/font,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodescontrol/scroll.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# author: Ethosa
## It provides primitive scroll box.
import ../thirdparty/sdl2 except Color
import
../thirdparty/opengl,
../thirdparty/sdl2,

../core/vector2,
../core/rect2,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodescontrol/subwindow.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# author: Ethosa
## Extended version of SubWindow node.
import ../thirdparty/sdl2 except Color
import
../thirdparty/opengl,
../thirdparty/sdl2,

../core/vector2,
../core/rect2,
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/nodescontrol/texture_button.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# author: Ethosa
## It is the convenient alternative of the Button node.
import ../thirdparty/sdl2 except Color
import
../thirdparty/opengl,
../thirdparty/sdl2,

../core/vector2,
../core/rect2,
Expand Down
4 changes: 2 additions & 2 deletions src/nodesnim/nodescontrol/tooltip.nim
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ proc ToolTip*(name: string = "ToolTip",
result.background.setColor(Color("#444"))
result.background.setBorderColor(Color("#555"))
result.background.setBorderWidth(0.5)
result.background.setCornerRadius(8)
result.background.setCornerDetail(8)
result.background.setCornerRadius(4)
result.background.setCornerDetail(4)
result.background.enableShadow(true)
result.background.setShadowOffset(Vector2(0, 5))
result.mousemode = MOUSEMODE_IGNORE
Expand Down
2 changes: 1 addition & 1 deletion src/nodesnim/window.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# author: Ethosa
import thirdparty/sdl2 except Color
import
thirdparty/opengl,
thirdparty/opengl/glu,
thirdparty/sdl2,
thirdparty/sdl2/image,

core/color,
Expand Down

0 comments on commit b080943

Please sign in to comment.