Commit Graph

17549 Commits

Author SHA1 Message Date
3aca693db1 Add +1 tab indentation following dd7f38e370 / D805 for the lines not affected by 892876a571.
This was SVN commit r20103.
2017-09-03 22:08:13 +00:00
892876a571 Remove unneeded parameters nesting from the options page following c20ee2ad5e, refs #2596.
Add +1 tab for the affected lines following dd7f38e370, refs D805.

This was SVN commit r20102.
2017-09-03 21:59:45 +00:00
dd7f38e370 Use tabs for the options page and rewrite it altogether.
Removes a lot of JS and XML duplication, unneeded for-loops.
Display min/max in the tooltip for number inputs.
Increase the width for dropdowns and dynamically maximize the width of
the label.
Remember the selected tab when hotloading the page.

Differential Revision: https://code.wildfiregames.com/D805
Refs #3737
Graphical design agreed with: scythetwirler, mimo, Itms, fpre, Imarok,
bb, leper, brian, feneur, implodedok
Testing By: Vladislav, mimo
This was SVN commit r20101.
2017-09-03 21:38:50 +00:00
9cb0a60d73 Deepfreeze Aura, Technology and Resource Templates, Simulation states, GameAttributes and few other JS objects.
This reveals unintentional modifications to these objects which would
most often imply hidden bugs.

Differential Revision: https://code.wildfiregames.com/D829
Fixes #4257
Refs #3647

This was SVN commit r20100.
2017-09-03 16:37:09 +00:00
1b47451d32 Add deepfreeze function to recursively mark JS Objects as read-only.
Refs #4257, D829
Proofread By: leper
This was SVN commit r20099.
2017-09-03 12:50:45 +00:00
8707c2106b petra: some small tunings in defenseManager + various cleanup
This was SVN commit r20098.
2017-09-02 13:45:02 +00:00
ec3b1be38b Display the targer marker in the shroud of darkness as well.
Patch By: wowgetoffyourcellphone
Refs D606

This was SVN commit r20097.
2017-09-02 10:18:23 +00:00
5c01b50ca4 Add FALLTHROUGH, which in the best case is just [[fallthrough]].
Note that this does not fix the warnings in AtlasObjectXML, someone
interested
in fixing those should check whether using ICU would be a nicer
solution.

Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D740
This was SVN commit r20095.
2017-09-01 20:04:53 +00:00
faa1a3fd41 petra: update some entities collections when diplomacy changes
Differential Revision: https://code.wildfiregames.com/D858
This was SVN commit r20094.
2017-09-01 17:38:49 +00:00
a7d7a74d08 petra: improve performance of building placement
This was SVN commit r20093.
2017-09-01 17:33:10 +00:00
86d5b4e7e4 Options page cleanup.
Invert the dependencies property to remove one loop.
(Keep the dependencies property because recursive parsing would increase
the complexity.)
Maximize the option label width to remove a magic number.
Use a constant for the remaining magic number, as proposed by Vladislav
in D805.
Remove an unneeded dependency boolean type check.

This was SVN commit r20092.
2017-09-01 14:23:36 +00:00
7a157faf3c Allow the GUI to subscribe to text edit events to redeem three workarounds in the options page.
Differential Revision: https://code.wildfiregames.com/D860
Refs #2451, #3511, 5c61f68600 (registerChanges), 7fa2962c45
(onMouseLeave), e909567004 (onPress)
Reviewed By: Vladislav
This was SVN commit r20091.
2017-09-01 12:06:18 +00:00
2cb6139761 Fix typo in f8d53d8f7b / D786 and some whitespace in CInput.cpp
This was SVN commit r20088.
2017-09-01 01:51:48 +00:00
beb7c4ae34 Main Menu cleanup.
Remove unused names, CData and comments.
Add missing quotes and fix whitespace.

This was SVN commit r20087.
2017-08-31 18:22:09 +00:00
8a066abe69 move the Introductory_Tutorial to the tutorial folder
This was SVN commit r20086.
2017-08-31 18:07:03 +00:00
f80ae9236a add missing file in previous commit
This was SVN commit r20085.
2017-08-31 18:03:17 +00:00
744581a255 Remove the tutorial-ai which is obsolete
Discussed with Elexis

