Mercurial > molko
diff librpg/rpg/message.h @ 174:6992085d47fd
ui: major theme overhaul, closes #2509 @1h
- The font does not contain a color anymore,
- Add a new color argument to font_render,
- Theme are stored `const` in UI elements to promise no modifications,
- Also make all <ui>_draw function to take a const widget too.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 22 Oct 2020 15:16:43 +0200 |
parents | e05a792f6910 |
children | 64f24b482722 |
line wrap: on
line diff
--- a/librpg/rpg/message.h Wed Oct 21 12:50:11 2020 +0200 +++ b/librpg/rpg/message.h Thu Oct 22 15:16:43 2020 +0200 @@ -134,7 +134,7 @@ unsigned int index; /*!< (+) Line selected */ enum message_flags flags; /*!< (+) Message flags */ enum message_state state; /*!< (-) Current state */ - struct theme *theme; /*!< (+&?) Theme to use. */ + const struct theme *theme; /*!< (+&?) Theme to use. */ unsigned int elapsed; /*!< (-) Time elapsed. */ double scale; /*!< (-) Current scale [0-1]. */ }; @@ -194,7 +194,7 @@ * \param msg the message */ void -message_draw(struct message *msg); +message_draw(const struct message *msg); /** * Start hiding the message.