+
Skip to content

TbyType.Choice and handling more than two choices #7

Open
@glitchroy

Description

@glitchroy

In theory, TbyType.Choice should handle more than two answer options fine. Currently, it is created with a fixed 3 line height.

var position/*:TbyPos*/ = tby_normal_get_placement_from_enum(tbPlacement, 3);

The line amount would need to be dynamically calculated, based on the height of the previous text line and the amount of choices.

This also raises the question about handling TbyType.Choices in general -- what should be an upper limit to choices? A big enough textbox could obscure the entire screen. Should choices be in the same window at all, or in a different one? This topic is open for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionFurther discussion is requestedenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载