From 21f0a50f4dba4cb66efa858d89a6920550a8e186 Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Sun, 10 May 2020 13:42:01 +0200 Subject: [PATCH] Remove lua_api_explorer example. --- examples/lua_api_explorer.lua | 39 ----------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 examples/lua_api_explorer.lua diff --git a/examples/lua_api_explorer.lua b/examples/lua_api_explorer.lua deleted file mode 100644 index a20e46d..0000000 --- a/examples/lua_api_explorer.lua +++ /dev/null @@ -1,39 +0,0 @@ -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()