This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/gui
jacksonmj 236ff08da9 Fix some problems noted in http://www.viva64.com/en/b/0298/
I've left some of the less important items, like SearchView.cpp "'then' statement is equivalent to the 'else' statement", and RequestBroker::Request::~Request, because I don't feel like spending a few days entirely rewriting those files at the moment (which is what I'd end up doing if I started fixing minor problems and refactoring...)

GameSave::readOPS - not changed. At some point we may have to move to a larger type for element IDs (probably two or four bytes), but PT_NUM isn't likely to be raised to the maximum value of that type immediately, so this check will be needed then. There should be an elements[partsData[i]].Enabled check in there too, but it might be a bit difficult - I'm not sure how to access a Simulation object from GameSave::readOPS...

Notes on changes:

Graphics::textsize, Element_FRZW::Element_FRZW - typos

Button::Draw - the extra case was originally used to invert the icon (draw it in black instead of in white) when the button was clicked. However, the icon colour is now automatically set depending on the background colour. (Note similar conditions "if(Enabled) { if(isButtonDown || (isTogglable && toggle)) " near the start of the function - same logic but in a different place, setting icon colour indirectly).

Simulation::transform_save - unused redundant function, everything uses GameSave::Transform which does much the same thing.

PreviewView::NotifySaveChanged - should be height==YRES/2, it's checking whether the preview image is the correct size, and resizing it if it isn't.

Element_FWRK::update - no idea why that line was there, even though it was my commit that originally added it...
2014-12-25 17:09:35 +00:00
..
colourpicker pressing tab switches between textboxes in the deco editor 2014-02-06 12:15:48 -05:00
console fix numpad behavior: movement keys are no longer triggered with numlock on 2014-02-27 20:39:16 +04:00
dialogues add the single saveID copytext button into the save preview too 2013-06-09 17:13:57 -04:00
elementsearch fix crash when selecting PROP from element search, fixes #209 2014-08-11 01:00:13 -04:00
filebrowser Auto-focus more textboxes 2014-04-17 12:03:24 -04:00
game Fix some problems noted in http://www.viva64.com/en/b/0298/ 2014-12-25 17:09:35 +00:00
interface Fix some problems noted in http://www.viva64.com/en/b/0298/ 2014-12-25 17:09:35 +00:00
localbrowser update stamps.def when deleting stamps, missing stamps show up as "error loading save" and can be deleted 2014-11-11 23:48:36 -05:00
login logging in in the save preview will update the login button on the main screen 2013-07-18 16:33:59 -04:00
options Fix some problems noted in http://www.viva64.com/en/b/0298/ 2014-12-25 17:09:35 +00:00
preview Fix some problems noted in http://www.viva64.com/en/b/0298/ 2014-12-25 17:09:35 +00:00
profile Call OnResponseReady with an identifier for the request, add a WebRequest class 2013-07-27 12:38:52 +01:00
render redo spark graphics, add spark render setting 2014-08-11 21:56:40 -04:00
save change tooltips for the save upload button to make it more clear 2014-12-18 19:54:48 -05:00
search Correct page count in save browser 2014-12-22 01:33:55 +00:00
tags unused variable 2013-11-12 15:20:17 +04:00
update Fix includes for GUI stuff 2013-03-22 14:26:24 +00:00
Style.cpp Fix includes for GUI stuff 2013-03-22 14:26:24 +00:00
Style.h Move all GUI source files into gui/ 2013-03-22 14:14:17 +00:00