Commit Graph

632 Commits (4f0854068c77e03ab4ad1314e34b2907d0c54f43)

Author SHA1 Message Date
krzys-h 1f477bbc86 Fix error in edit.cpp in 08d87fa975 2017-05-24 12:46:30 +02:00
krzys-h 08d87fa975 Make initial scoreboard values editable 2017-05-24 12:39:05 +02:00
krzys-h 149d1f8156 Fix aliens not appearing on the minimap, closes #901 2017-05-23 20:51:37 +02:00
krzys-h 004106eb19 Don't limit types of objects visible on minimap with fixed image 2017-05-23 20:47:03 +02:00
DavivaD df12f87b47 Implement damage alarm (#916)
Implements part of #320
2017-05-22 11:01:36 +02:00
MatiRg a0e5cc25e1 Allow ctrl + backspace in the editor. (#839) 2017-05-22 10:57:30 +02:00
krzys-h 9eae1e151d Fix Shooter target getting stuck on not selectable objects (#900) 2017-01-28 12:56:42 +01:00
piotrwalkusz1 6ec13017eb Fix apperance camera position, closes #802 (#880) 2017-01-02 18:43:19 +01:00
krzys-h 46aa6fc907 Some CRobotMain cleanup
* improved documentation
* renamed cheat variables to include the word "cheat" to make it clearer what they do
* removed some useless members
2016-12-27 23:38:57 +01:00
krzys-h 6a382830a9 Allow selectinsect to select other objects with selectable=0 2016-12-27 22:20:58 +01:00
krzys-h 17511ddb6a Fix some code style 2016-12-27 15:54:52 +01:00
krzys-h 8d52e27c2b Add coordinates under cursor overlay and copy function (#868) 2016-12-27 14:58:41 +01:00
krzys-h 856ee9a0fe Don't allow whitespace player names, closes #840 2016-11-11 17:13:32 +01:00
Unknown 3c71354b42 Fix MSVC2015 compilation error 2016-11-07 21:08:02 +01:00
krzys-h 73be03161f Fix infinite pause when cloning program with errors, closes #837 2016-09-27 18:57:24 +02:00
MatiRg dc415c3d2a Remove character limit in CEdit (#836) 2016-09-25 19:13:04 +02:00
krzys-h 29f0631a2c Asynchronous sound/music loading
This improves the loading time a lot. Time from starting the app to opening game window decreased by almost 5 seconds (it's almost instant now). Mission loading times are significantly better too. As a bonus, the playmusic() CBot function doesn't hang the game if you don't preload the files with CacheAudio in scene file.
2016-07-10 14:56:34 +02:00
krzys-h 8a17bc901c Added pause blur config setting, enabled by default 2016-07-09 12:13:51 +02:00
krzys-h 0fbd2d107c Allow using the CBot debugger during code battles 2016-06-21 13:06:55 +02:00
krzys-h 439a416a66 Merge pull request #789 from Erihel/dev-boost-filesystem-removal
Dev boost filesystem removal
2016-06-17 22:38:41 +02:00
krzys-h 9017e5a25b Fixed links in CBot listings in SatCom 2016-06-17 21:13:16 +02:00
Krzysztof Dermont 32629a2f2a Refactor autosave rotation.
In order to remove boost:filesystem from CResourceManager Move()
function has to be removed or rewrited. Since Move is only used in
autosave rotation it's simpler to change autosave rotation and remove
Move().

Now oldest autosaves (with lowest timestamp) will be removed in rotation.
2016-06-09 19:30:08 +02:00
krzys-h 0e101debe0 Removed CAM_TYPE_INFO 2016-05-28 18:52:30 +02:00
krzys-h 646e5104f6 Some CCamera cleanup and docs 2016-05-28 18:44:38 +02:00
krzys-h ebc2e6e26c Added camera joystick bindings (#653) 2016-05-28 13:50:41 +02:00
krzys-h 942f746a21 Removed CAM_TYPE_DIALOG 2016-05-28 12:50:32 +02:00
krzys-h 250047579f Allow using custom paths for win/lost scenes 2016-05-27 23:37:36 +02:00
krzys-h cdd719cc47 Made clipping distance settings apply immediately 2016-05-21 19:05:18 +02:00
krzys-h c00a7fd132 Do not zoom while scrolling lists, closes #769 2016-04-22 19:20:31 +02:00
krzys-h 952a5423fd Fixed non-power-of-2 images in SatCom (closes #634); fixed not unloading textures on SatCom close 2016-04-10 13:53:34 +02:00
krzys-h 4de9d25f04 Man, those compile errors... 2016-04-09 18:58:34 +02:00
krzys-h 32af7f45df Fixed missing #includes 2016-04-09 18:52:15 +02:00
krzys-h 04d7c343ef Removed misc.cpp / misc.h 2016-04-09 18:46:12 +02:00
krzys-h 139592bc00 Proper l10n for date/time 2016-04-09 18:23:57 +02:00
krzys-h bd9184bd92 Refactored part of CScript to std::string 2016-04-08 22:27:42 +02:00
krzys-h 6216daedb3 Merge part of PR #756 2016-04-03 20:17:23 +02:00
krzys-h c0780f938e One more code style fix 2016-04-03 13:19:51 +02:00
krzys-h 98dd9f90c8 Fixed code style warnings 2016-04-03 13:06:55 +02:00
Smok94 6afdb7b6c8 First person camera unlocked for Me and Tech
*unlocked camaera button for Me and Tech
*unlocked first ferson view for Me and Tech
*Me and Tech have no "camera view" effect like robots in first person
mode

#156
2016-04-02 15:56:27 +02:00
Smok94 831276f378 Appearance customization face butons fix
*face buttons 2 and 4 swaped.
*default hair colors now fit to buttons look
*changing face changes hair color do default

Fixes two first issues mentioned in the #724
2016-04-02 13:13:42 +02:00
Krzysztof Dermont 2ea453f484 Change SatCom button size in main menu
Change button size as proposed in issue #722
2016-03-29 21:36:33 +02:00
krzys-h d38ddcbc41 goto() path debugger 2016-03-28 20:25:07 +02:00
krzys-h e4f9360e63 Resources debug mode 2016-03-28 17:58:31 +02:00
krzys-h 4af02c86f8 Debug menu 2016-03-28 17:58:31 +02:00
krzys-h c831cd8637 Updated Polish translations 2016-03-25 11:31:04 +01:00
krzys-h 6e89d097e8 Cleaned up (now unnecessary) .c_str() converstions to CList::SetItemName 2016-03-15 20:47:06 +01:00
krzys-h bce99308c6 Fixed compilation error 2016-03-15 20:42:06 +01:00
krzys-h fef8a8e355 Fixes to variable list in CBot debugger
* fixed stack overflow with circular references (closes #434)
* fixed displaying boolean variables
* fixed buffer overflows with entries longer than 100 characters
* removed hard-limit to 100 entries with at most 100 characters in CList (this also allows you to have more than 100 programs in a robot, up to 999)
2016-03-15 20:39:31 +01:00
krzys-h cbdda57288 Merge branch 'dev-right-click-camera' into dev 2016-03-13 14:52:17 +01:00
MrSimbax 9679546988 Fix crash on pasting from clipboard
I don't know why it didn't happen for anyone else, but according to https://wiki.libsdl.org/SDL_GetClipboardText : "Use this function to get UTF-8 text from the clipboard, which must be freed with SDL_free().". MSVC detected some heap corruption because of free(text);
2016-03-06 23:21:04 +01:00
krzys-h b15666f48e Restored old camera scroll as a config option 2016-02-19 17:14:08 +01:00
krzys-h 1efa4b132c Fixed mouse invert settings; removed camera scroll setting 2016-02-19 17:14:08 +01:00
krzys-h 47d39e5b22 Right click camera; minor CCamera cleanups 2016-02-19 17:14:08 +01:00
krzys-h f3820bc81a Fixed using SOUND_CLICK instead of SOUND_NONE, some sound documentation fixes 2016-02-19 17:12:27 +01:00
krzys-h 2b94de44a8 Incresed editor double click time, closes #688 2016-02-15 19:08:09 +01:00
krzys-h 84e0220ea6 Fix code copy start range, closes #720 2016-02-14 19:07:16 +01:00
krzys-h a3477edc8e Pause game when in background, closes #609 2016-02-13 21:35:01 +01:00
krzys-h 9b5d9ed893 Fixed some manual control being allowed in code battles, closes #644 2016-02-13 21:05:07 +01:00
krzys-h 6dc7d892b7 Fix indentation on copying code, closes #699 2016-02-13 20:14:34 +01:00
krzys-h 977607a934 Updated license headers 2016-02-13 14:11:30 +01:00
krzys-h 55412842df Fixed some code style warnings 2016-02-13 13:46:56 +01:00
Krzysztof Dermont 12e3724319 Implement issue #606
Add button to open SatCom in main menu
2016-02-10 17:04:26 +01:00
Krzysztof Dermont a611ef3d50 Fix issue #711
Update text input handling based on focus event
2016-02-10 17:03:37 +01:00
krzys-h 5f01153c5f Fixed joystick switch crash; small bugfix to joystick UI 2016-01-24 20:48:07 +01:00
krzys-h 7a521fbc90 Joystick configuration, closes #499
Not yet tested as I don't have a joystick currently with me, but should work fine
2016-01-24 17:36:25 +01:00
krzys-h 40352be5cc Add language switcher to the settings UI, closes #506 2016-01-24 16:03:24 +01:00
krzys-h 6d8a5bab31 Removed system mouse option
Not really needed, as it is an SDL cursor not system cursor, which is no better than ours
2016-01-24 15:24:59 +01:00
krzys-h 3b4ccc3535 Improvements to auto-indent (#698) 2015-12-26 20:16:47 +01:00
krzys-h 6fee1ee12b Docs for CBotTypResult.h and CBotEnums.h 2015-12-21 17:54:55 +01:00
Grunaka 1a6b5ded64 Delete CBotDll.h 2015-12-01 23:25:36 +01:00
krzys-h 6f91442db1 Removed some more unused strings 2015-11-21 17:10:14 +01:00
piotrwalkusz1 ce480c1720 Fix #670 2015-11-08 19:03:35 +01:00
Tomasz Kapuściński 1b855f5dc3 Possible fix for issue #667 2015-10-15 17:40:15 +02:00
Piotr Dziwinski d11ebc891c Bring to zero some types of issues reported by colobot-lint 2015-10-04 00:09:10 +02:00
krzys-h 883e07ad6a Fixed mouse scroll on lists going out of range, closes #660 2015-10-01 20:22:52 +02:00
krzys-h 2111c6d177 More CRobotMain cleanup 2015-10-01 20:10:52 +02:00
krzys-h 2c7deea6a9 Removed some unused functions from CRobotMain 2015-10-01 19:37:31 +02:00
krzys-h b5e98dd6e9 Removed CSettings access through CRobotMain 2015-10-01 19:19:40 +02:00
krzys-h 3815ef0bd6 Refactored CPauseManager (again) 2015-10-01 18:55:41 +02:00
Victor Vieux 49ee00d90d fix MacOSX install instruction and compilation
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-09-29 22:39:33 +02:00
Piotr Dziwinski 61a3ba2800 Fix undefined function colobot-lint issues 2015-09-29 21:44:24 +02:00
krzys-h 2cb2782c9d Restored old Ceebot-Teen objects
In preparations for new programming course
2015-09-28 22:08:59 +02:00
Piotr Dziwinski 66ce745be0 Introduce forward declarations as suggested by colobot-lint 2015-09-27 16:28:14 +02:00
krzys-h fd07589ebb Separated config.h and version.h
This prevents unnecessary recompilation of some files when version number changes
2015-09-26 21:12:12 +02:00
krzys-h 07df35ca01 Refactored mouse wheel 2015-09-25 22:54:48 +02:00
krzys-h e965414d34 Rewritten text input to SDL2 2015-09-25 19:49:50 +02:00
krzys-h 53e4470dbf Started SDL2 migration 2015-09-24 21:09:46 +02:00
krzys-h c9a1bbefbb Fixed code battle start button becoming visible after closing file selection dialog 2015-09-11 18:38:25 +02:00
krzys-h 48f24fe6cc Fixed CInterface::SetFocus not recursing into windows, this fixes highlighting of compilation errors in the editor
It's not really nice, but at least it works
2015-09-11 18:34:47 +02:00
krzys-h 4d40bd6992 Hide completion marks in code battle level list 2015-09-10 20:42:48 +02:00
krzys-h 20105d09ec Added code battles button to the main menu 2015-09-10 20:20:24 +02:00
krzys-h 060db9c069 Fixed save button being always unavailable 2015-09-09 20:24:44 +02:00
krzys-h 09ff821f2c Fixed code battle start button not disappearing in the editor 2015-09-07 21:45:51 +02:00
krzys-h 883348c6cf Do not (auto)save code battles 2015-09-06 20:01:59 +02:00
krzys-h 51330dde5e Added code battle start button; fixed bug with starting code battle 2015-09-06 19:12:00 +02:00
krzys-h 78e4e440b5 Removed cancel button from player selection screen
Not really needed, and it had a bug with removing players (it would still go back to the deleted player)
2015-09-01 16:30:05 +02:00
krzys-h 6f38ec1911 Clear player name text field on delete 2015-09-01 16:25:09 +02:00
krzys-h ec9a38a681 Don't show level completion marks in free games 2015-09-01 16:22:57 +02:00
krzys-h 89c93c15cd Fixed crash after removing last program from a robot 2015-09-01 16:10:12 +02:00
krzys-h c3d7876a5c Made CPauseManager not a singleton 2015-08-31 22:05:21 +02:00
krzys-h 75d18ced05 Fixed #596 2015-08-31 21:57:46 +02:00
krzys-h ff17961584 Refactored CPauseManager 2015-08-31 21:47:55 +02:00
krzys-h cc7e36968f Fixed new text in editor not being monospace 2015-08-31 12:21:28 +02:00
krzys-h 82e06bfd8e Fixed wrong program being highlighted after loading (closes #616) 2015-08-31 11:37:02 +02:00
krzys-h 934d97a801 Fixed #581 for aliens 2015-08-25 17:25:53 +02:00
krzys-h fe44e617a8 Fixed selection markers not disappearing when moving gun away 2015-08-25 16:57:10 +02:00
krzys-h 8b7bd663b9 Fixed shooters detecting all objects as friendly, closes #581 2015-08-25 16:29:26 +02:00
krzys-h 00ae6c32f1 Fixed CBot scripts in SatCom not being sometimes colorized
This is because in some places \c; and \s; are reversed
2015-08-25 11:32:15 +02:00
krzys-h d9b680bdcf Removed Windows restart on resolution change workaround 2015-08-24 19:47:48 +02:00
Piotr Dziwinski c3d4d46583 Fix missing empty line after license header 2015-08-22 17:52:07 +02:00
Piotr Dziwinski b93f610930 Fix license header in all files 2015-08-22 16:40:02 +02:00
krzys-h e1f0c0f91f Fixed #585 2015-08-19 20:56:04 +02:00
krzys-h 8421189716 Merge branch 'dev-cbot-syntax-highlighting' into dev (#575) 2015-08-18 23:01:02 +02:00
krzys-h e91ecbbb01 Removed unused references to effect03.png from the code 2015-08-18 22:59:31 +02:00
krzys-h d6a946618e Syntax highlighting in SatCom 2015-08-18 22:35:38 +02:00
krzys-h 3fe44be5d5 Fixed no monospace font in the editor 2015-08-18 22:12:00 +02:00
krzys-h c5da68d516 New CBot syntax highlighting 2015-08-18 22:12:00 +02:00
krzys-h b086c52b14 Render some things in code instead of using effect03.png texture (in CEdit) 2015-08-18 21:04:00 +02:00
krzys-h 28925106e4 Cleaned up some long lists of ifs 2015-08-18 12:29:41 +02:00
Piotr Dziwinski a63a959dbe Apply clang-modernize -use-nullptr 2015-08-17 22:40:52 +02:00
Piotr Dziwinski ba3284b8b8 Apply clang-modernize -add-override 2015-08-17 22:12:09 +02:00
krzys-h 63b4849275 Fixed #561 2015-08-17 21:57:53 +02:00
krzys-h 1059ae37c1 Shielder subclass 2015-08-17 14:06:31 +02:00
krzys-h ad84478c71 Removed Get/SetInfoReturn 2015-08-17 11:44:05 +02:00
krzys-h 303dd17d58 Improved documentation of new object interface; removed unused Get/SetSoluceName 2015-08-17 00:43:32 +02:00
krzys-h e11d2ec33e Refactor object dying status and GetActive 2015-08-16 20:24:48 +02:00
krzys-h 3f303ea824 Removed some unneccessary includes 2015-08-16 16:35:39 +02:00
krzys-h 0986a200d7 Fixed CBot editor being inaccessible while running program 2015-08-16 16:03:36 +02:00
Piotr Dziwinski d703eb7165 Compile fixes for MSVC2013 2015-08-16 00:39:08 +02:00
krzys-h ceae617949 Fixed user programs disappearing after swapping them with level programs 2015-08-15 23:47:51 +02:00
krzys-h bc7d0c1c51 Rewritten program storage, closes #534 2015-08-15 23:29:21 +02:00
krzys-h 0eaf0d6f65 Split Programmable and ProgramStorage 2015-08-15 21:29:08 +02:00
krzys-h 856c5baa0e Removed CTaskManager 2015-08-15 20:30:15 +02:00
krzys-h 9a15db1bea Split global.h 2015-08-15 14:02:07 +02:00
krzys-h 0ec3f29e68 Fixed win/lost scene music cached at startup not being ever used 2015-08-14 19:44:44 +02:00
krzys-h 78a279b479 Better shadow type selection UI 2015-08-14 13:37:27 +02:00
krzys-h 009b3abc03 Moved some interface controls 2015-08-14 13:14:57 +02:00
krzys-h eda7435eb6 Removed a lot of useless settings (#556) 2015-08-14 13:04:05 +02:00
krzys-h 1d6c3cc748 Fixed CEngine trying to use unsupported values as defaults, closes #552
Also fixed the settings buttons not being disabled properly
2015-08-14 12:03:53 +02:00
krzys-h 41c0ec0940 Fixed game save being always blocked
Also, prevent autosave if saving is blocked
2015-08-14 00:21:18 +02:00
krzys-h 02b76e5aba Workaround for too fast calling of m_app->Render 2015-08-14 00:10:07 +02:00
Piotr Dziwinski 26e4ec0ae2 Add more missing includes and forward declarations 2015-08-13 22:49:05 +02:00
krzys-h bc05cda0e7 Removed image, link and marker limits in SatCom, closes #554 2015-08-13 14:14:11 +02:00
krzys-h e5e1d4973f CDestroyableObject, CFragileObject, CShieldedObject and CShieldedAutoRegenObject 2015-08-13 13:41:25 +02:00
krzys-h ff957afefc Moved files not directly related to CObject into src/level/ directory 2015-08-13 11:47:32 +02:00
krzys-h e937db94c8 Moved GetPhysics() and GetMotion() to CMovableObject; moved trace drawing to CTraceDrawingObject 2015-08-13 10:49:45 +02:00
krzys-h 60797f72d3 Removed some old, unused code 2015-08-12 17:25:41 +02:00
krzys-h 63d83185b5 Move GetTooltipText and Get/SetLock to CObject; remove Get/SetEnable 2015-08-12 00:16:57 +02:00
Piotr Dziwinski 571cc96523 Add proper initializers and remove manual memory management in ui classes 2015-08-11 23:15:32 +02:00
krzys-h 364f87c49b CPowerContainerObject interface 2015-08-11 22:51:16 +02:00