Commit Graph

17541 Commits

Author SHA1 Message Date
mimo 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
mimo a7d7a74d08 petra: improve performance of building placement
This was SVN commit r20093.
2017-09-01 17:33:10 +00:00
elexis 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
elexis 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
elexis 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
elexis 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
mimo 8a066abe69 move the Introductory_Tutorial to the tutorial folder
This was SVN commit r20086.
2017-08-31 18:07:03 +00:00
mimo f80ae9236a add missing file in previous commit
This was SVN commit r20085.
2017-08-31 18:03:17 +00:00
mimo 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
mimo 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
mimo 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
elexis 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
elexis 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
elexis 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
fatherbushido 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
s0600204 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
elexis 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
mimo 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
elexis 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
mimo 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
elexis 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
elexis 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
mimo ced95e1318 remove an unwanted change from last commit
This was SVN commit r20057.
2017-08-27 18:10:00 +00:00
mimo 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
elexis 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
mimo 820c22dc46 petra fixes linked to building placements
This was SVN commit r20054.
2017-08-27 17:21:28 +00:00
elexis 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
mimo 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
mimo 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
mimo 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