Differential Revision: https://code.wildfiregames.com/D526
This was SVN commit r20084.
2017-08-31 17:48:50 +00:00
6ed9017253 fix typo in LongPathfinder
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D847
This was SVN commit r20082.
2017-08-30 16:41:10 +00:00
db73e97185 Focus on deleted entities in observermode if the follow-player feature is enabled, refs #3743.
This was SVN commit r20081.
2017-08-30 13:42:25 +00:00
8653d0631c Unify two indistinguishable session sprites.
This was SVN commit r20080.
2017-08-30 13:22:53 +00:00
bb
1ca585ccf2 Allow BuildRestrictions Min Max Distance to be modified by auras/technologies
Patch By: Grugnas
Differential Revision: https://code.wildfiregames.com/D276
This was SVN commit r20079.
2017-08-30 13:02:13 +00:00
a5c60619e2 Input GUI object cleanup.
Remove redundant if-statement following 5593f573f4 as reported by
Vladislav.
Use switch-statement in ManuallyHandleEvent.

This was SVN commit r20078.
2017-08-30 12:01:17 +00:00
ee38f0db37 Implement readonly Input GUI objects and use it in the file location indicator in the replay menu,
so that the user can copy the file path.

Fixes #4225
Refs D763
Patch By: Vladislav
This was SVN commit r20075.
2017-08-29 23:53:23 +00:00
23118ba847 Split the Input GUI object key processing into two methods (methods changing the text and methods not changing it).
Patch By: Vladislav
Refs #4225, D763

Also use SDL_Keycode instead of int, remove an outdated history lookup
comment and some other unneeded comments.

This was SVN commit r20074.
2017-08-29 23:29:29 +00:00
b88f1aba20 Display move indicator to observers if the follow-player feature is enabled.
Don't use the marker for the repair order.

Refs D606

This was SVN commit r20073.
2017-08-29 22:40:13 +00:00
9e96bca85e petra: improve the way units capturing a structure react when attacked by enemy units + some code cleanup
This was SVN commit r20072.
2017-08-29 18:23:16 +00:00
c17f379513 Visual move order indicator.
Differential Revision: https://code.wildfiregames.com/D606
Fixes #4732
Patch By: Stan
Template Reviewed by: fatherbushido
This was SVN commit r20071.
2017-08-29 17:02:32 +00:00
e8dfde9ba6 Display previously received lobby chat messages when returning from the gamesetup.
Differential Revision: https://code.wildfiregames.com/D819
Fixes #3306
Patch By: fpre / ffffffff
This was SVN commit r20070.
2017-08-29 16:04:45 +00:00
0ceeaf921b Fix typo in 0940db3fc0 / D835 reported by gameboy.
Reviewed By: Vladislav
This was SVN commit r20069.
2017-08-29 12:22:31 +00:00
75324347d4 Remove a misleading fishing bonus tooltip. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D841
This was SVN commit r20068.
2017-08-29 08:46:09 +00:00
27d99765bb Add an icon to pyrogenesis' application window
Tested By: Imarok (Windows, Ubuntu w. Gnome), s0600204 (Arch w. Xfce),
ffffffff (Kubuntu w. KDE)
Reviewed By: ffffffff, s0600204
Differential Revision: https://code.wildfiregames.com/D768
Trac Tickets: #4363

This was SVN commit r20067.
2017-08-28 21:56:54 +00:00
8da0f129ef Options page cleanup.
Unify renderer and common callback function.

Differential Revision: https://code.wildfiregames.com/D839
Reviewed By: bb
Agreed with Vladislav

This was SVN commit r20066.
2017-08-28 19:37:31 +00:00
f6c8fb4ba0 let petra build a wonder also when not in wonder mode but approaching the max pop"
This was SVN commit r20065.
2017-08-28 18:16:01 +00:00
0940db3fc0 XmppClient cleanup.
Allow XmppClient to use arbitrary property names in GUIMessages.
Remove duplication by calling CreateGUIMessage when receiving chat
messages.
Inline PushGUINotification.
Use std::string in the GUIMessage because every data source is of that
type.
Apply the wstring_from_utf8 conversion to ensure correct display of less
common UTF characters instead in the GuiPollMessage method.
Add room subject change chat message.

