[ui] reintroducing tooltip
This commit is contained in:
parent
c362751c23
commit
c7d5cf113e
|
@ -318,6 +318,14 @@ int main()
|
|||
{
|
||||
ui_style_next(&(ui_style){.fontSize = 26}, UI_STYLE_FONT_SIZE);
|
||||
ui_label("Milepost UI Demo");
|
||||
|
||||
if(ui_box_sig(ui_box_top()).hovering)
|
||||
{
|
||||
ui_tooltip("tooltip")
|
||||
{
|
||||
ui_label("That is a tooltip!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ui_style_next(&(ui_style){.size.width = {UI_SIZE_PARENT, 1},
|
||||
|
|
3
src/ui.c
3
src/ui.c
|
@ -1766,7 +1766,7 @@ void ui_panel_end(void)
|
|||
//------------------------------------------------------------------------------
|
||||
// tooltips
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
|
||||
ui_sig ui_tooltip_begin(const char* name)
|
||||
{
|
||||
ui_context* ui = ui_get_context();
|
||||
|
@ -1797,7 +1797,6 @@ void ui_tooltip_end(void)
|
|||
ui_box_pop(); // tooltip
|
||||
ui_box_pop(); // ui->overlay
|
||||
}
|
||||
*/
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Menus
|
||||
|
|
Loading…
Reference in New Issue