summaryrefslogtreecommitdiff
path: root/src/gui/guiTable.h
diff options
context:
space:
mode:
authorv-rob <robinsonvincent89@gmail.com>2020-08-11 11:07:17 -0700
committerGitHub <noreply@github.com>2020-08-11 20:07:17 +0200
commitcd0e213a3640e980e15735f97dd874754f0dc679 (patch)
tree7dc5e132a883edc4631233612f8855f5267da7e2 /src/gui/guiTable.h
parentabfea69e5f68c0f2c946bfcd4444f8cb32e781cf (diff)
downloadminetest-cd0e213a3640e980e15735f97dd874754f0dc679.tar.gz
minetest-cd0e213a3640e980e15735f97dd874754f0dc679.tar.bz2
minetest-cd0e213a3640e980e15735f97dd874754f0dc679.zip
Add font styling options to tables and textlists (#10203)
Diffstat (limited to 'src/gui/guiTable.h')
-rw-r--r--src/gui/guiTable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/guiTable.h b/src/gui/guiTable.h
index 11093ea72..76a0e94d0 100644
--- a/src/gui/guiTable.h
+++ b/src/gui/guiTable.h
@@ -123,6 +123,12 @@ public:
// Autoscroll to make the selected row fully visible
void setSelected(s32 index);
+ //! Sets another skin independent font. If this is set to zero, the button uses the font of the skin.
+ virtual void setOverrideFont(gui::IGUIFont *font = nullptr);
+
+ //! Gets the override font (if any)
+ virtual gui::IGUIFont *getOverrideFont() const;
+
/* Get selection, scroll position and opened (sub)trees */
DynamicData getDynamicData() const;