List of commits:
Subject Hash Author Date (UTC)
Use gradient for text backdrop 6ad98cdaf4df37e8b24d9c1e8e2f9b0e904da9aa mse 2022-04-10 13:04:29
Improve vn button highlight 51b2c6c07b0cfb0efdb8cdf5cbeba49ef54d9ccb mse 2022-04-09 06:54:39
Darken the screen when drawing a menu with non-VN text 8f3bcee6d57817ea8c1dd999c68cb129dea1550c mse 2022-04-08 16:01:52
Upgrade the UI 45561487af001c5a790343690a792faeb14945d4 mse 2022-04-06 23:45:31
Progress on getting Emscripten builds working again (almost) e4276b7823027c7ac3a3afe30c3c30241f1c6642 mse 2022-04-01 11:16:56
Bump to version 0.7.9 1c93b011603bd953df0628fa39c586c11eeb7138 mse 2022-03-30 08:31:00
Some progress on Android support dd2d0eb6d4ee42149b605526ce304e67243d90b4 mse 2022-03-20 00:28:35
Android support (work in progress) a8f26dd2d83d66fb8e3b634991084fbdc9faa640 mse 2022-03-19 20:08:09
Add IFGOSUB db52bc04bac0af4d668696580b1312920a47d9e5 mse 2022-03-19 17:11:36
Remove Poco from the makefile e6274074304b40f0eaae0e591acadc604388fbaa mse 2022-03-19 17:00:54
Disable texture wrapping in VN 75ed1c845f4643fa4e012f22f5a2bbeacca9d51e mse 2022-03-18 21:39:00
Menu improvements 2ee4efdb3fedb69cbf56711841fc961bd1b4877c mse 2022-03-17 19:32:45
Menu navigation fixes 362878a56a72a43f671d4c6022e53ce124a0cf99 mse 2022-03-17 18:47:50
Rewrite VN engine 4c88d574d4f72794ab17fb5ecdc57fbd2a93cb7e mse 2022-03-16 07:19:06
Add commandKey() function 066858b9a80610248bed69ac7095129a9f142a78 mse 2022-03-14 00:05:46
Fix a multiple selection bug on the trading screen 0c64d03fed96234183bf7bb69819f48472c1aafd mse 2022-03-10 07:14:13
Right joystick moves mouse f59369b8be29e9910ef3e5e807495b46a6403c19 mse 2022-03-06 09:50:35
Add CLEARSCREEN command 57f55faa0fec4c558e8c9a7942cb0f47ddca07d7 mse 2022-03-01 09:35:11
Tint rain ambient color & bump version to v0.7.8 56888b00706faddf9aea8a1930ee784b535c50bf mse 2022-01-31 03:02:45
Add controlKey function 6997d5afe5971694fe0222917f8125dd44b23aa3 mse 2022-01-21 17:23:00
Commit 6ad98cdaf4df37e8b24d9c1e8e2f9b0e904da9aa - Use gradient for text backdrop
Author: mse
Author date (UTC): 2022-04-10 13:04
Committer name: mse
Committer date (UTC): 2022-04-10 13:04
Parent(s): 51b2c6c07b0cfb0efdb8cdf5cbeba49ef54d9ccb
Signing key:
Tree: 814d8ed95f28d990121bf298714fcb9e480f67fd
File Lines added Lines deleted
base/ui/shade_gradient.png 0 0
confec.cpp 1 1
include/vn.h 15 8
File base/ui/shade_gradient.png added (mode: 100644) (index 0000000..da8b3e1)
File confec.cpp changed (mode: 100644) (index 7420b9a..fa42140)
... ... int main( int argc, char* argv[] ){
1055 1055 fgl::setPipeline( fgl::colorModPipeline ); fgl::setPipeline( fgl::colorModPipeline );
1056 1056
1057 1057 // Load UI graphics. // Load UI graphics.
1058 vnLoadUIButtons( data_path, "ui/button_n.png", "ui/button_p.png", "ui/button_s.png" );
1058 vnLoadUITextures( data_path, "ui/shade_gradient.png", "ui/button_n.png", "ui/button_p.png", "ui/button_s.png" );
1059 1059 map_overlay = vnLoadImage( data_path + "/ui/map_overlay.png", false, false ); map_overlay = vnLoadImage( data_path + "/ui/map_overlay.png", false, false );
1060 1060
1061 1061 mt = std::mt19937_64( std::time( nullptr ) ); mt = std::mt19937_64( std::time( nullptr ) );
File include/vn.h changed (mode: 100644) (index 0a0b203..e33d12b)
... ... void vnGo( dialogue::Talk &convo, const std::string &id );
21 21 double vn_width = 1366.0, vn_height = 768.0; double vn_width = 1366.0, vn_height = 768.0;
22 22
23 23 // Common VN UI textures. Loaded automatically. // Common VN UI textures. Loaded automatically.
24 fgl::Texture vn_tex_shade = {}, vn_tex_button_n = {}, vn_tex_button_p = {}, vn_tex_button_s = {};
24 fgl::Texture vn_tex_shade = {}, vn_tex_gradient = {}, vn_tex_button_n = {}, vn_tex_button_p = {}, vn_tex_button_s = {};
25 25
26 26 // VN images. // VN images.
27 27 std::map<std::string,fgl::Texture> vn_backgrounds, vn_foregrounds, vn_buttons; std::map<std::string,fgl::Texture> vn_backgrounds, vn_foregrounds, vn_buttons;
 
... ... fgl::Texture vnLoadImage( const std::string &fileName, bool mipmap, bool filter
46 46 return imgTexture; return imgTexture;
47 47 } }
48 48
49 // Load not-pressed, pressed, and selected UI buttons.
50 void vnLoadUIButtons( const std::string &dataPath, const std::string &buttonN, const std::string &buttonP, const std::string &buttonS ){
49 // Load shade gradient, not-pressed, pressed, and selected UI buttons.
50 void vnLoadUITextures(
51 const std::string &dataPath,
52 const std::string &gradient,
53 const std::string &buttonN,
54 const std::string &buttonP,
55 const std::string &buttonS ){
56 vn_tex_gradient = vnLoadImage( dataPath + "/" + gradient, true, true );
51 57 vn_tex_button_n = vnLoadImage( dataPath + "/" + buttonN, true, true ); vn_tex_button_n = vnLoadImage( dataPath + "/" + buttonN, true, true );
52 58 vn_tex_button_p = vnLoadImage( dataPath + "/" + buttonP, true, true ); vn_tex_button_p = vnLoadImage( dataPath + "/" + buttonP, true, true );
53 59 vn_tex_button_s = vnLoadImage( dataPath + "/" + buttonS, true, true ); vn_tex_button_s = vnLoadImage( dataPath + "/" + buttonS, true, true );
 
... ... bool vnDraw(
203 209 auto noshade_it = convo.numbers.find( "noshade" ); auto noshade_it = convo.numbers.find( "noshade" );
204 210 bool noshade = noshade_it != convo.numbers.end() && noshade_it->second; bool noshade = noshade_it != convo.numbers.end() && noshade_it->second;
205 211 if( convo.screen.ids.size() > 0 && !darken && !noshade ){ if( convo.screen.ids.size() > 0 && !darken && !noshade ){
206 // There are buttons and something to draw a shade over.
212 // There are buttons and something to draw a gradient over.
213 double y = ypos + ( tlines > 0.0f ? tlines : 8.0f ) * vnScale;
207 214 vnDrawImage( vnDrawImage(
208 vn_tex_shade,
215 vn_tex_gradient,
209 216 vnOffX, vnOffX,
210 ypos + ( tlines > 0.0f ? 2.0f - tlines : 8.0f ) * vnScale,
217 y,
211 218 0.0f, 0.0f,
212 vn_width * vnScale,
213 vn_height / 1.2 * vnScale
219 vn_width * vnScale / vn_tex_gradient.width,
220 ( sh - (vn_height * 0.7409 - font.size * 2.57) * vnScale ) / vn_tex_gradient.height
214 221 ); );
215 222 } }
216 223
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using git:
git clone git://git.rocketgit.com/user/mse/ConfectionerEngine

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main