reconstruct ccTUI, add Button component

This commit is contained in:
2025-10-10 21:43:24 +08:00
parent 61baedb606
commit 8e95fe8ad1
14 changed files with 1292 additions and 1162 deletions

30
src/lib/ccTUI/index.ts Normal file
View File

@@ -0,0 +1,30 @@
/**
* ComputerCraft TUI (Terminal User Interface) Framework
* Based on Qt signal/slot principles for event handling
* Provides input/output, option selection and keyboard event handling
*/
import { Signal } from "./signal";
import { UIObject } from "./UIObject";
import { UIComponent } from "./UIComponent";
import { TextLabel } from "./TextLabel";
import { InputField } from "./InputField";
import { OptionSelector } from "./OptionSelector";
import { TabWidget } from "./TabWidget";
import { UIWindow } from "./UIWindow";
import { TUIApplication } from "./TUIApplication";
import { Button } from "./Button";
// Export the main classes for use in other modules
export {
Signal,
UIObject,
UIComponent,
TextLabel,
InputField,
OptionSelector,
TabWidget,
UIWindow,
TUIApplication,
Button,
};