Skip to content

UI System #31

@CrosRoad95

Description

@CrosRoad95

Based on: https://hytalemodding.dev/en/docs/guides/plugin/ui

General idea based on use case:

User have example ui:

Group {
  TextField #MyInput {
    Style: $Common.@DefaultInputFieldStyle;
    Background: $Common.@InputBoxBackground;
    Anchor: (Top: 10, Width: 200, Height: 50);
  }
}

He creates in resources folder myUi.ui, once created he get full intellisense support and error checking using c# capabilities to analyze files.
When file is correct source generator will create approperiate classes to help you use this ui.

player.getPageManager().openCustomPage(ref, store, MyUI(playerRef)); // This "MyUi" class would be automatically generated by source generator based on file content above

Solution should also support option to create new ui at runtime and option to create gui using some form of UiBuilder class

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: 🟡 MediumModerate complexity - 1-2 weeks of workPriority: ⚠️ MediumImportant but not blocking - work on after high priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📝 To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions