Baz Tutorials: Action Bar

Baz Tutorials: Action Bar

41 Downloads

Baz Tutorials: Action Bar

Baz Tutorials: Action Bar is an instructional World of Warcraft addon designed to teach players how to create custom action bars with 12 configurable buttons. This addon provides a practical example for aspiring addon developers, guiding you through the process step-by-step.

Features

  • Custom Action Bar: Create a custom action bar with 12 fully functional buttons.
  • Drag-and-Drop Functionality: Buttons support dragging, dropping, and clicking abilities just like the default action bar.
  • Detailed Comments: The code includes comprehensive comments explaining each step of the process.
  • Movable Action Bar: Learn how to make the action bar frame draggable for easy repositioning.

Step-by-Step Guide

  1. Create a Parent Frame:

    • Learn to create a frame that acts as the parent container for the action bar.
  2. SetupButton Function:

    • Understand how to configure each button, including size, position, and attributes.
    • Learn to set various textures like icon, normal texture, hotkey text, count text, border, highlight texture, and pushed texture.
  3. Loop to Create Buttons:

    • See how to use a loop to create 12 action buttons.
  4. MakeMovable Function:

    • Learn to make the action bar frame draggable by enabling mouse interaction and setting up drag scripts.

Learning Resource

The Lua file is heavily commented to help you understand each part of the process and learn how to make your own addons.