Tamás Bálint Misius
8897c6daea
Make elem.free rebuild menus ( fixes #649 )
...
Also make sure removed elements don't stay selected.
2019-06-11 21:12:22 +02:00
Tamás Bálint Misius
0179cefc78
Flatten include trees
2019-04-20 15:36:11 +02:00
jacob1
2e17b848b1
Make element names a String (unicode support)
...
This won't be used by official elements, but mods or lua scripts could and do use unicode
2019-03-12 00:10:43 -04:00
ssccsscc
a06124a5a9
Fixed typo
...
Fixed typo in function for detection mouse inside zoom
2019-03-05 23:43:41 -05:00
mniip
6c9cb174fb
Change some uses of String::Stream to StringBuilder
2018-05-02 22:11:41 +03:00
mniip
833383b121
Move TPT's icons to the (real) Private Use Area of the unicode
2018-05-01 07:03:48 +03:00
mniip
ff27d69424
Switch from std::string to String/ByteString in most of the code
...
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00
jacob1
6731fa16b7
fix memory leaks when loading stamps ('l') and viewing saves
2018-04-21 00:15:15 -04:00
wolfy1339
27f6a6b297
Strip whitespace from files in repo ( #553 )
2018-04-03 21:46:01 -04:00
jacob1
67bc12de97
Fix issue where TPT was bought by EA
2018-04-01 15:26:13 -04:00
jacob1
40d2850ff7
TPT has now gone free to play! Many elements are unlocked by default, but by using Powdercoins you can unlock new elements and promote your saves to front page!
2018-03-31 22:40:23 -04:00
jacob1
0c8c4de125
convert all of the rest of the things except GameSave.cpp and pipe/ray elements
...
also add sim.PMAPBITS and sim.PMAPMASK constants
2017-12-29 21:01:28 -05:00
jacob1
ac24810da5
add some defines to reduce usages of hardcoded r>>8
2017-12-28 12:03:26 -05:00
Matthew Moore
7d4010d2df
Fix Newtonian Gravity Tooltip
2017-10-24 22:30:39 -04:00
jacob1
55b31d6f0e
my mod uses -1 for this
2017-08-05 21:47:39 -04:00
jacob1
6efedcdd33
undo authors changes on ctrl+z, prevent excessive nesting
2017-07-15 16:21:16 -04:00
jacob1
8e5b0c760e
Add logging inside saves which remembers which other saves material was taken from
...
The logging is saved inside the bson data in all online saves, local saves, stamps, and clipboard pieces. It is loaded back when reloading each of those.
See #474 for the format of the data. It is the same format for the bson data. Note that "links" is an array of objects. It can be recursive.
There is some effort to not duplicate information, we don't care if you loaded a stamp 10 times or if you are using the clipboard in your own save. Extra information is mostly not saved for your own stuff, only when you take material from other saves.
Press ctrl+a in debug builds to show what info it is currently saving in Client. Also enabled in snapshots for now.
There is one unrelated change in here, which fixes a crash pointed out by QuanTech. It was also save related and it was too close to the other changes to separate it into another commit. It fixes a crash when saving signs with invalid unicode. the BSON library doesn't like this, it was returning an error but we ignored it, which caused a crash. It now notices those errors. I also had to update several Serialize calls to check if it actually returned save data, or else it then would have started crashing there instead.
Also some debug prints were removed
2017-07-13 00:19:35 -04:00
jacob1
714ee8ff65
clear redoHistory memory on exit
2017-06-14 00:16:44 -04:00
jacob1
6d6a615a37
msvc min/max fixes
2017-04-23 12:30:39 -04:00
Mark Theng
1c12d1ec16
Take history snapshot before setting save ( #358 )
2017-03-19 23:15:08 -04:00
jacob1
08a7dfebea
move undohistorylimit config pref, change default to 5
2017-02-18 23:58:14 -05:00
jacob1
6040ccd27e
ugly fix for two empty snapshots being created on startup
2017-02-09 23:08:44 -05:00
jacob1
389159728c
Configurable undo history
...
Note: Each undo adds 16.7 MB of RAM usage, max is 200 (3.4GB), but don't set it to this
2016-11-14 10:03:09 -05:00
jacob1
25a2d9b5b5
some modifications to ctrl+z/ctrl+y
...
allows infinite undoing / redoing, improvements when history limit is greater than one
2016-11-14 10:03:09 -05:00
krawthekrow
95d2014724
allow redo with Ctrl-Y
2016-11-14 10:03:08 -05:00
jacob1
8a130aaab4
add log message when particle debugging is advanced due to unpause
2016-09-04 21:42:48 -04:00
Mark Theng
8de12d616e
fix resume simulation/reload in the middle of subframe debugging ( #330 )
2016-09-04 21:33:33 -04:00
jacob1
adb200d3f7
remove commented out code, heart icon shows even when element is selected
2016-07-24 22:43:54 -04:00
jacob1
ae247a2d2b
Fix uglyness with how Favorites menu was done
2016-07-24 22:30:56 -04:00
jacob1
fe4653c30e
Fix crash when BuildMenus() is run with elements in the favorites menu
2016-07-24 17:30:00 -04:00
jacob1
b75c8318e4
add tpt.num_menus and tpt.menu_enabled functions
2016-07-08 20:33:01 -04:00
jacob1
88097496af
Allow hiding menusections
...
Cherry-picked from 75437c7d4c
2016-07-08 19:58:21 -04:00
jacob1
ecddfcbc0d
don't reset edge mode when saving local saves
2016-06-30 08:16:53 -04:00
jacob1
4190946de5
fix warning+exit crash, fix menusection offset resetting when menus are rebuilt
2016-06-25 11:56:03 -04:00
Matthew Miller
083d488566
Added a favorites menu. ( #298 )
...
Added a favorites menu.
2016-06-25 11:55:18 -04:00
jacob1
51ff868935
use user-set edge mode when saving powder.pref, not the one from the open save
2016-04-02 00:25:05 -04:00
jacob1
5c1cc0c0fb
rewrite powder.pref handling to use jsoncpp instead of cajun
...
cajun is a hard to use library with many necessary features missing. It also has been causing the windows version, and probably the mac version, to randomly crash.
Other json stuff still uses cajun (TODO: remove)
2016-01-25 22:30:43 -05:00
jacob1
d3c44dbffa
fix deco color being reset to 0x00000000 when loading a lua element
2016-01-10 22:48:45 -05:00
jacob1
f435cf3881
fix edge mode not loading properly in saves, options menu uses edge mode from Simulation and not GameModel
2015-10-10 18:10:17 -04:00
jacob1
a0c77fe6e8
fix it being impossible to select wall menu, add wall identifiers from my mod
2015-09-24 00:26:37 -04:00
jacob1
df854f72a6
only print 'Loaded autorun.lua' to screen (not to console/stdout.txt)
...
All the other debug output was already removed in earlier commits
2015-08-31 23:51:50 -04:00
jacob1
ed4678c9a8
add deco flood fill, flood fills based on color being close enough
...
flood fill brush is hidden when deco tools are selected like this because it gets in the way. Renderer::vid is compared here so there could definitely be issues, but it works fine when used under normal conditions
2015-08-30 01:38:32 -04:00
Ryan Jacobs
55a30673c4
Remove unnecessary pointer checks.
...
There are *no* more spacing issues. I used tabs exclusively.
Also, I made changes off of the develop branch.
Here's the Ruby regex that I used:
text.gsub!(/(( |\t)*)if ?\((.*)\) ?{?\n?( |\t)*(free ?\(|delete |delete\[\] )(.*)\)?;/, "\\1\\5\\6;")
2015-02-14 22:13:26 -08:00
jacob1
efd69b208d
fix a ton more errors in the interface code, including all the -Wreorder ones
2015-01-16 19:58:39 -05:00
jacob1
e92bbac700
fix some lua crashes (use more argument checking)
2015-01-10 18:59:20 -05:00
jacob1
1a2e3a11fc
cancel drawing when the mouse moves in / out of the zoom window, fixes #228
2015-01-10 13:35:23 -05:00
jacob1
35782fdd10
'l' always loads last save from disk (won't load cached deleted save)
2014-12-15 15:13:37 -05:00
jacob1
16ce3a68c0
more jacksonmj suggestions: save edgeMode in saves, BVBR absorption fix, life saving fix, DEUT graphics change, PROT fix, SOAP graphics fix
2014-11-21 15:41:22 -05:00
jacob1
efaa32363f
page textbox in browser (go to any page)
...
also fix page count (add one for front page), and make page count invisible until the saves actually load
2014-11-11 17:25:50 -05:00
jacob1
c16caed5dd
fix level 1 msvc compiling warnings + initialize debugFlags
2014-10-08 00:15:51 -04:00