Skip to content

Refactor GUI control logic into modular components #5

Description

@a740g

Currently, the project handles all GUI control state management and rendering within a single monolithic file: InForm.ui. This design leads to duplicated control logic across different sections of the file, making the codebase harder to maintain, debug, and extend.

To improve modularity and maintainability, we should refactor the control logic into separate files, each dedicated to a specific control type. The InForm.ui file will remain, but its role will be limited to housing generic logic that doesn't belong to any specific control and to including headers or modules for individual controls.

For example:

InForm.ui
   ├── TextBox.bm
   ├── ListBox.bm
   ├── Button.bm
   └── ...

Each .bm file will encapsulate the logic and rendering for its respective control, reducing duplication and improving clarity.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions