List of commits:
Subject Hash Author Date (UTC)
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
Add top-level command: GOSUB 62e9520aec0471fe023ead290595f735a30eb806 mse 2021-08-26 09:31:27
Add persistent VN stats 2d1ffc35afd8ae0f477cbd5aac0559fc02571600 mse 2021-08-23 10:44:16
Bribes increase karma 643f0fc6da65316aa799bbe00cea2030e2c1ccd6 mse 2021-08-17 08:16:36
Add command: #RUMBLE <intensity> <milliseconds> 02964b2ecc57a48192522ef369e33c4912d2f0d2 mse 2021-08-16 07:17:40
Reset position in non-mouse menu selection c21eb6a9d238fa1909dbbbc49907ad09bfca52c8 mse 2021-08-16 03:30:49
Add haptic rumble for combat 65ff172308b0ba26b8930e8e83eb41bd36c6b008 mse 2021-08-15 06:11:25
Reduce joystick sensitivity 3804492a52d36c40cd51d42a971fe92f4fdd52ba mse 2021-08-14 22:37:19
Set audio buffer 1024 to reduce latency b1733b33b3342b32f08e1bafb5baf63ed7db419e mse 2021-07-11 02:56:22
Commit 0ad08aa3887118d2376f4fa7f8b7c66e0f164c73 - Scriptable bg$, fg$, caption$
Author: mse
Author date (UTC): 2021-09-06 11:04
Committer name: mse
Committer date (UTC): 2021-09-06 11:04
Parent(s): 6066e2cae1dc29043902d46549f443c7b683fd88
Signing key:
Tree: d6912a15dcea6ddb3fedd79ca74404d087162705
File Lines added Lines deleted
confec.cpp 11 2
include/dialogue.h 18 2
File confec.cpp changed (mode: 100644) (index 75ed14f..054dec5)
... ... void Render(){
4843 4843 std::string key = str.substr( 5 ), result = ""; std::string key = str.substr( 5 ), result = "";
4844 4844 if( key.back() == '$' ){ if( key.back() == '$' ){
4845 4845 key.resize( key.length() - 1 ); key.resize( key.length() - 1 );
4846 auto it = convo.strings.find( key );
4847 if( it != convo.strings.end() ) result = it->second;
4846 if( key == "bg" ){
4847 result = convo.screen.bg;
4848 }else if( key == "fg" ){
4849 result = convo.screen.fg;
4850 }else if( key == "caption" ){
4851 result = convo.screen.caption;
4852 }else{
4853 auto it = convo.strings.find( key );
4854 if( it != convo.strings.end() )
4855 result = it->second;
4856 }
4848 4857 }else{ }else{
4849 4858 result = convo.stringifyNumber( convo.getVariable( key ) ); result = convo.stringifyNumber( convo.getVariable( key ) );
4850 4859 } }
File include/dialogue.h changed (mode: 100755) (index d39d46d..667033c)
... ... void Talk::operate( Operation o ){
327 327 if( o.op == '$' ){ if( o.op == '$' ){
328 328 transformString( o.valueKey ); transformString( o.valueKey );
329 329 strings[o.key] = o.valueKey; strings[o.key] = o.valueKey;
330 if( o.key == "bg" ){
331 screen.bg = o.valueKey;
332 }else if( o.key == "fg" ){
333 screen.fg = o.valueKey;
334 }else if( o.key == "caption" ){
335 screen.caption = o.valueKey;
336 }
330 337 return; return;
331 338 } }
332 339 // Numerical operations. // Numerical operations.
 
... ... void Talk::transformString( std::string &str ){
375 382 std::string key = str.substr( start + 1, i - start - 1 ); std::string key = str.substr( start + 1, i - start - 1 );
376 383 if( key.back() == '$' ){ if( key.back() == '$' ){
377 384 key.resize( key.length() - 1 ); key.resize( key.length() - 1 );
378 auto it = strings.find( key );
379 if( it != strings.end() ) outStr += it->second;
385 if( key == "bg" ){
386 outStr += screen.bg;
387 }else if( key == "fg" ){
388 outStr += screen.fg;
389 }else if( key == "caption" ){
390 outStr += screen.caption;
391 }else{
392 auto it = strings.find( key );
393 if( it != strings.end() )
394 outStr += it->second;
395 }
380 396 }else{ }else{
381 397 outStr += stringifyNumber( getVariable( key ) ); outStr += stringifyNumber( getVariable( key ) );
382 398 } }
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