Commit Graph

261 Commits

Author SHA1 Message Date
Simon Robertshaw
5cde976f7e Fix zoom in deco mode 2012-08-02 17:18:58 +01:00
Simon Robertshaw
f1c493450a Make console_ui cover up right menu margin 2012-08-02 14:34:35 +01:00
jacob1
daeddd5519 move some key stuff out of sdl_poll, zoom won't be triggered even when disabled by lua now
Conflicts:

	src/interface.c
	src/main.c
2012-08-02 14:26:44 +01:00
Simon Robertshaw
3f6921229b Correct pasting text within existing text, courtesy of jacob1 2012-07-24 02:03:37 +02:00
jacksonmj
ded23cfa94 Fix minor bug with deco sample tool
If particles are not being drawn with blendpixel, then it is possible for the
R/G/B component of a pixel to be 255. Adding 1 gives 256, which does not
produce the right colour when combined into a RRGGBB value
2012-06-21 11:06:27 +01:00
Simon Robertshaw
939265a77d Deferred loading of save files 2012-06-01 20:34:17 +01:00
Savely Skresanov
19ae18c059 Added a settings option to draw a wall frame around screen. 2012-05-31 17:49:40 +07:00
jacksonmj
ebda0f9b4d Don't show disabled elements in element search 2012-05-26 22:24:02 +01:00
Simon Robertshaw
fd868032fe Download progress bar for save opening 2012-05-24 21:31:04 +01:00
Simon Robertshaw
2f145e8188 Add DISPLAY_EFFE back after it was removed by 0799c2e09d 2012-05-24 20:01:07 +01:00
Simon Robertshaw
8196d2a645 Merge pull request #66 from jacob1/Modstuff
Code structure improvements for graphics/drawing, improvements to prevent accidental infinite loops in Lua, Fixes for fusion, improvements for VOID types. And other minor improvements
2012-05-24 11:53:50 -07:00
Simon Robertshaw
5a117c2d27 Element search interface by pressing 'e'
First search is for element names, second search looks at the
description, pressing enter will give you the first result the the left
button selection, left click and right click can also be used to select.
2012-05-24 19:38:58 +01:00
Jacob1
e95bcb6fcc fix alt select being off by one every time, turn on deco before entering the deco editor (not after) 2012-05-24 11:13:10 -04:00
Jacob1
be2fe943c0 Prevent accidental infinite loops in lua
Also fix glitch when step_functions[0] is unregistered but others aren't
2012-05-23 20:08:53 -04:00
Jacob1
0799c2e09d fix emp flash, better live parts rendering in (render_ui &) deco editor 2012-05-23 19:45:16 -04:00
Simon Robertshaw
17229ead05 URI handling for MacOS 2012-05-13 13:01:29 +01:00
jacksonmj
137903f809 Fix crash after closing display options (vid_buf was being freed) 2012-05-12 13:04:09 +01:00
Simon Robertshaw
d69fc052fa Fancy motion blur for OpenGL, fix a lot of dialogues in OpenGL, fix gravity lensing in OpenGL, ensure Phot and Neut are PMODE_ADD, not FLAT 2012-05-12 01:35:55 +01:00
jacksonmj
a1aeabeee4 Change license from GPLv2+ to GPLv3+
Also add headers stating the license to some more of the source files
2012-05-06 02:20:57 +01:00
jacksonmj
028eb4d9a5 Fix repeated download of same history thumbnail
https://github.com/FacialTurd/The-Powder-Toy/issues/53
2012-05-03 22:06:30 +01:00
Simon Robertshaw
89911666f0 Remove stupid debug output for thumbnail cache, no idea why I have not removed this earlier 2012-05-03 21:52:59 +01:00
jacksonmj
8872e33b44 Massive cleanup of sdl_scale, and fix moving a sign in the zoom window 2012-04-30 00:39:12 +01:00
jacksonmj
38057065c2 Fix bugs when moving signs
Signs could not be repositioned on top of another sign (dependent on
the indices of the two signs), and could not be placed after selecting
an element from the menu.
2012-04-29 00:39:18 +01:00
jacksonmj
34bfd77aa5 Line snapping for deco editor 2012-04-29 00:22:02 +01:00
Simon Robertshaw
d601608623 'Report' icon at 0xE3 2012-04-13 15:35:49 +01:00
jacksonmj
156d50d903 Remove duplicate information in set_cmode
Calculating render_mode and display_mode variables from the arrays means
less chance of mistakes (e.g. blob mode RENDER_EFFE was set in
render_modes array but not in render_mode)
2012-03-26 16:03:27 +01:00
Jacob1
51c8dfcef4 ngrav/amb. heat quickoptions, amb. heat drawn in heat display when on, fix render_ui position 2012-03-14 21:03:00 -04:00
Jacob1
4f176ba7c3 cursor changes to correct shape as soon as you click element/wall 2012-03-14 19:26:08 -04:00
Jacob1
afbe8cf38e Added smudge tool 2012-03-14 19:06:37 -04:00
Simon Robertshaw
fe82685257 Old nothing display mode in the form of Basic colour mode 2012-02-25 22:29:43 +00:00
Simon Robertshaw
54aa1ec42a Fix save reloading when saving to file 2012-02-11 12:38:06 +00:00
Simon Robertshaw
01fe58e20e Retrieve thumbnails, saves and info from caching server (static.powdertoy.co.uk) 2012-01-26 14:05:56 +00:00
jacksonmj
f0730818e4 OPS thumbnail crash fix, and blank thumbnails for saves from a newer version 2012-01-25 21:33:22 +08:00
Jacob1
509f1d2139 ability to delete corrupted stamps 2012-01-25 21:33:21 +08:00
Simon Robertshaw
dc67615780 Air mode and Gravity mode on Simulation options, improvements to list box 2012-01-01 19:11:12 +00:00
Simon Robertshaw
5b21f4a66c Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-12-30 02:06:53 +00:00
Simon Robertshaw
86369670aa Add checks for prerender_save in save_filename_ui, pass vx, vy and pv air data into parse and build save methods. New save format: OPS, basic reading and writing complete, uses BSON, BSON.c/h (Binary JSON) implementation from MongoDB. (Is License OK?) 2011-12-30 02:06:31 +00:00
jacksonmj
2553dac942 Update can_move, recount menu items and clear graphics cache when tpt.el is changed 2011-12-29 06:39:59 +08:00
Simon Robertshaw
fcac7dbe09 Support for element names and hex constants for the PROP tool 2011-12-21 16:47:46 +00:00
Simon Robertshaw
a9914dca2f Improvements to render_ui, fix merge errors 2011-12-18 16:29:07 +00:00
Simon Robertshaw
61e86ca72d Merge with new lua functionality 2011-12-18 15:14:07 +00:00
Simon Robertshaw
58b9996958 More icons for display modes 2011-12-18 14:41:42 +00:00
jacksonmj
934d1da66e Move Newtonian gravity into a new file 2011-12-18 22:04:47 +08:00
Simon Robertshaw
dda9eb5120 Fix missing render_mode array change when switching to some display types. 2011-12-06 16:27:47 +00:00
Jacob1
52d2facf91 cmodes closer to what they used to be, change icons 2011-12-02 23:09:39 +00:00
Simon Robertshaw
f508013332 New tables in lua API: el and version: element ids and version info respectively. New lua functions: element (get element id from name) and element_func for hooking/overriding element update functions 2011-11-18 19:38:08 +00:00
Simon Robertshaw
8a962b2f96 Live parts rendering for render_ui 2011-11-18 15:36:58 +00:00
Simon Robertshaw
c1ec9e24ae Smaller radio buttons 2011-11-18 15:32:33 +00:00
Simon Robertshaw
534c0edc33 Larger radio boxes 2011-11-18 15:20:07 +00:00
savask
aac78386ff Radio buttons for some options.
Conflicts:

	src/interface.c
2011-11-18 21:54:50 +07:00