New Scripting Idea

not the owner of the paketti tool, but here’s an abstract chicken :wink: (to be run from the testpad.lua file);

-- Chicken Drawing in Renoise GUI
-- This script creates a GUI and draws a cartoon-style chicken using basic shapes.

local vb = renoise.ViewBuilder()

-- Function to draw the chicken using shapes
local function draw_chicken()
  return vb:row {
    margin = 10,
    vb:column {
      vb:row {
        -- Chicken's comb
        vb:column {
          vb:space { height = 10 },
          vb:row {
            vb:space { width = 15 },
            vb:button { width = 10, height = 10, color = {255, 0, 0}, tooltip = "Chicken Comb" },
            vb:button { width = 10, height = 10, color = {255, 0, 0}, tooltip = "Chicken Comb" },
            vb:button { width = 10, height = 10, color = {255, 0, 0}, tooltip = "Chicken Comb" },
          },
        },
      },
      vb:row {
        -- Chicken's face
        vb:space { width = 10 },
        vb:column {
          vb:row {
            vb:button { width = 40, height = 40, color = {255, 255, 255}, tooltip = "Chicken Face" },
          },
          vb:row {
            -- Eyes
            vb:space { width = 5 },
            vb:button { width = 10, height = 10, color = {0, 0, 0}, tooltip = "Chicken Eye" },
            vb:space { width = 10 },
            vb:button { width = 10, height = 10, color = {0, 0, 0}, tooltip = "Chicken Eye" },
          },
          vb:row {
            -- Beak
            vb:space { width = 15 },
            vb:button { width = 10, height = 10, color = {255, 165, 0}, tooltip = "Chicken Beak" },
          },
        },
      },
      vb:row {
        -- Chicken's body
        vb:space { width = 30 },
        vb:button { width = 80, height = 40, color = {255, 255, 255}, tooltip = "Chicken Body" },
      },
      vb:row {
        -- Chicken's legs
        vb:space { width = 25 },
        vb:button { width = 10, height = 20, color = {255, 165, 0}, tooltip = "Chicken Leg" },
        vb:space { width = 30 },
        vb:button { width = 10, height = 20, color = {255, 165, 0}, tooltip = "Chicken Leg" },
      },
    },
  }
end

-- Function to show the GUI
local function show_chicken_gui()
  local dialog_content = vb:column {
    draw_chicken(),
  }

  renoise.app():show_custom_dialog("Chicken GUI", dialog_content)
end

-- Invoke the GUI directly
show_chicken_gui()

2 Likes

hahahaha, it was a joke and i didn’t think anyone would do it but that is really great!

:yeah: :yeah: :yeah:

@esaruoho

merge the chicken into paketti!!!

1 Like

lol, please don’t!

3 Likes