Buttons in labels #953
Replies: 3 comments 1 reply
-
How are you displaying the article? Is it rendering the HTML to a texture, or are you parsing the HTML into individual I have a project using |
Beta Was this translation helpful? Give feedback.
-
Well I am parsing the html to text and links and then converting them into egui objects and then displaying |
Beta Was this translation helpful? Give feedback.
-
ui.horizontal_wrapped(|ui| {
ui.spacing_mut().item_spacing.x = 0.0;
ui.label("Mix text and ");
ui.hyperlink_to("hyperlinks", "https://www.github.com/emilk/egui");
ui.label(" or ");
if ui.button("buttons").clicked() {
…
}
}); |
Beta Was this translation helpful? Give feedback.
-
I am making the wikipedia game using egui. I am displaying the article, but I want the links to be displayed a buttons, which all call a method with their text, so I can render that page. I dont want all the text to be a label. How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions