Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Pad HUD health with 0 | 267304751e17901c276108d8899d096e2094cb2a | mse | 2021-09-13 11:02:57 |
Housekeeping | 6ff79e3a21829e267e866a8472777e180d337ff4 | mse | 2021-09-13 07:33:00 |
Add CSL comments | 7a818e8b57cb38c9bfef922e66bd6f735b4962e4 | mse | 2021-09-12 09:26:07 |
Add Confectioner Scripting Language (CSL) & change array separator to ; | 8d980bfac5d649574f749b7c04a19af766f71091 | mse | 2021-09-11 12:31:58 |
Fix console /set bug | 7c45e27e7f40472bea317b0316e4367135b49704 | mse | 2021-09-11 01:32:11 |
Scriptable lines@, ids@, bugfix | 9f606fd2a793fd76a9d1b9e186434d231b973085 | mse | 2021-09-10 14:43:50 |
Add array scripting (@ operator, ARRLEN <array>) | 3f098b3e0a04922c2c7a981b232efd8d08a8d9a0 | mse | 2021-09-10 14:02:39 |
Optimize script runtime | a298b01c9b77192b7ed8aba3832a8ab51c9d389a | mse | 2021-09-09 06:57:49 |
Scriptable bg$, fg$, caption$ | 0ad08aa3887118d2376f4fa7f8b7c66e0f164c73 | mse | 2021-09-06 11:04:38 |
Animation command: ANIM <loop|play> <bg|fg> <fps> <directory> | 6066e2cae1dc29043902d46549f443c7b683fd88 | mse | 2021-09-06 06:42:13 |
Switch to C++17 | 489987b1b2749f37e0ac76594308635affbd24f2 | mse | 2021-09-05 10:51:02 |
Fix stats synchronization bug | 3b6195c3321a6f10af43839cc00d24f301eddb3e | mse | 2021-09-05 04:45:58 |
Add top-level command: STRLEN, scriptable player name$ | ec7a623cdc98b9832f35f0beb3e45179e6094436 | mse | 2021-09-05 03:17:47 |
Start work on animation system | d2aafd6f46c719342054e3f256f972f4917f2231 | mse | 2021-09-05 02:41:28 |
Add string scripting with $ operator | 20034a2b658ee8ad4f2082c44301c231b0323fc7 | mse | 2021-09-03 10:20:55 |
Enhance console /set command to support operators | 61032844fcb833f04e2f6d1e123f8f0f89333107 | mse | 2021-09-02 11:06:00 |
Add scriptable bribing & remove hard-coded karma increment | 41b4d79da6331b4b1ffd96f36ae1b032a869b482 | mse | 2021-08-31 17:51:29 |
Add floor operator (_) | 819304b561d474e962afa7397ef68ffae83e8649 | mse | 2021-08-31 13:49:57 |
Switch inventories and stats to floating-point | c6e4142e664648ca8f4aa913b48526093c985987 | mse | 2021-08-31 13:35:20 |
Switch scripting to floating-point & code comments | eb067496f4edb4420c05a09dc034ad0a25ad1e56 | mse | 2021-08-31 11:06:01 |
File | Lines added | Lines deleted |
---|---|---|
confec.cpp | 5 | 2 |
File confec.cpp changed (mode: 100644) (index 551058e..ec16939) | |||
... | ... | void vnDraw( double sw, double sh ){ | |
2237 | 2237 | std::string stats = ""; | std::string stats = ""; |
2238 | 2238 | // Display stats only if health > 0 and settings menu is not open. | // Display stats only if health > 0 and settings menu is not open. |
2239 | 2239 | if( health > 0 && !settings_display ){ | if( health > 0 && !settings_display ){ |
2240 | stats = u8"♥" + std::to_string( health ) + " Day" + std::to_string( day ); | ||
2240 | std::string health_str = std::to_string( health ); | ||
2241 | if( health_str.length() < 3 ) | ||
2242 | health_str = ( health_str.length() == 2 ? "0" : "00" ) + health_str; | ||
2243 | stats = u8"♥" + health_str + " Day" + std::to_string( day ); | ||
2241 | 2244 | // Money need not be shown until some is acquired. | // Money need not be shown until some is acquired. |
2242 | 2245 | if( money != 0 ){ | if( money != 0 ){ |
2243 | 2246 | stats += " $" + std::to_string( money ); | stats += " $" + std::to_string( money ); |
... | ... | void vnDraw( double sw, double sh ){ | |
2252 | 2255 | font_mono.height * vnScale * statScale | font_mono.height * vnScale * statScale |
2253 | 2256 | ); | ); |
2254 | 2257 | }else if( mainmenu ){ | }else if( mainmenu ){ |
2255 | // Display the version number and controller status. | ||
2258 | // Display the version number. | ||
2256 | 2259 | statScale = 0.5f; | statScale = 0.5f; |
2257 | 2260 | statColor = { 0.55f, 0.55f, 0.55f, 1.0f }; | statColor = { 0.55f, 0.55f, 0.55f, 1.0f }; |
2258 | 2261 | stats = app_version; | stats = app_version; |