Differential Revision: https://code.wildfiregames.com/D835
Refs #4482
Comments by fpre, Vladislav and leper

This was SVN commit r20064.
2017-08-28 17:47:43 +00:00
6861588371 petra: fix building of first cc as it is also used after all cc's have been destroyed and was not fully correct in that case"
This was SVN commit r20063.
2017-08-28 17:15:48 +00:00
1b44946078 Replace deprecated jsval with JS::Value.
Remove unused SGUIBaseSettings and GUI comment.
Fix indentation of a macro, refs D794.

Differential Revision: https://code.wildfiregames.com/D838
Review by: leper.
Itms came up with the same patch for the SpiderMonkey 45 update
independently.

This was SVN commit r20062.
2017-08-28 10:27:36 +00:00
8f51469793 Colorize relic victory message.
Refs D36 / 9a6c5eac60, D152 / 35377c51a7

This was SVN commit r20060.
2017-08-27 23:30:33 +00:00
bb
565abd5f1b Fix directory for Atlas help from a93d260643
When launching Atlas from a higher directory the help.json isn't found.
Fixed by finding the absolute path.

Patch By: vladislavbelov
This was SVN commit r20059.
2017-08-27 19:32:54 +00:00
bb
62c9c6d7fc Add scrollbars to all tabs in Atlas.
Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D793
This was SVN commit r20058.
2017-08-27 18:47:39 +00:00
ced95e1318 remove an unwanted change from last commit
This was SVN commit r20057.
2017-08-27 18:10:00 +00:00
8577b681cc petra: more fixes on buildings placement
Differential Revision: https://code.wildfiregames.com/D783
This was SVN commit r20056.
2017-08-27 18:04:14 +00:00
a53ccc54a0 Display untranslated developer overlay chat message if an observer opens it (rather than no message at all) following 844566c787.
Remove a TODO from 9f796068f8 (message boxes should never be closed
automatically because they require a user decision).

Differential Revision: https://code.wildfiregames.com/D830
Refs #3304

This was SVN commit r20055.
2017-08-27 17:23:24 +00:00
820c22dc46 petra fixes linked to building placements
This was SVN commit r20054.
2017-08-27 17:21:28 +00:00
14f33dc078 Disable lobby login/register button after pressing it.
Differential Revision: https://code.wildfiregames.com/D832
Comments by Vladislav

This was SVN commit r20053.
2017-08-27 17:12:13 +00:00
a1619db209 AI: take more obstruction shapes into account
Differential Revision: https://code.wildfiregames.com/D837
This was SVN commit r20052.
2017-08-27 17:08:13 +00:00
b5a69885e6 Hide gamesetup controls until they are initialized in multiplayer.
Differential Revision: https://code.wildfiregames.com/D833
Refs D322

This was SVN commit r20051.
2017-08-27 17:05:04 +00:00
4aff6078c9 Display all heroes and relics in the top panel when chosing the "Observer" perspective.
Differential Revision: https://code.wildfiregames.com/D814
Agreed with: Hannibal_Barca, fpre / ffffffff

This was SVN commit r20050.
2017-08-27 16:37:57 +00:00
eb70d83b67 Fix rallypoint color after deserialization following 505a10cef6.
Differential Revision: https://code.wildfiregames.com/D826
Refs #4618, D623

This was SVN commit r20049.
2017-08-27 16:05:20 +00:00
83ee8cd62e Small JS GUI performance improvement.
Don't clone and parse the civ requirement of every queried technology
each turn.
Saves 1ms per turn when selecting multiple buildings on my computer.
Make civ argument of GetTechnologyData mandatory, refs 6c97d8118b /
#3993.

Differential Revision: https://code.wildfiregames.com/D827
Agreed with: mimo, s0600204

This was SVN commit r20048.
2017-08-26 21:48:57 +00:00
3c73b329f2 JS cleanup.
Mark global consts as variable if mods can legitimately modify them.
Keep global objects const if mods should insert their modifications at a
different place, refs D829.
Mark the few consts inside function scope as let or var for consistency.
Don't touch the AI, simulation test and rmgen folder.
Change some var to let.
Remove an unused variable in the mainmenu and summary screen.
Inline few variables.

This was SVN commit r20047.
2017-08-26 20:10:39 +00:00