Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Load current screen's images for CSL support | 43ef06272048c164fc754a547a57859bdfb909db | mse | 2021-11-06 03:23:56 |
Fix Mac builds and bump version to v0.6.0 | efcc6a0b4858af2abd027c8379d41ee1fe073620 | mse | 2021-11-04 23:40:55 |
Remove structured initializer for older compiler support | 772a6b05b40cd5f7412a7736fe574319fe67289a | mse | 2021-11-04 17:54:41 |
Make C++ standard version configurable | b100287447ddf4aa503ebac88710b0b92e25aa7f | mse | 2021-11-04 15:56:47 |
Fix zoom for particles | 5c80a4a30c13672f00df8f3d74297908c132f45d | mse | 2021-11-04 14:54:34 |
Use 2 different speed curves for smart zoom | 56f9cd38408e4cd3ed08b75b00b131a0bc236b56 | mse | 2021-10-22 01:51:47 |
Improve smart zoom math | 87da264dca8c443c24a6340002a8cd8169a1446b | mse | 2021-10-17 10:11:14 |
Add smart zoom | cc57dc0952db6c59d06ef7a9b5c5526f7801945f | mse | 2021-10-16 09:13:49 |
Housekeeping | 76d7571c34241141c6e2a6315de5e5b513db5209 | mse | 2021-10-07 07:33:20 |
Fix font kerning support | ab4cbabbed82f629d616f8878790e7d2666524eb | mse | 2021-10-02 21:10:14 |
Add default soundspec volume | 82a658f2e2bd786618228346bc1848c1be894054 | mse | 2021-09-30 05:23:43 |
Fix Windows build and update SDL | d8f30e756bc4d5a63e5b7524db2b69ae5af4f88f | mse | 2021-09-29 23:31:25 |
Update gamecontrollerdb | 3da6ad2629e0b28cad34b3ff7a89c0fe0d96a2fd | mse | 2021-09-29 23:02:39 |
Parse newline escape sequences in caption | ff33cfb3e88098ae24a6afa1cc7ac9049b6e4c1f | mse | 2021-09-27 23:45:58 |
Fix loadOBJ(...) | 0b307ff98c2aa8f79d62770b3e2aff6fb7d8670a | mse | 2021-09-25 05:18:15 |
Add uploadModelTransforms(...) | 53530b8cabe72cfa6c71148bd484a1b5a17df565 | mse | 2021-09-23 14:33:47 |
Readability | a5885db68a6134c7c3930b6cf10650f0b340088d | mse | 2021-09-13 15:56:30 |
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 |
File | Lines added | Lines deleted |
---|---|---|
confec.cpp | 13 | 7 |
File confec.cpp changed (mode: 100644) (index 40bd058..a2698fe) | |||
... | ... | void vnDataUpload(){ | |
2135 | 2135 | // Loads the necessary images and updates data to display on the screen. | // Loads the necessary images and updates data to display on the screen. |
2136 | 2136 | // Call this after convo.go. | // Call this after convo.go. |
2137 | 2137 | void vnDataDownload( const std::string &data_path ){ | void vnDataDownload( const std::string &data_path ){ |
2138 | for( const auto &s : convo.screens ){ | ||
2139 | if( findBackground( s.bg ) == -1 ){ | ||
2138 | // Try to load all known backgrounds and foregrounds, including | ||
2139 | // those of the current screen. | ||
2140 | auto TryLoad = [&]( const std::string &bg, const std::string &fg ){ | ||
2141 | if( findBackground( bg ) == -1 ){ | ||
2140 | 2142 | backgrounds.push_back( { | backgrounds.push_back( { |
2141 | s.bg, | ||
2142 | loadImage( data_path + "/bg/" + s.bg, true, true ) | ||
2143 | bg, | ||
2144 | loadImage( data_path + "/bg/" + bg, true, true ) | ||
2143 | 2145 | } ); | } ); |
2144 | 2146 | } | } |
2145 | if( findForeground( s.fg ) == -1 ){ | ||
2147 | if( findForeground( fg ) == -1 ){ | ||
2146 | 2148 | foregrounds.push_back( { | foregrounds.push_back( { |
2147 | s.fg, | ||
2148 | loadImage( data_path + "/fg/" + s.fg, true, true ) | ||
2149 | fg, | ||
2150 | loadImage( data_path + "/fg/" + fg, true, true ) | ||
2149 | 2151 | } ); | } ); |
2150 | 2152 | } | } |
2153 | }; | ||
2154 | TryLoad( convo.screen.bg, convo.screen.fg ); | ||
2155 | for( const auto &s : convo.screens ){ | ||
2156 | TryLoad( s.bg, s.fg ); | ||
2151 | 2157 | } | } |
2152 | 2158 | // Make data from convo accessible to the VN part of the game. | // Make data from convo accessible to the VN part of the game. |
2153 | 2159 | bgIndex = findBackground( convo.screen.bg ); | bgIndex = findBackground( convo.screen.bg ); |