error("\069\120\097\109\112\108\101 \110\111\116 \105\109\112\108\101\109\101\110\116\101\100\033")local Q=require("\114\097\121\108\105\098")local z=require("\108\121\110\120")local p=require("\108\121\110\120\046\114\097\121\108\117\097\095\108\121\110\120")local U=z.menu({z.text("\084\101\115\116 \076\121\110\120 \109\101\110\117 \105\110 \082\097\121\108\105\098",{selectable=false});z.text("",{selectable=false}),z.text("\076\111\110\103 \108\105\102\101 \116\111 \076\121\110\120 \033"),z.text("\116\104\101 \098\101\115\116 \085\073 \108\105\098\114\097\114\121 \101\118\101\114 \033");z.text("\119\104\105\099\104 \119\111\114\107\115 \101\118\101\114\121\119\104\101\114\101 \033"),z.text("",{selectable=false});z.text("\064\084\083\110\097\107\101\052\049")},{x=0;y=0;w=500;h=500;default_height=24;current=3;funcs=p})Q.SetConfigFlags(Q.FLAG_VSYNC_HINT)Q.InitWindow(800,450,"\114\097\121\108\105\098 \091\108\117\097\093 \101\120\097\109\112\108\101 - \108\121\110\120 \109\101\110\117")while not Q.WindowShouldClose()do Q.BeginDrawing()Q.ClearBackground(Q.BLACK)local z=Q.GetMousePosition()U:input_mouse(z.x,z.y,0)U:update(Q.GetFrameTime())U:draw()Q.EndDrawing()end Q.CloseWindow()
error("Example not implemented!")
local rl = require("raylib")
local lynx = require("lynx")
local raylua_funcs = require("lynx.raylua_lynx")

local menu = lynx.menu({
  lynx.text("Test Lynx menu in Raylib", { selectable = false }),
  lynx.text("", { selectable = false }),
  lynx.text("Long life to Lynx !"),
  lynx.text("the best UI library ever !"),
  lynx.text("which works everywhere !"),
  lynx.text("", { selectable = false }),
  lynx.text("@TSnake41"),
}, {
  x = 0,
  y = 0,
  w = 500,
  h = 500,
  default_height = 24,
  current = 3,
  funcs = raylua_funcs,
})

rl.SetConfigFlags(rl.FLAG_VSYNC_HINT)
rl.InitWindow(800, 450, "raylib [lua] example - lynx menu")

while not rl.WindowShouldClose() do
  rl.BeginDrawing()
  rl.ClearBackground(rl.BLACK)
  local pos = rl.GetMousePosition()
  menu:input_mouse(pos.x, pos.y, 0)

  menu:update(rl.GetFrameTime())
  menu:draw()

  rl.EndDrawing()
end

rl.CloseWindow()
