Commit Graph

1492 Commits

Author SHA1 Message Date
jacob1
b6e69e8126 Fix small mistake in TSNS 2012-12-21 00:18:10 -05:00
jacob1
a91459916d change max to 200, 500 was a bit large 2012-12-18 23:56:41 -05:00
jacob1
e302a07694 allow a slightly larger brush size 2012-12-18 23:49:30 -05:00
jacob1
e1440f48f6 use kill_part when creating a new particle over an index, fixes STKM not respawning after CONV and probably other stuff too 2012-12-18 16:26:24 -05:00
jacob1
dc0e47ac00 fix undo not allowing any more stickmen to be placed, save stickmen in snapshots 2012-12-18 16:17:13 -05:00
jacob1
9a2df6b824 fix sltw + liquid rubiduim explosion, make it work like water's 2012-12-18 15:17:57 -05:00
jacob1
b236c75209 make TSNS not detect METL, some other sensor and CONV fixes 2012-12-18 14:55:10 -05:00
jacob1
771d71ea46 make water equalization use flags, not tmp2 (fixes EXOT / BUBW) 2012-12-18 14:08:53 -05:00
jacob1
e685e30d58 make sure that simulation variables are initialized, fixes things like water equalization always being on in old saves 2012-12-18 13:33:29 -05:00
jacob1
c06afff0a5 selecting a stamp moves it to the front of the list again (unless you hold ctrl)
attempted to do MVC right?
2012-12-18 12:20:52 -05:00
jacob1
672c5ee913 fix mismatched malloc() / delete [], fixes # 106 2012-12-17 23:57:55 -05:00
jacob1
dbe78c342d initialize variables in air.cpp and simulation.cpp 2012-12-17 23:49:46 -05:00
jacob1
b5de23433d fix '=' resetting air heat, fix uninitialized ambient heat setting, a few LOLZ / LOVE changes 2012-12-17 21:11:33 -05:00
jacob1
2728cf852b fix WARP being invisible, make it visible in heat display mode though 2012-12-17 20:08:46 -05:00
jacob1
f08481a88e fix TRON ignoring GOO until the last moment 2012-12-17 18:42:41 -05:00
jacksonmj
9c6f3c7fbb Fix crash in GameSave::serialiseOPS
Only particlesCount particles have been copied from the Simulation.
All the rest are uninitialised, and may have coordinates outside the
game area. Using those uninitialised coordinates in the index for
partsPosFirstMap may cause a crash.
2012-12-16 23:01:04 +00:00
Simon Robertshaw
d29c77b2d5 More detailed error when opening non-existent directory. 2012-12-16 16:41:30 +00:00
Simon Robertshaw
4d546b6818 Print errors regardless of build type 2012-12-16 16:40:29 +00:00
jacob1
06f8f88374 fix output appearing in stdout without DEBUG defined 2012-12-16 11:38:12 -05:00
jacob1
a85526bfac fix comment error messages not showing 2012-12-15 23:12:54 -05:00
jacob1
462bd7bdf9 fix comments being deleted when hitting enter and opening a save or getting an error when commenting 2012-12-15 22:55:53 -05:00
jacob1
1ef507d9e6 fix colors slightly from last commit 2012-12-15 20:42:30 -05:00
jacob1
c62ef2cb35 fix upvote buttons still having colored background after clearing the save, make them look more like from in tpt 2012-12-15 20:34:00 -05:00
jacksonmj
e4907d1881 Copy dcolour when MERC expands, to let people make coloured mercury thermometers 2012-12-16 00:16:05 +00:00
jacob1
a623959a31 save stamps on 1 pixel grid (works exactly like in tpt now), delete signs with Ctrl+X, also fixes stamps on very bottom/right edge and other edge cases 2012-12-15 15:13:12 -05:00
jacob1
0fd86e994a make the comment box always multiline. Fixing pasting large amounts of text into it. 2012-12-15 14:28:23 -05:00
Simon Robertshaw
735b2b659f Update version number 2012-12-15 18:29:26 +00:00
jacob1
a172a96897 make sure long amounts of text without spaces doesn't run over out of bounds
A character may be deleted to insert a new line, but when copying something like a url, the missing one is copied back in. I couldn't get inserting a newline between letters to work right
2012-12-15 13:17:29 -05:00
Simon Robertshaw
e0f8456531 Prompt for install on first startup 2012-12-15 17:14:43 +00:00
Simon Robertshaw
f047b4826f Make installation success message a little friendlier 2012-12-15 16:57:25 +00:00
Simon Robertshaw
6e62a54952 Add missing URL Protocol registration on Windows 2012-12-15 16:56:55 +00:00
Simon Robertshaw
201d314096 Element population histogram debug info display - has to be enabled by adding debugInfo.push_back(new ElementPopulationDebug(gameModel->GetSimulation())); somewhere in GameController 2012-12-15 15:57:57 +00:00
Simon Robertshaw
558888ac25 Ensure resampler.cpp is compiled when needed 2012-12-15 01:10:03 +00:00
Simon Robertshaw
b4475ae96f Very high quality image resampling code curtesy of imageresampler (http://code.google.com/p/imageresampler/), will replace current shitty linear interpolation for SSE2 and renderer builds. 2012-12-15 01:04:17 +00:00
Simon Robertshaw
a1af662b8f More accurate elementCount 2012-12-14 23:01:54 +00:00
Simon Robertshaw
ceee0b6dc5 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-12-14 19:44:30 +00:00
Simon Robertshaw
31c0666961 Prevent saves from being loaded twice by the Save browser 2012-12-14 19:44:16 +00:00
jacob1
f03fb97620 Merge remote-tracking branch 'origin/master' 2012-12-14 13:51:44 -05:00
jacob1
5362c56f7e update gravity wall zones whether or not newtonian gravity is on. Fixes #92 2012-12-14 13:50:36 -05:00
Simon Robertshaw
e5feefa419 Update WIRE name and description, fixes #101 2012-12-14 18:50:25 +00:00
jacob1
05fc39e40f a working scrollbar in the save preview. Also, fix the bug where you couldn't go back up a page when there weren't enough comments to fill a page 2012-12-14 13:34:00 -05:00
jacob1
002743ef08 make it easier to create new energy particles (like for mods), they would just disappear when hitting anything before 2012-12-12 22:05:39 -05:00
jacob1
d57fe7618c fix walls loading incorrectly in extremely old saves. Fix some invalid save formats being loadable (it was onlychecking the 'O' in OPS) 2012-12-12 17:31:06 -05:00
Simon Robertshaw
38862a78d1 New Conversation notifications 2012-12-09 12:05:27 +00:00
Simon Robertshaw
6478ed121c Use NotifyAuthUserChanged for GameController login, this will help users become aware when their sessions expire. 2012-12-09 01:25:05 +00:00
Simon Robertshaw
05148e8a8d C++erific text cleaner function, also, it's a good idea to actually clean text coming from signs... 2012-12-09 00:14:48 +00:00
jacob1
226de5b6f8 add back element descriptions in some cpp files, fix minor TRON search problem. Also,
TPT-jacksonmj: Also fix bugs with energy particles that pass directly from PIPE to portal
2012-12-06 19:51:33 -05:00
jacob1
a15372afbf TRON_NORANDOM flag 2012-12-06 18:42:46 -05:00
jacob1
2881eeb1b3 allow TRON to plan ahead which particles will disappear by the time it gets there, and go on INVS too 2012-12-06 17:53:22 -05:00
jacob1
e5a284a2ba fix compiling warnings / error 2012-12-06 12:34:32 -05:00
jacob1
122599763e Merge remote-tracking branch 'origin/master' 2012-12-06 11:01:46 -05:00
jacob1
2d7ac84c1d give TRON the ability to go through activated SWCH 2012-12-06 10:56:24 -05:00
jacksonmj
9bf5eeeef9 Fix slight particle order issue with SWCH 2012-12-04 19:38:01 +00:00
jacob1
2a8811190c Fix infinite pressure glitch with CLST 2012-12-01 12:17:41 -05:00
Simon Robertshaw
61e25060ae Update version number (build 250) 2012-11-27 20:11:25 +00:00
Simon Robertshaw
3664a22f98 Right clicking on reload button will show save preview. 2012-11-26 11:48:27 +00:00
Simon Robertshaw
b08812569c Stop using persistent connections when we don't need them. Force shutdown of Thumbnailbroker before http lib close, fixes #84 2012-11-26 10:34:17 +00:00
jacob1
6a4040f2b7 Update src/simulation/elements/VIBR.cpp
fix EXOT destroying exploding VIBR
2012-11-23 21:28:10 -05:00
Simon Robertshaw
da554cfef2 Allow resizing of custom brushes 2012-11-18 22:25:24 +00:00
Simon Robertshaw
f3307e47a8 Helper function for linear interpolation 2012-11-18 22:24:56 +00:00
Simon Robertshaw
045f5e14c2 Custom brushes loaded from "Brushes" folder, format is a simple RAW 8bit greyscale square format 2012-11-18 18:03:36 +00:00
Simon Robertshaw
483e907702 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-11-18 18:02:34 +00:00
Simon Robertshaw
af29942117 Ensure directory enumeration works whether there's a path seperator at the end of the directory or not 2012-11-18 18:02:28 +00:00
jacob1
4654a2aaa0 update build number, which was incorrect. Add an easy way for mods to ignore updates 2012-11-18 12:43:11 -05:00
Simon Robertshaw
0be465aa4e Use ifndef WIN instead of ifdef _unix 2012-11-18 15:48:43 +00:00
jacob1
7a21ae192f VINE cool/burn effects like in PLNT, less sharp burn lines, fix infinite smoke from TNT 2012-11-16 23:35:34 -05:00
jacob1
9e72a619ab fix directly sparking metal not heating it up, fix formatting, allowing update_particles_i to be parsed 2012-11-16 22:43:46 -05:00
jacob1
eb9b3f6bdf fix link signs ignoring the zoom window, allow right clicking link signs to use them while sign tool selected 2012-11-16 19:22:34 -05:00
jacob1
6b846c6339 add (slightly updated) README from tpt
added new contributers, description from main page, and removed key combos and arguments that don't work
2012-11-16 18:20:48 -05:00
Bryan Hoyle
34ed62d685 Fixed issue with opengl-renderer, missing semicolon 2012-11-16 17:03:54 -05:00
Bryan Hoyle
874cd40009 Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-11-16 16:51:55 -05:00
Bryan Hoyle
fec50a2a8e Opengl fix 2012-11-16 16:50:02 -05:00
jacob1
d8be547c73 fix pause state being reset every time you clear the sim 2012-11-15 20:50:19 -05:00
jacob1
16e4c5f717 save pause state in stamps, load pause state from local saves and stamps correctly, remove accidental inclusion 2012-11-15 20:41:38 -05:00
jacob1
1e32c545d9 fix visual studio std::max problem 2012-11-15 20:23:38 -05:00
jacob1
bf3d7e9ad7 fix tpt.el.X.name commands 2012-11-15 20:13:19 -05:00
jacob1
38a18af2c5 fix crashes when deleting stamps or getting an error when saving 2012-11-15 20:00:55 -05:00
Simon Robertshaw
785fbcefdf Fix divide-by-zero error
...  when displaying save buttons that have zero votes.
2012-11-15 13:01:25 +00:00
Simon Robertshaw
51a5af6d5d Remove some debug printing 2012-11-12 10:48:20 +00:00
mniip
3d635bc68f More edge cases 2012-11-12 10:41:54 +00:00
mniip
947301c302 Better rectangle tool render function, no crappy pixels in edge cases anymore 2012-11-12 10:41:42 +00:00
Simon Robertshaw
29189693b3 Element palette for automatic element ID/mod mapping 2012-11-12 10:22:16 +00:00
Christoph Korn
04df448c96 Fix typo: Persistant -> Persistent
This commit just fixes a small typo which was found by lintian
when checking the Ubuntu package to be published on PlayDeb.net.
2012-11-09 22:23:05 +01:00
jacksonmj
d7c52241a4 Spelling: "hottest" 2012-11-06 20:26:19 +00:00
jacksonmj
fbbe9d81bf Transfer energy between VIBR and BVBR 2012-11-05 21:45:22 +00:00
Simon Robertshaw
150a2e528e Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-11-05 20:10:35 +00:00
Simon Robertshaw
8614a2d963 Update version number 2012-11-05 20:09:58 +00:00
jacksonmj
7da144fbae Fix INVS staying dark blue even when pressure is removed 2012-11-05 14:45:46 +00:00
jacksonmj
956fb39124 Oops, didn't see that parts[i].temp at the bottom, ignore the second half of that last commit message 2012-11-05 14:42:06 +00:00
jacksonmj
3cae63c733 VIBR: don't dump heat into elements that don't conduct heat, and put any remaining heat into EXOT at the end of the explosion 2012-11-05 14:18:28 +00:00
jacob1
dc41e46c81 fix two red BRAYS not being able to turn off swch from certain angles 2012-11-04 22:44:49 +00:00
jacob1
9b8357f822 update version number 2012-11-04 21:35:53 +00:00
jacob1
ca42162e5e fix heat release during explosion 2012-11-04 21:35:35 +00:00
jacksonmj
828623f9ec Change freezing point of VIBR lava, and make sure VIBR always absorbs energy particles 2012-11-04 21:10:27 +00:00
jacksonmj
12eb085d20 VIBR changes from jacob1
Including:
Molten TTAN + EXOT = VIBR.
VIBR + ANAR = BVBR. (BOYL reaction removed)
All absorbed heat/particles/pressure are stored in one property, tmp.
Graphics changes
2012-11-04 20:35:43 +00:00
Simon Robertshaw
e3a016d9c9 SC_SENSOR in Elements API 2012-11-03 18:06:19 +00:00
jacob1
d586a6d0ab PPIP doesn't break with pressure, to match TPT 2012-11-03 16:11:54 +00:00
jacksonmj
2ed53a99ae Change EXOT properties to match TPT 2012-11-03 16:11:11 +00:00
Simon Robertshaw
bd473f02ca Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-11-03 12:22:07 +00:00
Simon Robertshaw
2f9e8c0a5f Empty engineprocess for renderer compiling 2012-11-03 12:21:53 +00:00
jacksonmj
fea55f9ac9 Add PLSM to stacking exclusion list, and fix some cases of stacked EMBR causing BHOL
Stacked EMBR + displacement -> other particles stacked -> BHOL.
Therefore stop displacement to stop BHOL formation.
2012-11-01 00:28:45 +00:00
Simon Robertshaw
057ec914cf Don't use SDL defines in platform independant code 2012-10-29 10:38:04 +00:00
Simon Robertshaw
68e6fe2502 More emtpy key defines 2012-10-29 10:33:23 +00:00
Simon Robertshaw
effcc74d6d Empty key defines for no sdl 2012-10-29 10:32:57 +00:00
Simon Robertshaw
48be91e4df Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-10-29 09:36:32 +00:00
Simon Robertshaw
e08bc6680b Format: Buffer to pti, Save renderer 2012-10-29 09:36:16 +00:00
Bryan Hoyle
32bdcb89e8 VIBR fixes 2012-10-28 21:11:18 -04:00
jacksonmj
caf262ed60 Decrease absorption chance for SPNG, to make release of water from saturated SPNG look a bit less strange 2012-10-27 00:56:02 +01:00
jacksonmj
9a0ca32372 Make conversion of PHOT to ELEC using BIZR, and enrichment of DEUT with ELEC, work better 2012-10-27 00:56:02 +01:00
Simon Robertshaw
9b4f710e28 Menu icon for sensors menu and fix for VIBR std::max args 2012-10-26 15:58:39 +01:00
Simon Robertshaw
c3ba809806 Fix error from merging 2012-10-26 15:32:10 +01:00
Simon Robertshaw
a1d98ffc31 Fix BVBR for generate.py 2012-10-26 15:29:55 +01:00
jacob1
6d6b0dfa9f some VIBR changes, also allow it to be compiled with Scons 2012-10-26 15:18:52 +01:00
jacob1
69aad4caa2 some testing with DEBUG mode, add some stuff
Conflicts:
	src/cat/TPTScriptInterface.cpp
2012-10-26 15:17:02 +01:00
jacob1
e773abdcc8 Ctrl + G gravity grid toggle 2012-10-26 15:16:05 +01:00
jacob1
3ad7cf4539 !quit function 2012-10-26 15:15:52 +01:00
jacob1
5ef6bd8507 close console when using the !load command 2012-10-26 15:15:45 +01:00
jacob1
3a29fc0268 Save local saves as current name option (overwrites them automatically). Fix filename not showing when first saving a local save 2012-10-26 15:15:38 +01:00
jacob1
e2622657f0 ability to reload and resave local saves without retyping name 2012-10-26 15:15:24 +01:00
Simon Robertshaw
63daf67d44 Improve EXOT description 2012-10-26 15:14:57 +01:00
jacob1
6d1c7be740 initialize all stickmen variables, not just legs 2012-10-26 15:13:27 +01:00
jacob1
fd07d35e34 limit the number of signs that can be placed 2012-10-26 15:13:00 +01:00
jacob1
00fdd8308a possibly fix lag/crash when deleting stamps 2012-10-26 15:12:50 +01:00
jacob1
3461cc64d4 bring back the old vote bars 2012-10-26 15:12:42 +01:00
jacob1
d0b14dc64b don't render invalid elements 2012-10-26 15:12:35 +01:00
jacob1
4d207b1146 fix INVS graphics 2012-10-26 15:12:21 +01:00
jacob1
947660fcd4 Fix hydrogen not burning right (with and without realistic heat), allow h2 to burn at all temps while still allowing fusion to work correctly 2012-10-26 15:12:13 +01:00
jacob1
ccd9284e61 improve the GOL menu descriptions 2012-10-26 15:12:05 +01:00
jacob1
c58a3fb2dc TSNS doesn't detect things with an equal temp (fixes detecting wires) 2012-10-26 15:11:59 +01:00
jacob1
b84460d79b visual studio compatibility, plus change text a little 2012-10-26 15:11:43 +01:00
jacob1
3f093c8072 VIBR explosion/graphical changes, it now has a while before it explodes after getting to the limit 2012-10-26 15:11:22 +01:00
jacob1
cd7ca6d417 some VIBR changes/fixes 2012-10-26 15:10:50 +01:00
jacob1
04b76a4b48 VIBR/BVBR - vibranium. Initial commit, doesn't seem to work yet 2012-10-26 15:10:44 +01:00
Simon Robertshaw
0b09d2e0f3 Allow TSNS and DTEC to detect photons and other energy particles. Set default TSNS radius to 1 to make it easier to avoid detecting the wire connections 2012-10-10 21:27:36 +01:00
Simon Robertshaw
da07c22ee4 new elements: DMG (Force bomb) and TSNS (Temperature sensor) 2012-10-10 19:29:11 +01:00
Simon Robertshaw
249e3dcad3 Merge pull request #195 from Huulivoide/master
Minor fixes needed to build on Linux/64bit.
2012-10-09 08:43:13 -07:00
Jesse Jaara
b1d3ebacd2 Windows doesn't have unistd.h, use only in unix platforms. 2012-10-07 12:11:41 +03:00
Jesse Jaara
ec413dd057 Fix an error that prevents building on 64bit systems. 2012-10-06 19:52:48 +03:00
Simon Robertshaw
af181faeea Revert "multiple BRCK colors (suggested by Catelite)"
This reverts commit 4a8ae25299e465ab55072dd512b5818881ec5a67.
2012-10-05 17:25:04 +01:00
jacob1
774bc08c2c Move LOLZ/LOVE Rule tables into more appropriate location (element file) 2012-10-05 16:52:53 +01:00
jacob1
d159467b63 LOLZ and LOVE work again 2012-10-05 16:33:54 +01:00
jacob1
f19f393e22 multiple BRCK colors (suggested by Catelite) 2012-10-05 16:33:45 +01:00
jacob1
a16534e782 don't let TNT flood fill explode when under other particles (prevents lag) 2012-10-05 16:33:24 +01:00
jacob1
d2af4470a5 show # of parts, [GRID X], PIPE/PPIP with X, and molten X (with debug on) in HUD 2012-10-05 16:33:12 +01:00
jacob1
433a80b099 holding both Ctrl and Shift still enables 10x stength 2012-10-05 16:33:00 +01:00
jacob1
a9619fad33 Console Show quickoption
(best way I could think of)
2012-10-05 16:32:50 +01:00
jacob1
72b00ca5e1 info tip on deco/ngrav/aheat changed 2012-10-05 16:32:39 +01:00
jacob1
e600c20ba9 undo ambient heat in snapshots 2012-10-05 16:32:06 +01:00
jacob1
97cea273e5 Fast quit option (disable to make "X" act like in tpt) 2012-10-05 16:31:04 +01:00
jacob1
71db872e64 {t:15100|text} to open a forum thread (will try to add more shortcuts later) 2012-10-05 16:30:55 +01:00
Simon Robertshaw
7c0ba094b8 Ensure save is stored in memory for reload when using Save as current name, correct ServerSaveActivity to call SaveUploaded when doing an instant upload 2012-10-05 16:30:32 +01:00
Simon Robertshaw
0fbe12772d Only run autorun if it exists 2012-10-05 16:04:55 +01:00
jacob1
5c59b9d6cb don't render fire on stamps (reduces lag) 2012-10-05 15:49:54 +01:00
jacob1
63c364652d prevent setting invalid types, fix setting type to "NONE", "C4", & "C5" 2012-10-05 15:49:41 +01:00
Simon Robertshaw
b35fd0298c Flush stamps list to file when deletins, Rename stamps undelete function to rescan 2012-10-05 15:46:42 +01:00
jacob1
7313bd81ca fix problem with last commit
there was no other missing stamps problem actually, just this
2012-10-05 15:23:24 +01:00
Simon Robertshaw
34fdffa340 Fix textbox key repeat issue 2012-10-05 15:23:01 +01:00
jacob1
d45dd605e9 Stamp fix button to bring back deleted stamps 2012-10-05 15:20:33 +01:00
jacob1
cb8efcd0f9 fix visual studio compiling errors (but not the dirent.h one) 2012-10-05 15:19:00 +01:00
Simon Robertshaw
4bb402f4fd Fix stuttering issue with FPS cap 2012-10-05 14:21:38 +01:00
jacksonmj
707c11203e Fix extra BUBW sometimes being produced when CO2 dissolves 2012-10-03 15:42:30 +01:00
Jesse Jaara
1ba412d3ba Add couple of missing header files needed by GCC 4.7. 2012-10-02 23:29:40 +03:00
Simon Robertshaw
b98f5faace Fix photon blending mode 2012-10-01 21:54:52 +01:00
Simon Robertshaw
0e394ed62e Don't highlight menus when the mouse button is down. 2012-10-01 14:26:43 +01:00
Simon Robertshaw
58763f0900 Fix stamp library loading issue (wasn't loading beyond 512 bytes, readsome doesn't always reach eof before not reading n 2012-10-01 13:36:56 +01:00
Simon Robertshaw
c0c5717efe Limit save description length 2012-10-01 13:03:03 +01:00
Simon Robertshaw
134a59609d Collapse comment box after sending comment 2012-10-01 12:41:31 +01:00
Simon Robertshaw
98faf2b192 Don't reset tick counter when loading saves, fixes issue with LIGH tool 2012-10-01 12:32:56 +01:00
Simon Robertshaw
39afea3945 Impose limit when pasting into textboxes 2012-10-01 12:28:21 +01:00
Simon Robertshaw
d78082d368 Negative values in old console commands 2012-10-01 12:14:47 +01:00
Simon Robertshaw
7568e082dd Allow pausing when using stamp placement/selection 2012-10-01 12:07:02 +01:00
Simon Robertshaw
0801497ed2 Fix wall clipping during stamp rotation 2012-10-01 12:02:04 +01:00
Simon Robertshaw
163fbde8af Fix issue where thumbnails are sometimes the incorrect ones 2012-10-01 00:15:09 +01:00
Simon Robertshaw
89e9623725 Fix word wrapping issue (words moved onto new lines were not being added to the line width) 2012-09-30 23:57:23 +01:00
Simon Robertshaw
288a4f710a Activate deco tools when using deco menu 2012-09-30 23:04:29 +01:00
Simon Robertshaw
b97cf098b3 Draw walls behind particles 2012-09-30 22:41:50 +01:00
jacob1
f652786557 fix saves getting corrupted when saving, fix error messages not showing (correctly) 2012-09-30 20:46:08 +01:00
jacob1
be1b9112e8 Fix some uninitialized variables, add back sandcolor changing 2012-09-30 20:43:38 +01:00
Simon Robertshaw
1c60ce25ee Delete notification before removing from vector 2012-09-30 18:40:10 +01:00
Simon Robertshaw
02e09224e0 Prevent crash when pasting in Linux 2012-09-30 17:22:08 +01:00
Simon Robertshaw
68a32aa376 Pass points by value for drawing tools 2012-09-30 16:26:05 +01:00
Simon Robertshaw
70174bff47 Set appropriate default values for some static Lua interface variables 2012-09-30 16:25:29 +01:00
Simon Robertshaw
90ebd3e54c Better hanling of edgeMode and "New Sim" button 2012-09-30 16:19:44 +01:00
jacob1
d6f832b4f5 remove 'Z' quickoption
is confusing and useless, only needed when you draw gravity walls. I can't figure out how to do a show console quickoption
2012-09-29 23:21:24 +01:00
jacob1
b3741cd67c lock icon on unpublished saves 2012-09-29 23:03:02 +01:00
Simon Robertshaw
006dfdf596 Move PPIP to powered 2012-09-29 23:02:22 +01:00
Simon Robertshaw
2e99638d76 Fix crash loading null stamp after pasting (http://powdertoy.co.uk/Discussions/Thread/View.html?Thread=15107) 2012-09-29 22:53:32 +01:00
Simon Robertshaw
ef24a1ad44 Stable release options 2012-09-29 14:51:27 +01:00
Simon Robertshaw
e8418a8ca0 Lua FileSystem API 2012-09-29 13:28:56 +01:00
Simon Robertshaw
f96cb74a08 ren.decorations() to enable/disable/get decorations (Lua API) 2012-09-29 11:45:41 +01:00
Simon Robertshaw
9a42e47eb0 Move old Lua API into another file, make the old drawin API have the old position quirk for rects, new graphics (gfx) api with drawRect, fillRect, drawTect, drawLine and textSize functions. 2012-09-29 00:20:52 +01:00
Simon Robertshaw
261c654ca0 HTTP/1.1: Allow multiple whitespace characters in header fields 2012-09-28 17:19:00 +01:00
Simon Robertshaw
92dd8ac804 Fix case sensitive filename 2012-09-27 14:29:50 +01:00
Simon Robertshaw
a953871bd8 Move Render presets to the right 2012-09-27 13:42:05 +01:00
Simon Robertshaw
b0b402d90e Improvement to some of the rendermode icons 2012-09-26 17:15:30 +01:00
Simon Robertshaw
ff24e97d3e Always focus text box for property tool 2012-09-26 16:56:22 +01:00
jacob1
6ec915df80 make PROP interface a little easier to use (first part of tpt issue 78) 2012-09-26 16:46:29 +01:00
jacob1
2f26fac9d0 Fix own / fav buttons being enabled even when not logged in 2012-09-26 16:46:21 +01:00
jacob1
e418ca5ac3 fix minor memory problem with last commit 2012-09-26 16:46:10 +01:00
jacob1
95cc715d71 render preset buttons in render options interface, also shift + 1 life view shortcut
modify it if you don't like how it looks, but it turned out better than I expected
2012-09-26 16:46:03 +01:00
jacob1
2a4298047c Fix smudge issue 2012-09-25 22:57:11 +01:00
jacob1
de7218da8d Fix black border around dialogs being off (I think I got all of them) 2012-09-25 20:10:23 +01:00
jacob1
5de2a4e479 Icon adjustments 2012-09-25 20:09:54 +01:00
jacob1
b57d956ca8 Icons and tooltips for everything in renderview. (Empty space not filled yet) 2012-09-25 20:09:43 +01:00
jacob1
187a5189d5 some improvements to the render options interface and checkboxes (icons and tooltips coming next) 2012-09-25 20:09:24 +01:00
jacob1
5ee1c7ff80 Fix incorrect deco colors being selected 2012-09-25 20:08:33 +01:00
jacob1
d5e322c98d small change 2012-09-25 20:07:48 +01:00
jacob1
a9ccbf409b display hex value in deco editor (replaces Cancel button) 2012-09-25 20:05:42 +01:00
jacob1
a4f12d367b Make number boxes easier to use, plus limit deco editor numbers to 255 2012-09-25 20:05:28 +01:00
jacob1
bb08de4544 allow alpha editing
Conflicts:

	src/colourpicker/ColourPickerActivity.cpp
2012-09-25 20:02:44 +01:00
jacob1
10c6c46e6f alt click alternative to middle click (that doesn't break line snapping) 2012-09-25 19:51:10 +01:00
jacob1
4be80a3c7c Fix crash - uninitialized (and not needed) variable 2012-09-25 19:50:14 +01:00
Simon Robertshaw
25d872ec48 MacOS X targets for Scons, Fix some inlines for clang 2012-09-25 17:53:48 +01:00
Simon Robertshaw
cfb8df0830 Work on Ahead-Of-Time compiler for PVM 2012-09-24 14:08:39 +01:00
Simon Robertshaw
2ddbd57677 If/elseif with simple conditions 2012-09-23 15:14:56 +01:00
Simon Robertshaw
1905e49744 Macros and property setting 2012-09-23 11:39:20 +01:00
Simon Robertshaw
644c130712 Set properties with integer.property 2012-09-21 21:21:03 +01:00
Simon Robertshaw
939a04d3c7 Testing new vm/language WIP 2012-09-21 15:05:50 +01:00
Simon Robertshaw
6e44ebc358 Checkbox, Slider and ProgressBar components for ui API 2012-09-17 12:20:58 +01:00
Simon Robertshaw
e52e9ce91c Prevent UI thread lockup when drawing hideously large progress bars for no reason. 2012-09-16 17:57:41 +01:00
Simon Robertshaw
bd02c36426 Right click menu to go to history and user info for save buttons 2012-09-16 17:09:23 +01:00
jacob1
cd7fe454b2 Fix minor highlighting bug in the save browser, votes counter is drawn on your saves even with mouse over thumbnail
this covers up the corner all the time, so i'm not sure if I should go back to the old way
2012-09-16 12:09:59 +01:00
jacob1
dd82ed8cd9 fix some errors in visual studio 2012-09-16 12:09:13 +01:00
jacob1
ad0149a1bb update version numbers 2012-09-16 12:07:39 +01:00
jacob1
4c791f4892 remove unneeded check 2012-09-16 12:07:24 +01:00
jacob1
45ab8cca23 Add icons back to search buttons, fix positioning of them, disable my own / fav buttons when still loading saves 2012-09-16 12:06:53 +01:00
jacob1
8f58c61c69 Show number of votes and the history button on your own saves 2012-09-16 12:05:29 +01:00
jacob1
eac109a563 fix possible crashes with save buttons and uninitialized renderer variables
Fixes second part of issue 179
2012-09-16 12:03:41 +01:00
Simon Robertshaw
95bbd04d21 Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-09-16 12:02:09 +01:00
Simon Robertshaw
42ec654f3e When reloading elements API, set packages.loaded["elements"] to nil to prevent luaL_register from trying to reuse a nilled table. Fixes #189 2012-09-16 12:01:48 +01:00
Savely Skresanov
ec0dfa27e8 Hooked more functions to VM. 2012-09-15 21:34:27 +07:00
Savely Skresanov
b626864293 Some work on adding new hooks. 2012-09-15 21:34:18 +07:00
Simon Robertshaw
8a4d18df49 Better reporting dialogue 2012-09-15 15:16:46 +01:00
Simon Robertshaw
3ed5672052 Render fire after wall drawing 2012-09-15 15:00:16 +01:00
Simon Robertshaw
b8a5b8ecb3 Fix file reading, fix ARG implementation 2012-09-15 12:26:52 +01:00
Simon Robertshaw
3b2f4d59fc Better fire rendering for saves 2012-09-14 23:53:58 +01:00
Simon Robertshaw
5b9032fb3f Correct initialisation of FIGH 2012-09-14 22:23:35 +01:00
Simon Robertshaw
486b34ebe5 Fixes invalid text pasting, Adds API to VM, allow program loading in Lua and assigning to update function 2012-09-14 22:03:14 +01:00
Simon Robertshaw
685be24ffa Remove testing particle from repo 2012-09-13 23:01:30 +01:00
Simon Robertshaw
5b52ac3675 Save history and new multiline formatter 2012-09-13 22:39:01 +01:00
Simon Robertshaw
a11cd592cb Show version info in update prompt. Fixes #177 2012-09-13 18:33:12 +01:00
Simon Robertshaw
f7f51d5045 Make sample tool sample different life types. Fixes #184 2012-09-13 16:41:35 +01:00
Simon Robertshaw
44c55fbd45 Ensure cursor position is correct after placing stamp. 2012-09-13 15:54:54 +01:00
Simon Robertshaw
cd03297086 Mouse move on exiting Window. Fixes 181 2012-09-13 15:51:23 +01:00
Simon Robertshaw
03e40d53bc Allow editing link signs. Fixes #182 2012-09-13 11:12:39 +01:00
Simon Robertshaw
3e0fcc904e Disable JIT for now 2012-09-13 11:01:09 +01:00
Simon Robertshaw
acf652595c Some progress on JIT - no syscalls yet 2012-09-13 10:14:08 +01:00
Simon Robertshaw
771d5df5c9 Fix buffer overflow with HTTP headers caused by recent \r\n commit" 2012-09-11 13:13:24 +01:00
Simon Robertshaw
369ba2eced More VM syscalls 2012-09-09 20:03:27 +01:00
Simon Robertshaw
b44ac1bb7d Allow terminating the VM 2012-09-09 19:16:25 +01:00
Simon Robertshaw
ddeb11bb7e Merge 2012-09-09 17:56:24 +01:00
Simon Robertshaw
2d2f8713bc Move opcodes and syscalls out of main virtualmachine coee 2012-09-09 17:55:03 +01:00
Simon Robertshaw
d5ae22115d Preserve stack pointer after VirtualMachine::Call() 2012-09-09 15:22:54 +01:00
Simon Robertshaw
7b05862cfe Disable VM test file by default 2012-09-09 13:07:41 +01:00
Savely Skresanov
b2a2940d8c Add test files. 2012-09-09 18:55:42 +07:00
Simon Robertshaw
cd6c193e81 Virtual machine 2012-09-09 12:51:37 +01:00
Simon Robertshaw
ba822dcbd2 Remove debug crap 2012-09-07 12:30:45 +01:00
Simon Robertshaw
04e0d0d5ad Hidden elements in element search 2012-09-07 01:05:36 +01:00
jacob1
5a91b83875 revert changing the lua/sdl includes and min/max changes 2012-09-07 00:53:29 +01:00
jacob1
66af9969d6 Fix one more compiling error
(was using outdated SearchModel.h so reverted to official version)
2012-09-07 00:53:04 +01:00
jacob1
f8f70a3f77 Visual studio compatibility
This removes some inlines when using visual studio to compile, uisng TPT_NO_INLINE. It also fixes many other problems visual studio has with the code
2012-09-07 00:52:56 +01:00
Simon Robertshaw
58fa3dd539 Fix some off-by-one mouse clamping issues 2012-09-07 00:51:14 +01:00
jacob1
76477e1b46 Some improvements to the appearence of the save browser and preview
Make huge labels not so huge, fix color of some buttons
2012-09-07 00:38:09 +01:00
jacob1
2dcdca2761 fix spark color in nothing mode 2012-09-07 00:37:53 +01:00
jacob1
c32035b8ca Fix PRTI/PRTO color, debug lines only drawn in debug mode. Fixes # 148 2012-09-07 00:37:17 +01:00
jacob1
22de8ecb6c Change hover color of update box (white just didn't look right) 2012-09-07 00:36:19 +01:00
jacob1
24b4b0b187 Fix bugs with energy particles in PIPE 2012-09-07 00:36:02 +01:00
jacob1
1391de2e3a Wall names in HUD
Conflicts:

	src/game/GameView.cpp
2012-09-07 00:35:33 +01:00
Simon Robertshaw
2243c86ef9 More demonstration of my inability to commit the saved file 2012-09-06 01:30:11 +01:00
Simon Robertshaw
993fca3d02 Gah, amend previous 2012-09-06 01:27:32 +01:00
Simon Robertshaw
9e3782ef1d Fix Line/Rect drawing in zoom window 2012-09-06 01:10:57 +01:00
Simon Robertshaw
9432eb63a2 Some simulation API 2012-09-05 22:43:37 +01:00
Simon Robertshaw
9be4f41809 Fix setting colour presets 2012-09-05 21:53:46 +01:00
Simon Robertshaw
b0158e2f60 Changes to Smudge and blending modes (make them a little slower and easier to handle) 2012-09-05 21:49:34 +01:00
Simon Robertshaw
3d0ce2ac37 Correct default tools 2012-09-05 21:30:49 +01:00
Simon Robertshaw
37129abbc6 Allow mass unfavouring, unfavouring from the preview view. Fixes #149 2012-09-05 20:24:46 +01:00
Simon Robertshaw
5da70ef8a6 Ensure errors are caught and displayed during tag operations. Fix some issues with the Tag ui. Fixes #157 2012-09-05 19:47:03 +01:00
Simon Robertshaw
09c266f252 Perform pointtranslate (zoom) only in GameView. Fixes point line issue in #175 2012-09-05 18:44:53 +01:00
Simon Robertshaw
98725dea26 Only use stairstepping for resampling when absolutely necessary (when the downscaling factor is a power of 2). Somewhat fixes #176 2012-09-05 18:27:16 +01:00
Simon Robertshaw
d61690bc09 Prevent setting double scale on smaller screens. Fixes #166 2012-09-05 17:31:49 +01:00
Simon Robertshaw
d379390d06 Newtonian gravity field info in HUD (Maybe we could have an arrow to show direction in future). Fixed #152 2012-09-05 17:02:03 +01:00
Simon Robertshaw
3f43763695 Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-09-05 16:56:54 +01:00
Simon Robertshaw
5904844e96 Add way of uniquely identifying tools, preserve active menu and tools when rebuilding menus (fixes #170) 2012-09-05 16:56:41 +01:00
Simon Robertshaw
0230f4d9ea Remove unused statement wasting memory 2012-09-04 15:48:38 +01:00
Simon Robertshaw
d256439c40 Some simulation API 2012-09-04 15:20:34 +01:00
Simon Robertshaw
c63f6adcb8 Fix crash/lock up when loading tags 2012-09-03 20:54:55 +01:00
Simon Robertshaw
41b464953a Load tags seperately from saves in search 2012-09-03 17:38:26 +01:00
Simon Robertshaw
7d9f8a0b1d Use \r\n instead of just \n for HTTP headers 2012-09-03 17:37:58 +01:00
Simon Robertshaw
612dca950d Move class definitions for ThumbnailBrokeer into header 2012-09-03 17:37:25 +01:00
Simon Robertshaw
32d73da322 Improve save preview layout 2012-09-03 13:38:13 +01:00
Simon Robertshaw
b05f114174 Views in save Preview and use old vote bars. Fixes #171 2012-09-03 13:25:48 +01:00
Simon Robertshaw
51d2c783cc Remove translation from alt-click to middle click to fix line snapping. Fixed #173 2012-09-03 12:43:15 +01:00
Simon Robertshaw
1ac964d9ba Ensure saves are expanded in memory when performing translate operations. Fixes #174 2012-09-03 12:38:09 +01:00
Simon Robertshaw
4e09a077a4 Textbox component for Lua interface API 2012-09-02 23:55:08 +01:00
Simon Robertshaw
b7616a91d8 Prevent changing of sorting mode when results haven't loaded. Fixes #172 2012-09-02 15:40:39 +01:00
Simon Robertshaw
6d991c10d7 Logging for UI component events, tr 2012-09-01 20:13:51 +01:00
Simon Robertshaw
9bc06a2fc4 "Molten X" for mouseover with lava, fixes #165 2012-09-01 18:36:43 +01:00
Simon Robertshaw
9751c962b1 No default description, fixes #153 2012-09-01 18:33:28 +01:00
Simon Robertshaw
d9f9e88ee4 Use original naming for sorting button in save search, fixes #155 2012-09-01 18:25:03 +01:00
Simon Robertshaw
ba55da77a9 !load command for old console 2012-09-01 18:13:13 +01:00
Simon Robertshaw
618e29d5d4 Colour picker and presets for decorations 2012-09-01 17:55:27 +01:00
Simon Robertshaw
0a67e560f4 Fix Simulation Tool brush issue (misalignment/didn't work with small brushes). Fixes #167 2012-09-01 17:17:15 +01:00
Simon Robertshaw
355c43723f More interface API 2012-08-31 22:02:02 +01:00
Simon Robertshaw
e8628274ad Events for Window object (Lua) 2012-08-31 20:32:14 +01:00
Simon Robertshaw
493a32a1b2 Some Lua interface API stuff 2012-08-31 19:39:11 +01:00
Simon Robertshaw
322d224fa7 Get/Set single element properties 2012-08-30 17:09:27 +01:00
Simon Robertshaw
7c2e84b7bb More methods for setting element properties 2012-08-30 14:28:53 +01:00
Simon Robertshaw
a9fba97c36 Fix streamline placement 2012-08-30 01:50:18 +01:00
Simon Robertshaw
6dbcd3cc59 Fix cursour falling just out zoom window 2012-08-30 00:18:42 +01:00
Simon Robertshaw
58dc2559aa Implement retrieval of element properties 2012-08-29 22:04:07 +01:00
Simon Robertshaw
3e78f64da8 Bitops for Lua, incomplete elements API 2012-08-29 20:50:18 +01:00
Simon Robertshaw
6760d15be7 Additions to Lua API: Renderer (colourMode, displayMode, renderMode, plus all the macros used for Particle/display/colour modes) 2012-08-28 21:39:09 +01:00
Simon Robertshaw
856a33e3db Update version number 2012-08-28 18:42:36 +01:00
Simon Robertshaw
07a66dc3dc tpt.element also converts numbers to names 2012-08-28 16:12:30 +01:00
Simon Robertshaw
92f3ad5814 Black decorations only in thumbnails 2012-08-28 15:53:07 +01:00
Simon Robertshaw
1fb544815f Correct PHOT colour during fusion 2012-08-28 15:13:20 +01:00
Simon Robertshaw
14c0ea59a9 cold phot doesn't burn things 2012-08-28 15:09:32 +01:00
Simon Robertshaw
05e32f1698 Fix things melting with heat sim off 2012-08-28 15:08:11 +01:00
Simon Robertshaw
4263e3aab7 DTEC, generates a spark when something with it's ctype is nearby 2012-08-28 14:17:01 +01:00
Simon Robertshaw
29619e9ebf WOOD and PLNT turn grey when hot, bluish when cold 2012-08-28 13:19:34 +01:00
Simon Robertshaw
df26523e10 Save decorations and gravity field drawing to prefs 2012-08-28 13:06:45 +01:00
Simon Robertshaw
99b2d8d67d Limit SPNG saturation and reduce absorbtion rate for GEL and SPNG with some elements 2012-08-28 12:48:50 +01:00
Simon Robertshaw
5ded005b0c Correct proportions of CO2 and WATR when GEL/SPNG is absorbing BUBW 2012-08-28 12:40:18 +01:00
Simon Robertshaw
91ec4d1125 GEL and SPNG absorb water from more elements and leave behind what the water was mixed width 2012-08-28 12:38:18 +01:00
Simon Robertshaw
86fc8e1eb3 TPT: Prevent Acid from eating broken glass 2012-08-28 12:28:16 +01:00
Simon Robertshaw
09d32f225b Ensure previewview comment box resizing is triggered. 2012-08-27 18:21:34 +01:00
Simon Robertshaw
2ae37525e3 Nicer HUD for beta 2012-08-27 16:14:13 +01:00
Simon Robertshaw
072cfe67aa Missing part of TPT commit 04a09d997, for TTAN, nt and surround_space is now from 0 to 8 2012-08-27 15:11:45 +01:00
Simon Robertshaw
dd2fc64793 Fix bug in history restoring where the lastActiveIndex is not updated leading to incomplete restoring 2012-08-27 13:33:15 +01:00
Simon Robertshaw
0ca680f4c8 Enable decorations in renderer for local save items, disable for server save previews. 2012-08-27 13:32:17 +01:00
Simon Robertshaw
ebc4116675 Disable decorations when rendering saves 2012-08-26 16:37:17 +01:00
Simon Robertshaw
e88fca8aa1 Save ID copying for preview 2012-08-25 18:11:36 +01:00
Simon Robertshaw
5c293ba9bf Fix messed up revert 2012-08-25 16:41:34 +01:00
Simon Robertshaw
59a78621d9 Complete "Consistent proportions of WATR and SALT in SLTW" after REALISTIC revert 2012-08-25 16:36:01 +01:00
Simon Robertshaw
1987efd6e5 Revert "HYGN now combusts and fuses properly"
This reverts commit ede6876a82.
2012-08-25 16:33:12 +01:00
Simon Robertshaw
9b10f0c390 Revert "final fusion fixes"
This reverts commit add4226f31.
2012-08-25 16:32:51 +01:00
Simon Robertshaw
082072a05e OPS: Fix byte order when unpacking 4 byte tmp fields 2012-08-25 16:29:27 +01:00
Simon Robertshaw
6ace7bd26f Clear area behind zoom, fixes #144 2012-08-25 13:41:14 +01:00
Simon Robertshaw
1c443ceb57 Sample tool samples decoration colour when deco menu is visible. fixes #146 2012-08-25 13:36:53 +01:00
Simon Robertshaw
52ec84198b Correct size for textbox limits, fixes #8 2012-08-25 12:58:56 +01:00
Simon Robertshaw
64a404263a Tooltips for quick options menu, #113 2012-08-25 11:37:55 +01:00
Simon Robertshaw
5c683f6bc3 Tooltips for sign in button, fixes #113 2012-08-25 10:59:59 +01:00
Simon Robertshaw
ae3c9ddf39 Don't you just hate those fencepost errors... Stop going out of bounds when traversing the X axis with gravity mask. 2012-08-24 20:36:23 +01:00
Simon Robertshaw
98da88e34f Alt click alternative to middle clicking 2012-08-24 19:15:22 +01:00
Simon Robertshaw
a8d4bdeb2d Fix install crash (somehow, I commented out the bit the gets the current directory, leading to strlen op on a NULL pointer), fixes #145 2012-08-24 19:03:20 +01:00
Simon Robertshaw
822539bcdb More efficient floodfill function for gravity walls, no need for larger stacks with 64bit builds 2012-08-24 18:22:02 +01:00
Simon Robertshaw
beb0e80849 Prevent key overlap for Stickman movement and Gravity/Debug/Stamp actions, fixes #81 2012-08-24 17:34:36 +01:00
Simon Robertshaw
a28121b166 Fix prev, next buttons in Stamps browser. #141 2012-08-24 11:59:26 +01:00
Simon Robertshaw
b7328e03ac Remember Console history 2012-08-21 17:58:45 +01:00
Simon Robertshaw
fb6f36907f PPIP glowing brick in fire mode 2012-08-21 14:58:23 +01:00
Simon Robertshaw
62f067d29d Fix stamps page count 2012-08-21 14:06:54 +01:00
Simon Robertshaw
b639da3692 Use collapsed saves when using stamp browser, fix memory leak when saving stamps 2012-08-21 13:30:30 +01:00
Simon Robertshaw
b6736f967e Add EMP flash, fixes #137 2012-08-21 13:00:31 +01:00
Simon Robertshaw
e25d934856 Show stamp selection and placement in zoom window. Fixes #140 2012-08-21 12:31:27 +01:00
Simon Robertshaw
7b8647cf15 Add missing files from e54eeae 2012-08-21 12:27:13 +01:00
Simon Robertshaw
4b8ebe4abd Air heat simulation now knows about gravity mode. fixes #142 2012-08-21 12:26:39 +01:00
Simon Robertshaw
e54eeae883 Move tick time into engine, fixes #139 2012-08-21 01:24:38 +01:00
Simon Robertshaw
c9997f8aea Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-08-21 01:09:37 +01:00
Simon Robertshaw
ba1ce66968 Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138 2012-08-21 01:09:22 +01:00
Bryan Hoyle
add4226f31 final fusion fixes 2012-08-20 17:46:51 -04:00
Bryan Hoyle
a403be9890 Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-08-20 16:59:37 -04:00
Bryan Hoyle
ede6876a82 HYGN now combusts and fuses properly 2012-08-20 16:59:19 -04:00
Simon Robertshaw
451a94a6ac Clear fire/persistent effects when clearing the simulation, fixes #136 2012-08-20 20:49:00 +01:00
Simon Robertshaw
1b75cbdcc9 Limit on text width in textboxes 2012-08-20 20:41:38 +01:00
Simon Robertshaw
8e43ee60bb Remove wall frame when loading saves, fixes #103 2012-08-20 18:53:03 +01:00
Simon Robertshaw
cb05bc67c6 Ensure localBrowser is NULL when starting to prevent crash 2012-08-20 18:52:37 +01:00
Simon Robertshaw
94b94cf818 Update version number 2012-08-20 18:43:51 +01:00
Simon Robertshaw
72e441132f TPT: Prevent accidental infinite loops in lua, fixes #115 2012-08-20 18:37:42 +01:00
Simon Robertshaw
51a0fb2d45 TPT: Prevent CONV from destroying diamond 2012-08-20 16:54:56 +01:00
Simon Robertshaw
b318c3721a TPT: Powered pipe, based on jacob1's commits 2012-08-20 16:48:03 +01:00
Simon Robertshaw
13888623a5 TPT: Error reporting in other things besides just step functions (No error reporting in graphics or part update to prevent massive spam) fixes #134 2012-08-20 15:00:32 +01:00
Simon Robertshaw
9c599a7b9f TPT: fix enegery particles going into PIPE 2012-08-20 14:26:08 +01:00
Simon Robertshaw
5ea1889e81 TPT: fix set_property not checking stacked particles when specifying range, add dcolor property setting/getting 2012-08-20 14:24:19 +01:00
Simon Robertshaw
fb02d57aca TPT: Fix salt/water proportions when dissolving into DSTW as well 2012-08-20 14:08:27 +01:00
Simon Robertshaw
29283b038c TPT: Consistent proportions of WATR and SALT in SLTW (1 SALT + 3 WATR = 4 SLTW) 2012-08-20 13:55:11 +01:00
Simon Robertshaw
7fc8d5f388 Add missing legacy update function 2012-08-20 13:41:03 +01:00
Simon Robertshaw
9ecc29d24c Correct position of context menus in scrolling panels, fixes #135 2012-08-20 12:54:48 +01:00
Simon Robertshaw
43ed72b4c5 Fix a few small (a lot of big) memory leaks associated with the stamps browser 2012-08-19 21:31:24 +01:00
Simon Robertshaw
9dd9d52564 Herp derp, forgot to call dealloc in GameSave destructor 2012-08-19 20:57:14 +01:00
Simon Robertshaw
c0c30bd305 Looks like calling the destructor manually is not a good idea. 2012-08-19 20:44:50 +01:00
Simon Robertshaw
b1df1e164c Catch exceptions when loading initial stamp 2012-08-19 18:57:29 +01:00
Simon Robertshaw
186e62dec4 Pad frame numbers with zeros for screenshots and recording 2012-08-19 16:55:46 +01:00
Savely Skresanov
d6fe7fa2c8 Basic realistic heat and latent heat support. 2012-08-19 20:06:10 +07:00
Simon Robertshaw
7d8c6c7f86 TPTScript: Allow numbers with decimal point 2012-08-19 12:50:04 +01:00
Simon Robertshaw
4c63a6f593 Fix the Lua EngineProcess bug, not sure how either (needs further investigation) I suspect that stacking Lua calls upon each other (which will happen in engine->Tick()/engine->Draw()) is causing some unusual behaviour, checking for an engine break just before this fixes it. fixes #129 2012-08-19 12:16:51 +01:00
Simon Robertshaw
fee3f3bf44 Ensure Lua mouse status is reset at startup, fixes #130 2012-08-19 12:08:46 +01:00
Simon Robertshaw
571abd97a3 Prevent mouse up from leaving a little blob, fixes #130 2012-08-19 11:44:14 +01:00
Simon Robertshaw
3d140d310e Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-08-19 11:30:57 +01:00
Simon Robertshaw
7ae2369dda Make ngrav negative, fixes #133 2012-08-19 11:30:44 +01:00
Simon Robertshaw
0092229132 Don't delete Simulation::Elements now that it's not runtime allocated 2012-08-19 00:49:24 +01:00
Simon Robertshaw
93afe0a1ea More robust EngineProcess (still doesn't fix lua bug) 2012-08-19 00:40:20 +01:00
Simon Robertshaw
740f0d30c3 Blocking Confirm/Error/Input prompts (EngineProcess creates a new event loop which can be broken out of with Engine::Break()) 2012-08-18 22:08:20 +01:00
Simon Robertshaw
63da7a4afe Initialise stickman legs correctly 2012-08-18 17:31:31 +01:00
Simon Robertshaw
ce3bb6f755 Element slots default to disabled 2012-08-18 17:19:39 +01:00
Simon Robertshaw
9b2433f912 Fix typo 2012-08-18 17:13:13 +01:00
Simon Robertshaw
7018e46fac Remove disabled elements when simulating. Fix crash when kill_part is run on elements with invalid types 2012-08-18 17:08:24 +01:00
Simon Robertshaw
69b788ba7d Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-08-18 12:44:32 +01:00
Simon Robertshaw
97a819c79c Fix autoupdate issue where temp file is not deleted, fixes #128 2012-08-18 12:44:07 +01:00
Simon Robertshaw
a9cce88be6 Fix crash when creating null terminator in updateRichText (writing out of bounds) 2012-08-17 23:16:55 +01:00
Simon Robertshaw
5b51e67044 PPM screen recording 2012-08-17 23:09:48 +01:00
Simon Robertshaw
706bd0fa97 Tick client more frequently and remove *pyc files from git 2012-08-17 17:20:09 +01:00
Simon Robertshaw
02f98ddbe9 Ensure input text is null terminated when parsing RichText 2012-08-17 17:17:36 +01:00
Simon Robertshaw
21f050800b Load signs from OPS data 2012-08-17 17:08:24 +01:00
Simon Robertshaw
d24e439a1e Red error, ensure residual actiondata is not read for RichLabel 2012-08-17 17:02:02 +01:00
Simon Robertshaw
b835861519 Some more safety for RichText parser 2012-08-17 16:38:06 +01:00
Simon Robertshaw
614a90cfc6 RichText label (used for MOTD), fixes #123 2012-08-17 16:08:03 +01:00
Simon Robertshaw
6500923aa5 Sample tool, fixes #122 2012-08-17 13:40:10 +01:00
Simon Robertshaw
be42cec498 Fix sign tool message box placeholder text 2012-08-17 12:24:46 +01:00
Simon Robertshaw
edad8f46af Undo/Snapshots, fixes #118 2012-08-16 22:03:40 +01:00
Simon Robertshaw
f19c7f62c7 Air invert and grid mode switching 2012-08-16 12:15:29 +01:00
Simon Robertshaw
08f9721619 Missing part of fix for save comments page number 2012-08-15 18:42:19 +01:00
Simon Robertshaw
98445721fd xor_bitmap drawing for renderer 2012-08-15 16:25:13 +01:00
Simon Robertshaw
2f0e67433c Ensure zoom is drawn after particles for OpenGL Rendering, draw walls onto the correct framebuffer 2012-08-15 15:02:48 +01:00
Simon Robertshaw
0bb4c0e57a Fix cursor and zoom with OpenGL 2012-08-15 13:34:37 +01:00
Simon Robertshaw
1e406eeaf4 Revert some changes by Triclops200 in 42d707f8a4, Broke prototypes for drawrect with pixel functions, seems to have modified drawrect to make filled rects (forgot about fillrect?). Also use correct macros for getting colour components out of pixel data 2012-08-15 13:02:15 +01:00
Simon Robertshaw
54a81031bc Revert "Missing "invert" declaration in OpenGLDrawMethods"
This reverts commit 708379a3f8.
2012-08-15 12:55:41 +01:00
Simon Robertshaw
2378363055 Merge branch 'master' of github.com:FacialTurd/PowderToypp 2012-08-15 12:50:06 +01:00
Simon Robertshaw
708379a3f8 Missing "invert" declaration in OpenGLDrawMethods 2012-08-15 12:49:10 +01:00
Bryan Hoyle
42d707f8a4 Very very basic wall rendering for opengl 2012-08-14 23:18:39 -04:00
Simon Robertshaw
c8080cb025 Photon wavlength info for HUD, fixes #111 2012-08-14 19:18:59 +01:00
Simon Robertshaw
03f455bc1a Fix typo, HUD variable should be Tmp, not Temp, #111 2012-08-14 19:00:13 +01:00
Simon Robertshaw
079b51a26c Stricter formatting for Property tool, attempts to address #109 2012-08-14 18:52:14 +01:00
Simon Robertshaw
fcc17ee652 Easier okaying/cancelling for Property tool Window 2012-08-14 18:38:46 +01:00
Simon Robertshaw
34e2ec2459 Tooltips for menu buttons, fixes #113 2012-08-14 18:23:56 +01:00
Simon Robertshaw
fc1274f381 Fix crash caused by malformed preference files, fixes #110 2012-08-14 18:14:06 +01:00
Simon Robertshaw
a7711668b7 Strings.h for strcasecmp in Simulation 2012-08-14 18:06:18 +01:00
Simon Robertshaw
bd7dd20742 Better text selection colour invert, fixes #107 2012-08-14 18:05:07 +01:00
Simon Robertshaw
3fcfede08f Add missing strings.h header for strcasecmd 2012-08-14 17:29:59 +01:00
Simon Robertshaw
a76e4d71a9 Name colour formatting in comments 2012-08-14 17:20:47 +01:00
Simon Robertshaw
03188e5853 Ensure comments page count is loaded correctly, fixes #117 2012-08-14 17:00:12 +01:00
Simon Robertshaw
66fffe649d Prevent page count for being all over the place in search 2012-08-14 16:41:06 +01:00
Simon Robertshaw
b06f7f5b6d Air and heat tool limits, fixes #112 2012-08-14 16:29:07 +01:00
Simon Robertshaw
e13476a406 Cut region, fixes #105 2012-08-14 16:28:44 +01:00
Simon Robertshaw
70758cc70e Allow key releases when in stamp selecting/placement #104, #105 2012-08-14 16:07:50 +01:00
Simon Robertshaw
45b275be0d Reset drawing state when placing stamps 2012-08-14 16:04:38 +01:00
Simon Robertshaw
7ccb7e53fe Show some info when selecting stamps, #104 2012-08-14 16:01:57 +01:00
Simon Robertshaw
8604b30548 Stamp selection and placements works through the zoom window, #104 2012-08-14 15:35:03 +01:00
Simon Robertshaw
02696b1cbe Snap stamp selection to CELL res, #104 2012-08-14 15:27:30 +01:00
Simon Robertshaw
ef6c4e91ae Correct tooltip for save button 2012-08-14 15:02:49 +01:00
Simon Robertshaw
cee8458953 Whoops, close DropDown windows before disposing 2012-08-14 14:47:58 +01:00
Simon Robertshaw
db519a7036 Varying borders for button, exit dropdown menu with Esc or outside click, fixes #100 2012-08-14 14:22:41 +01:00
Simon Robertshaw
d5e57e04d0 Fix tool buttons 2012-08-14 14:00:39 +01:00
Simon Robertshaw
e420ee51b1 Lua autorun, fixes #99 2012-08-14 13:14:49 +01:00
Simon Robertshaw
fed38185fd Placeholder text for sign tool window, #98 2012-08-14 13:09:13 +01:00
Simon Robertshaw
49ae651dd3 Focus text field for Sign Tool Window, fixes #98 2012-08-14 13:08:42 +01:00
Simon Robertshaw
4f3e03e317 Update gitignore, show votes correctly, fixes #97 2012-08-14 13:06:10 +01:00
Simon Robertshaw
c877e445b9 Remove temp files created by scheme handling 2012-08-14 12:36:50 +01:00
Simon Robertshaw
53b8e8ca78 ptsave scheme handling for Linux, addresses #97 2012-08-14 12:36:04 +01:00
Simon Robertshaw
fe59ec9659 Only call button actions if the mouse is released inside the button. Fixes #96 2012-08-14 12:15:28 +01:00
Simon Robertshaw
b05a847e96 Fix crash when using search (std::remove doesn't seem to work as I expected), Add clickable author names for search. Fixes #95 2012-08-14 12:03:33 +01:00
Simon Robertshaw
651546b5bf Fix bug where thumbnails would not always show in the search 2012-08-13 21:08:55 +01:00
Simon Robertshaw
d8c299c30a Clear render, display and colour mode in renderer contructor 2012-08-13 18:16:25 +01:00
Simon Robertshaw
074dcd0b42 Precompile some headers. Fix sconscript to prevent recompiling everything 2012-08-13 15:43:57 +01:00
Savely Skresanov
e6feb6f101 Now stickmen and fighters show HP. Closes #93 2012-08-13 12:47:53 +01:00
Bryan Hoyle
ae469e8e02 oops, fixed a bad piece of code I added 2012-08-12 19:10:01 -04:00
Bryan Hoyle
1dc6c7cfef Opengl fixes 2012-08-12 17:40:44 -04:00
Simon Robertshaw
8ca27520a4 Use forward declarations more to avoid excessive includes 2012-08-12 22:32:57 +01:00
Bryan Hoyle
ca7c0e7370 More efficiency, fix of point size being too big 2012-08-12 16:45:37 -04:00
Bryan Hoyle
0a01eacd09 A litte more efficient 2012-08-12 16:34:49 -04:00
Bryan Hoyle
98d31ab5a5 Fixed brush for now, used inefficient algorithm until I can get pure opengl working 2012-08-12 16:32:28 -04:00
Bryan Hoyle
f9a59d22db Revert "minor renderer changes, brush still not working"
This reverts commit 1b2e0e68bd.
2012-08-12 15:15:17 -04:00
Bryan Hoyle
44645c93ee Revert "Revert "fixed --opengl-renderer from segfaulting. Added a gitignore for vim swap files""
This reverts commit 90f505c2da.
2012-08-12 15:14:46 -04:00
Bryan Hoyle
90f505c2da Revert "fixed --opengl-renderer from segfaulting. Added a gitignore for vim swap files"
This reverts commit 90f71f3b11.
2012-08-12 15:13:32 -04:00
Bryan Hoyle
1b2e0e68bd minor renderer changes, brush still not working 2012-08-12 15:11:17 -04:00
Bryan Hoyle
90f71f3b11 fixed --opengl-renderer from segfaulting. Added a gitignore for vim swap files 2012-08-12 14:47:13 -04:00
Bryan Hoyle
530e093d8b now opengl and opengl renderer run and compile, but renderer has a segfault, will fix 2012-08-12 14:29:27 -04:00
Simon Robertshaw
7084c8be28 Fix spinner drawing 2012-08-12 18:36:30 +01:00
Bryan Hoyle
e7b653a0c7 more fixes 2012-08-12 11:55:59 -04:00
Bryan Hoyle
07821d9c85 Minor opengl fixes, still not compiling, look at line 14 in src/graphics/OpenGLGraphics.cpp, build/src/graphics/OpenGLGraphics.cpp:14:15: error: expected primary-expression before '{' token
build/src/graphics/OpenGLGraphics.cpp:14:15: error: expected ')' before '{' token
'
2012-08-12 11:38:26 -04:00
Simon Robertshaw
f1fc3811aa Remove more unused files 2012-08-12 16:29:40 +01:00
Simon Robertshaw
760a721e0d Remove old unused textarea 2012-08-12 16:20:43 +01:00
Simon Robertshaw
5d3d1d4916 Message of the day and user session check on startup 2012-08-12 15:15:47 +01:00
Simon Robertshaw
08b4e5553a Implement some missing lua functions, PNG format creation (requires zlib) 2012-08-11 20:24:48 +01:00
Simon Robertshaw
ecbb1e9103 Lua element and graphics functions working (element_func no longer uses "replace" parameter and replaces all functions) 2012-08-11 12:45:49 +01:00
Simon Robertshaw
2f76c2374d TPT: Give menu color to elements without one (stickmen, TRON, and WARP) 2012-08-11 11:57:21 +01:00
Simon Robertshaw
ca7b02dbfd Don't set tool strength when there's no tool 2012-08-10 23:11:37 +01:00
Simon Robertshaw
e34ed89dc3 Some fixes for memory leaks 2012-08-10 23:08:55 +01:00
Simon Robertshaw
a8fbd905c2 Fix issue where buttons will cause heap corruption if they are removed from inside DoAction 2012-08-10 22:59:46 +01:00
Simon Robertshaw
5a8d26554a Fix crash when using mouse click with unassigned tools 2012-08-10 22:31:58 +01:00
Simon Robertshaw
a6b3674f22 Fix PIPE, fixes #92 2012-08-10 22:30:19 +01:00
Simon Robertshaw
92311a38c0 Change zoom size with [ and ], fixes #90 2012-08-10 22:09:04 +01:00
Simon Robertshaw
c1d7de24f2 Sign moving, fixes #10 2012-08-10 22:01:57 +01:00
Simon Robertshaw
98209da0a5 Save Open signs working 2012-08-10 20:50:36 +01:00
Simon Robertshaw
150114c11f Alt Z to stick zoom to cursor, disable cursor rendering when zoom is being placed. Fixes #32 2012-08-10 19:11:59 +01:00
Simon Robertshaw
3499cb3035 Wall brush, fixes #63 2012-08-10 18:59:05 +01:00
Simon Robertshaw
cd051924d9 Installation with Ctrl+I, fixes #77 2012-08-10 15:41:39 +01:00
Simon Robertshaw
643128ac5f Invert button hover state for alternative load and save. addresses some of #80 2012-08-10 14:42:01 +01:00
Simon Robertshaw
c62f65585a Create local saves dir if it does not exists (fixes #80) 2012-08-10 14:34:55 +01:00
Simon Robertshaw
3f20b4256b Correct position of cancel button in server save dialogue 2012-08-10 14:22:32 +01:00
Simon Robertshaw
c333e9bb99 Correct position of cancel button in local save dialogue as per #80 2012-08-10 14:21:38 +01:00
Simon Robertshaw
a45ca0363e Tool - Correct box drawing. Finishing touches to tool strength (Fixes #87) 2012-08-10 14:12:56 +01:00
Simon Robertshaw
810ea42f99 Only render gravity lensing if it's enabled, Ctrl and Shift to alter tool strength (Shift = x10, Ctrl = x0.1) 2012-08-10 14:03:23 +01:00
Simon Robertshaw
fd40ed234a Impose limit on cursor radius (Limit is radius 128, somewhat smaller than TPT, but I don't think a larger size is necessary), fixes #88 2012-08-10 13:17:19 +01:00
Simon Robertshaw
0e67fe028b Use Left modifier keys 2012-08-10 12:43:21 +01:00
Simon Robertshaw
b01b0e422a HUD verbose sample info with 'd', fixes #71 2012-08-09 21:28:43 +01:00
Simon Robertshaw
9971ea63b7 Slow LIGH creation speed, fixes #86 2012-08-09 21:05:20 +01:00
Simon Robertshaw
ac45502de9 Ensure keyrepeat is disabled at component creation 2012-08-09 20:38:06 +01:00
Simon Robertshaw
3bdfd510b2 Gravity lensing 2012-08-09 01:17:01 +01:00
Simon Robertshaw
bb99efdedf Persistent mode 2012-08-09 00:57:35 +01:00
Simon Robertshaw
d352a10d80 PTsave opening 2012-08-08 21:32:10 +01:00