Simplify and correct cursor behavior+get char at cursor

This commit is contained in:
bloeys
2022-03-13 20:21:23 +04:00
parent 02b5f94ee1
commit d84ca2aebb
4 changed files with 61 additions and 28 deletions

View File

@ -6,7 +6,10 @@ var (
FontSize float32 = 16
TextSelectionColor imgui.Vec4 = imgui.Vec4{X: 84 / 255.0, Y: 153 / 255.0, Z: 199 / 255.0, W: 0.4}
EditorBgColor imgui.Vec4 = imgui.Vec4{X: 0.1, Y: 0.1, Z: 0.1, W: 1}
TabSize int = 4
ScrollSpeed float32 = 4
CursorWidthFactor float32 = 0.15
//NOTE: Imgui hardcodes tab size to 4 in '#define IM_TABSIZE 4'
TabSize int = 4
ScrollSpeed float32 = 4
CursorWidthFactor float32 = 0.15
CursorColor imgui.Vec4 = imgui.Vec4{X: 1, Y: 1, Z: 1, W: 1}
)