amount is 0 to 1
| 1660 | |
| 1661 | // amount is 0 to 1 |
| 1662 | void UpdateInitMessage(float amount) { |
| 1663 | if (Init_in_editor) |
| 1664 | return; |
| 1665 | InitMessage(Init_messagebar_text, (amount * Init_messagebar_portion) + Init_messagebar_offset); |
| 1666 | /* |
| 1667 | mprintf(0, "amt=%.2f, portion=%.2f offs=%.2f, prog=%.2f\n", |
| 1668 | amount, |
| 1669 | Init_messagebar_portion, |
| 1670 | Init_messagebar_offset, |
| 1671 | (amount*Init_messagebar_portion)+Init_messagebar_offset); |
| 1672 | */ |
| 1673 | } |
| 1674 | |
| 1675 | void InitMessage(const char *c, float progress) { |
| 1676 | int x = Game_window_w / 2 - Title_bitmap.pw / 2; |
no test coverage detected