Commit Graph

17532 Commits

Author SHA1 Message Date
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
024aa77c35 JS Cleanup.
Don't change the Upgrade costs in the entity state when displaying the
Upgrade tooltip.

Refs #2706, D829

This was SVN commit r20046.
2017-08-26 19:34:23 +00:00
5be8528b57 JS cleanup.
Don't copy the long-wall-segment aura to the original template data when
displaying the construction tooltip.

Refs D829

This was SVN commit r20045.
2017-08-26 19:20:27 +00:00
bb55629a5b JS Cleanup.
Don't write the helper variable producingEnt to the entity state when
showing the tooltip of production queue items.

Refs D829

This was SVN commit r20044.
2017-08-26 19:01:44 +00:00
b5ea27904d JS GUI cleanup.
Mark g_CivData as const and don't use optional arguments at loadCivData.
Translate the infinity symbol in the summary screen.

Refs D829
Reviewed By: s0600204
This was SVN commit r20043.
2017-08-26 18:53:37 +00:00
c4cef0d289 Don't write two helper variables to g_CivInfo in the structure tree,
so that the object has the same content throughout the entire GUI and
can be marked read-only.

Refs D829
Reviewed by: s0600204
This was SVN commit r20042.
2017-08-26 17:57:11 +00:00
16b976fc35 Remove unneeded GetMucMessageCount from the XmppClient.
The affected function was imprecise, because it called a playerlist
update whenever a "chat" level message was received instead
of only updating the playerlist if it's actually influencing the
displayed playerlist.
When there is a chat message, lobby subject change or user-role change,
there is no need to update the list.

Differential Revision: https://code.wildfiregames.com/D671
Refs #3386, 8b437a0b1c
Reviewed By: fpre / ffffffff
This was SVN commit r20040.
2017-08-25 18:51:26 +00:00
ce7e727ff0 petra: revisit the phasing up to be more mod-friendly
Differential Revision: https://code.wildfiregames.com/D654
This was SVN commit r20039.
2017-08-25 16:23:23 +00:00
bcdfbd28f8 Change some occurrences of BroadcastMessage where an entity id is available to use PostMessage
Patch by echotangoecho

Reviewed By: O2 JS Simulation, mimo
Differential Revision: https://code.wildfiregames.com/D733
This was SVN commit r20038.
2017-08-25 16:06:29 +00:00
ce580f0de0 Always delete CMapReader. Patch by Sandarac. Fixes #4154.
This fixes an assertion failure in ScriptEngine that can occur when
closing
the game while in the loading screen.

Reviewed By: vladislavbelov, leper
Differential Revision: https://code.wildfiregames.com/D684
This was SVN commit r20035.
2017-08-25 00:37:48 +00:00
9680b7437e Close the options page with escape.
Refs D813
Patch By: fpre / ffffffff
This was SVN commit r20034.
2017-08-24 22:55:08 +00:00
f0a0f6c4cd Remove unused TemplateDataWithoutLocalization
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D831
This was SVN commit r20033.
2017-08-24 21:03:53 +00:00
f27efac053 Enhance lobby / XMPP timestamp parsing documentation.
Refs #3832, 9a5e1ddedb / D760, 6141c5c4fa / D514
Reviewed By: leper
This was SVN commit r20032.
2017-08-24 20:57:21 +00:00
a89c32f36b Petra: Fix some cases that would cause territory expansion with Sandbox difficulty
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D764
This was SVN commit r20031.
2017-08-24 19:47:35 +00:00
31bbb56b58 Remove some unneeded ternary and fix some style issues in gamesetup.
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D615
This was SVN commit r20030.
2017-08-24 10:40:51 +00:00
9defd11440 Pass ScriptInterface as a const ref where possible.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D739
This was SVN commit r20028.
2017-08-24 00:32:42 +00:00
7970c3dc54 Pass a const reference, if someone wants to modify it they should use the global directly.
Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D738
This was SVN commit r20027.
2017-08-23 23:52:32 +00:00
683e19a7ed cleaning of the list of useful templates in AIInterface
This was SVN commit r20026.
2017-08-23 17:40:51 +00:00