Commit Graph

4770 Commits

Author SHA1 Message Date
jacob1
6ddab5a96e update scale info in readme 2017-11-23 16:37:57 -05:00
jacob1
1971efe8b8 include tpt-minmax in the rest of the files it is needed in 2017-11-23 16:21:19 -05:00
jacob1
c9d9f5b71d more include fixes (CoordStack.h) 2017-11-23 16:06:09 -05:00
jacob1
2ccbec1d05 include tpt-minmax header in Simulation 2017-11-23 15:12:47 -05:00
jacob1
a674dc93e2 include tpt-minmax header in Renderer 2017-11-23 15:01:04 -05:00
wolfy1339
d7a27cc682 FreeBSD build fixes (#517) 2017-11-23 14:38:47 -05:00
LBPHacker
a12785cd5d Use a dropdown instead of a textbox
Textboxes don't mix well with error messages fired from from keypress handlers.
2017-11-23 12:24:34 -05:00
LBPHacker
be29fad7e8 Add support for window scale modes other than 1 and 2
Window scale can now be anything between 1 and 10 (suggest something other than 10 for maximum scale?). This required a number of subtle changes:

 * made blit2 (PowderToySDL.cpp) handle scale modes correctly (it really only handled scale:2 correctly before)
 * replaced `bool scale` with `int scale` everywhere in the options view/model/controller
 * replaced the _large screen_ checkbox with a _window scale_ textbox in the options view

The new scale is only checked and applied when the options view is closed. There's no reason to not apply it live, I just chose not to.

This commit does *not* make TPT able to figure out an optimal scale mode at first run. It still suggests using scale:2 if it makes sense though.

I had doubts about using a second loop in blit2 but it doesn't seem to be an issue. If there's a more optimal way of going about what blit2 does, I haven't figured it out.

(Sublime seems to have eaten a few trailing spaces, hence there are a few seemingly identical pairs of lines in the diff.)
2017-11-23 12:24:34 -05:00
krawthekrow
62d57cc1de fix indentation 2017-11-23 00:42:42 -05:00
Novocain1
db6fb5461d Adds ways to digitize temperature and ways to turn that digitization to an actual temperature. (#525) 2017-11-23 00:28:12 -05:00
wolfy1339
255ca13fab Remove unused code in src/Config.h (Fixes #516)
- Remove commented out code as it was not used anywhere in the code
2017-11-23 00:18:44 -05:00
wolfy1339
87f3ada7b0 Remove stuff from Config.h that doesn't belong 2017-11-23 00:12:48 -05:00
jacob1
6cfaed0e1b fix compile warnings, fix tooltips fading in too slowly 2017-11-23 00:10:15 -05:00
RobertBScott
4c3b4dab47 Implemented tooltip element descriptor display in element search. 2017-11-23 00:10:15 -05:00
jacob1
b5bc4ad3d2 potential crash on exit fix (can't tell if it actually fixes it or if it is related) 2017-11-18 17:11:46 -05:00
jacob1
1b19e042b2 fix crash when using tpt.start_getPartIndex 2017-11-04 13:22:22 -04:00
Matthew Moore
7d4010d2df Fix Newtonian Gravity Tooltip 2017-10-24 22:30:39 -04:00
jacob1
9c095ff3d7 don't use alternate PWT32_STATIC_LIB define in msvc either 2017-10-13 00:47:07 -04:00
jacob1
3c2de70564 fix compilation / ensure this check only runs when compiling on windows 2017-10-13 00:03:35 -04:00
wolfy1339
536b20b164 Fix pthread deprecation warning, fixes #502 2017-10-12 23:33:05 -04:00
jacob1
553b36b31c fix generator.py call in scons 3
scons 3 still untested
2017-10-09 23:59:58 -04:00
jacob1
a97dad4db5 Mac luajit crash fix
Doesn't affect official because I added these flags properly before making SConscript do it
2017-10-09 00:12:26 -04:00
jacob1
940fa80047 revert 'Fix deprecation warnings from pthread (#510)' 7847a3ab11
not everyone will have the newer pthread and the deprecated define probably works on all versions of pthread
2017-10-07 17:45:28 -04:00
QuanTech0
c52c2d7a6f Expanding vocabulary.
:)
2017-10-07 17:32:28 -04:00
wolfy1339
b3ee23e45c Fix errors when using --msvc (#509) 2017-10-07 17:32:04 -04:00
wolfy1339
7847a3ab11 Fix deprecation warnings from pthread (#510) 2017-10-07 17:31:35 -04:00
wolfy1339
c0bb5882b4 Fix SConstruct on Python 3 (#513) 2017-10-07 17:31:05 -04:00
jacob1
97c4123533 translate wall grids when shifting stamps by more than 4 pixels 2017-10-04 21:07:00 -04:00
jacob1
4ff0a9f52c only expand stamp in the direction you are moving 2017-10-04 21:07:00 -04:00
krawthekrow
ca542b1ef1 autoexpand save when particles are translated out of boundaries 2017-10-04 21:07:00 -04:00
jacob1
1c275e943f make print statements python 3 compatible 2017-10-03 21:14:16 -04:00
jacob1
17c9340434 CRAY wall checking fix 2017-10-02 21:38:15 -04:00
jacob1
77b6f44c74 fix issue with molten STKM that could break the simulation and cause crashes 2017-09-28 23:12:16 -04:00
Dmitry Marakasov
fffe1b0c40 Fix SConscript syntax (#507) 2017-09-21 09:06:38 -04:00
jacob1
631570cbd0 mac luajit fix, version 92.5.336 2017-09-20 20:42:24 -04:00
jacob1
e458d675bf Fix LINKFLAGS env variable being overwritten when compiling for OS X 2017-09-11 22:04:25 -04:00
jacob1
4f52d34a9d copy STRIP env var into scons env var
TODO: an option to just copy everything, which is apparently needed on some platforms
2017-09-07 23:10:13 -04:00
jacob1
834e966842 Version 92.2.333 2017-09-04 23:08:52 -04:00
jacob1
873c2230dc add alternate luajit name (my own custom name), update readme date 2017-09-04 22:14:47 -04:00
jacob1
6bd068713e recording improvements
remove 'r' record shortcut
add tpt.record function. Still gives the user a confirm prompt
recordings now go into recordings/<timestamp>/, where timestamp is the time the recording was started. <timestamp> is returned by the tpt.record function. Each new recording starts the filenames over at 0 again.

you probably still need a lua script to use the recording feature, this should make it easier for those
2017-09-04 14:06:28 -04:00
jacob1
e4089a276a fix illuminati symbols appearing when rescanning stamps 2017-09-04 12:51:28 -04:00
QuanTech0
07e879e74c fix buffer overflow in opt_meth_setoption (#496) 2017-09-03 19:48:28 -04:00
jacob1
c34b54d974 add sim.takeSnapshot lua function 2017-08-31 23:48:00 -04:00
MrZacbot
be786d85a7 Added a bounds check for BOMB reading pmap (#497) 2017-08-29 20:44:14 -04:00
jacob1
1ceae1ba43 fix interface api in lua5.2 2017-08-20 18:13:46 -04:00
LBPHacker
ce58c4aadf Fix Simulation::Restore decrementing life values
Simulation::Restore used to call Simulation::RecalcFreeParticles. The problem with that was that RecalcFreeParticles does more than just what its name suggests: it also decrements life values. Restore shouldn't do that. The solution is to tie decrementing life values to an argument in RecalcFreeParticles. This is also makes to code more future-proof as it lets everyone know that they have to keep their eyes peeled when invoking RecalcFreeParticles.
2017-08-17 00:23:37 -04:00
jacob1
eb1bcf1b95 Revert "Temporarily use IP addresses instead of dns (untested)" fa322902bf 2017-08-11 20:54:36 -04:00
jacob1
fa322902bf Temporarily use IP addresses instead of dns (untested) 2017-08-07 12:51:12 -04:00
jacob1
3045125a88 Version 92.1.332 2017-08-06 21:56:58 -04:00
jacob1
1dd4b00ec6 minor gravity transition fix 2017-08-06 19:41:04 -04:00