kolibrios-gitea/data/common/media/grafx2/scripts/_tst_Settings.lua
Kirill Lipatov (Leency) e401a92cbf upload and add to iso m2view, grafx2, fix fNav
git-svn-id: svn://kolibrios.org@6581 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-10-07 15:11:52 +00:00

34 lines
696 B
Lua

-- Test LUA inputbox
-- this script tests the inputbox
w, h = getbrushsize()
--[[
messagebox(
"Forecolor: " .. getforecolor() .. "\n" ..
"Backcolor: " .. getbackcolor() .. "\n" ..
"Transparent color: " .. gettranscolor() .. "\n" ..
"Brush dimensions: " .. w .. "x" .. h
)
]]
ok, w, h = inputbox("Modify brush",
"RGB", 1, 0, 1, -1,
"HSV", 0, 0, 1, -1,
"HSL", 0, 0, 1, -1,
"Width", w, -900.0,900.0, 3,
"Height", h, -900.0,900.0, 4,
"X Flip", 0, 0, 1, 0,
"Y Flip", 0, 0, 1, 0,
"Degrees",1, 0, 1, -2,
"Radians",0, 0, 1, -2
);
if ok == true then
messagebox(
"w: " .. w .. "\n" ..
"h: " .. h .. "\n"
)
end