import{_ as a,a as e,b as s,ag as t}from"./chunks/framework.BcrMLAmg.js";const u=JSON.parse('{"title":"Frequently Asked Questions","description":"","frontmatter":{},"headers":[],"relativePath":"guides/faq.md","filePath":"guides/faq.md","lastUpdated":1740313499000}'),l={name:"guides/faq.md"};function n(h,i,o,r,d,p){return s(),e("div",null,i[0]||(i[0]=[t(`

Frequently Asked Questions

General

What is Basalt?

Basalt is a UI framework for CC:Tweaked that helps you create user interfaces easily and efficiently. It provides pre-built components, event handling, and advanced features like animations and themes.

Why should I use Basalt instead of direct terminal manipulation?

Basalt handles many complex aspects automatically:

Installation

How do I install Basalt?

lua
wget run https://raw.githubusercontent.com/Pyroxenium/Basalt2/main/install.lua

Can I customize my installation?

Yes! The installer allows you to:

Common Issues

Why isn't my UI updating?

Remember to call basalt.run() at the end of your program. Without it, your UI won't start.

Why are my elements not visible?

Check:

  1. Element positions are within parent bounds
  2. Parent container is large enough
  3. Element's visible property is true
  4. Z-index conflicts with other elements

How do I handle screen resizes?

Use dynamic positioning with strings, or use functions:

lua
element:setPosition("{parent.width - 5}", 5)  -- 5 from right edge
element:setSize("{parent.width - 10}", 5)     -- 5 padding on each side
element:setPosition(function(self)            -- Another example, but as function call
    return self:getParent() - 5
end, 5)

Development

How do I add custom plugins?

Create a new plugin in the plugins directory. See pluginExample for a example on how to create plugins

Where can I find more examples?

How do I contribute?

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request
  4. Join our Discord for discussion

Performance

How can I optimize my Basalt application?

Basalt does already a lot of optimization:

Additional tips for optimization:

`,35)]))}const c=a(l,[["render",n]]);export{u as __pageData,c as default};